R3166-R3206-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101
123
Configuration procedure
After traps are sent to the SNMP module, the SNMP module saves the traps in the trap queue. You can
set the size of the queue and the holding time of the traps in the queue, and you can also send the traps
to the specified destination host (usually the NMS).
Follow these steps to configure trap parameters:
To do… Use the command…
Remarks
Enter system view system-view —
Configure target host attribute for
traps
snmp-agent target-host trap
address udp-domain ip-address
[ udp-port port-number ]
[ vpn-instance vpn-instance-name ]
params securityname
security-string [ v1 | v2c | v3
[ authentication | privacy ] ]
Optional
To send the traps to the NMS, this
command is required, and you
must specify ip-address as the IP
address of the NMS.
Configure the source address for
traps
snmp-agent trap source
interface-type { interface-number |
interface-number.subnumber }
Optional
Extend the standard
linkUp/linkDown traps defined in
RFC
snmp-agent trap if-mib link
extended
Optional
Standard linkUp/linkDown traps
defined in RFC are used by default.
Configure the size of the trap send
queue
snmp-agent trap queue-size size
Optional
100 by default
Configure the holding time of the
traps in the queue
snmp-agent trap life seconds
Optional
120 seconds by default
NOTE:
• An extended linkUp/linkDown trap is the standard linkUp/linkDown trap (defined in RFC) appended
with interface description and interface type information. If the extended messa
g
es are not supported on
the NMS, disable this function to let the device send standard linkUp/linkDown traps.
• If the sendin
g
queue of traps is full, the system will automatically delete some oldest traps to receive ne
w
traps.
• The system will automatically delete the traps whose holding time expires.
Displaying and maintaining SNMP
To do… Use the command…
Remarks
Display SNMP agent system information,
including the contact, location, and version
of the SNMP
display snmp-agent sys-info [ contact | location
| version ]*
Available in
any view
Display SNMP agent statistics display snmp-agent statistics
Display the SNMP agent engine ID display snmp-agent local-engineid
Display SNMP agent group information display snmp-agent group [ group-name ]
Display basic information of the trap queue
display snmp-agent trap queue