Displaying and Maintaining SNMP 937
n
The extended linkUp/linkDown Traps comprise the standard linkUp/linkDown Traps 
defined in RFC plus interface description and interface type. If the extended 
messages are not supported on NMS, you can disable this function and enable the 
device to send standard linkUp/linkDown Traps.
Displaying and 
Maintaining SNMP
Configure target host 
attribute for Traps 
snmp-agent target-host 
trap address udp-domain 
{ ip-address | ipv6 
ipv6-address } [ udp-port 
port-number ] params 
securityname security-string 
[ v1 | v2c | v3 
[ authentication | privacy ]] 
Required 
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 queue size for 
sending Traps 
snmp-agent trap 
queue-size size 
Optional
100 by default 
Configure the lifetime for 
Traps 
snmp-agent trap life 
seconds 
Optional
120 seconds by default
To do…  Use the command…  Remarks 
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 
switch fabric ID 
display snmp-agent local-switch 
fabricid
Display SNMP agent group 
information 
display snmp-agent group 
[ group-name ]
Display the modules that can 
send Traps and whether their 
Trap sending is enabled or not 
display snmp-agent trap-list
Display SNMP v3 agent user 
information 
display snmp-agent usm-user 
[ switch fabricid switch fabricid | 
username user-name | group 
group-name ] *
Display SNMP v1 or v2c agent 
community information 
display snmp-agent community 
[ read | write ]
Display MIB view information 
for an SNMP agent 
display snmp-agent mib-view 
[ exclude | include | viewname 
view-name ]