IBM NH2025-10 Switch User Manual


 
Configuring, Modifying, and Monitoring the Unit
58
SNMP Community String Commands
-----------------------------------------------------------------
get-comm show current read or/and write community
set-comm change the read or write community
SNMP Community strings authenticate access to the MIB (Management Information Base).
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 accesses:
read – mode gives read access to all the objects in the MIB, but does not allow write access.
write – mode gives write access to all objects in the MIB.
Viewing the Community String
get-comm
The get-comm 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.
get-comm {read|write|*}
Example
SYS_console> get-comm *
Current read community is: < public >
Current write community is: < private >
SYS_console>
Setting the Read or Write Community
set-comm
The set-comm command lets you specify the SNMP community string for each of the two access
modes: read and write.
set-comm {read|write} <community-string>
Example
SYS_console>set-comm write password
New write community is: < password >
SYS_console>