User`s guide

SNMP Commands
7-20 Using the Administrative Interface
SNMP Commands
This section lists commands pertinent to configuring the SNMP Agent itself, that is,
access and trap configuration. It is split into two parts: SNMP community strings lists
the access modifications, and the trap section lists SNMP traps configuration
commands.
SNMP Community Strings
SNMP community strings authenticate access to the Management Information Base
(MIB). Community strings function as passwords embedded in every SNMP packet.
The community string must match one of the two community strings configured in the
switch for the message to be processed. There are two community strings, one for each
of the following types of access:
• Read mode
gives read access to all the objects in the MIB, but does not allow
write access.
• Write mode
gives read and write access to all objects in the MIB.
get-comm
Usage:
get-comm {read|write|*}
This command displays the SNMP community string for a given access mode (read
or write). If the access mode is specified as *, both the read and the write community
strings are displayed.
SYS_console> get-comm *
Current read community is: < public >
Current write community is: < private >
set-comm
Usage:
set-comm {read|write}
<community-string>
This command lets you specify the SNMP community string for each of the two access
modes: read and write.
SYS_console> set-comm write password
New write community is: < password >