Snmp-Agent { Inform | Trap } Source - HP MSR1003-8S Command Reference Manual

Msr series network management and monitoring
Hide thumbs Also See for MSR1003-8S:
Table of Contents

Advertisement

The NMS accepts the SNMPv3 informs from the SNMP agent only if the engine ID in the informs is the
same as its local engine ID.
You can configure up to 20 remote SNMP engine IDs.
Examples
# Configure the SNMP engine ID (123456789A) of the SNMP manager (10.1.1.1).
<Sysname> system-view
[Sysname] snmp-agent remote 10.1.1.1 engineid 123456789A
Related commands
display snmp-agent remote

snmp-agent { inform | trap } source

Use snmp-agent { inform | trap } source to specify a source IP address for the informs or traps sent by the
SNMP agent.
Use undo snmp-agent { inform | trap } source to restore the default.
Syntax
snmp-agent { inform | trap } source interface-type { interface-number | interface-number.subnumber }
undo snmp-agent { inform | trap } source
Default
The SNMP agent uses the IP address of the outgoing routed interface as the source IP address of
notifications.
Views
System view
Predefined user roles
network-admin
Parameters
inform: Specifies informs.
trap: Specifies traps.
interface-type { interface-number | interface-number.subnumber }: Specifies an interface by its type and
number. The interface-number argument specifies a main interface number. The subnumber argument
specifies a subinterface number in the range of 1 to 4094.
Usage guidelines
The snmp-agent source command enables the SNMP agent to use the primary IP address of an interface
or subinterface as the source IP address in all its SNMP informs or traps, regardless of their outgoing
interfaces. An NMS can use this IP address to filter all the informs or traps sent by the SNMP agent.
Make sure the specified interface has been created and assigned a valid IP address. The configuration
will fail if the interface has not been created and will take effect only after a valid IP address is assigned
to the specified interface.
Examples
# Configure the primary IP address of GigabitEthernet 2/0/1 as the source address of SNMP traps.
189

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents