Displaying and maintaining snmp – H3C Technologies H3C SR8800 User Manual
Page 112
100
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure a target host.
snmp-agent target-host trap address
udp-domain { ip-address | ipv6
ipv6-address } [ udp-port port-number ]
[ vpn-instance vpn-instance-name ]
params securityname security-string [ v1
| v2c | v3 [ authentication | privacy ] ]
Optional.
The vpn-instance keyword is
applicable in an IPv4 network.
To send the traps to the NMS, this
command is required, and you
must specify ip-address as the IP
address of the NMS.
3.
Configure the source
address for traps.
snmp-agent trap source interface-type
{ interface-number |
interface-number.subnumber }
Optional.
4.
Extend the standard
linkUp/linkDown traps.
snmp-agent trap if-mib link extended
Optional.
By default, standard
linkUp/linkDown traps are used.
5.
Configure the trap
queue size.
snmp-agent trap queue-size size
Optional.
The default trap queue size is 100.
6.
Configure the trap
holding time.
snmp-agent trap life seconds
Optional.
120 seconds by default.
NOTE:
•
Extended linkUp/linkDown traps add interface description and interface type to standard
linkUp/linkDown traps. If the NMS does not support extended SNMP messages, use standard
linkUp/linkDown traps.
•
When the trap queue is full, the oldest traps are automatically deleted for new traps.
•
A trap is deleted when its holding time expires.
Displaying and maintaining SNMP
Task Command
Remarks
Display SNMP agent system
information, including the contact,
physical location, and SNMP
version.
display snmp-agent sys-info [ contact |
location | version ]* [ | { begin | exclude |
include } regular-expression ]
Available in any view
Display SNMP agent statistics.
display snmp-agent statistics [ | { begin |
exclude | include } regular-expression ]
Available in any view
Display the local engine ID.
display snmp-agent local-engineid [ | { begin
| exclude | include } regular-expression ]
Available in any view
Display SNMP group information.
display snmp-agent group [ group-name ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view
Display basic information about
the trap queue.
display snmp-agent trap queue [ | { begin |
exclude | include } regular-expression ]
Available in any view
- H3C SR6600-X H3C SR6600 H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module