78
trap PDUs
Number of Trap packets sent.
2.4.3.3 show snmp status
Command: show snmp status
Function:
Display SNMP configuration information.
Command mode:
Admin Mode
Example:
Switch#show snmp status
Trap enable
RMON enable
Community Information:
V1/V2c Trap Host Information:
V3 Trap Host Information:
Security IP Information:
Displayed information
Description
Community string
Community string
Community access
Community access permission
Trap-rec-address
IP address which is used to receive Trap.
Trap enable
Enable or disable to send Trap.
SecurityIP
IP address of the NMS which is allowed
to access Agent
2.4.3.4 snmp-server community
Command: snmp-server community <string> {ro|rw}
snmp-server community <string>
Function:
Configure the community string for the switch; the “
no snmp-server
community <string>
“ command deletes the configured community string.
Parameter: <string>
is the community string set;
ro|rw
is the specified access mode to
MIB,
ro
for read-only and
rw
for read-write.
Command mode:
Global Mode
Usage Guide:
The switch supports up to 4 community strings.
Example 1:
Add a community string named “private” with read-write permission.
Switch(config)#snmp-server community private rw
Example 2:
Add a community string named “public” with read-only permission.
Switch(config)#snmp-server community public ro