IBM NH2025-10 Snmp Community String Commands, Viewing the Community String, Get-comm, Set-comm

Models: NH2025-10

1 86
Download 86 pages 35.96 Kb
Page 66
Image 66

Configuring, Modifying, and Monitoring the Unit

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-commcommand 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 {readwrite*}

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-commcommand lets you specify the SNMP community string for each of the two access modes: read and write.

set-comm {readwrite} <community-string>

Example

SYS_console>set-comm write password

New write community is: < password >

SYS_console>

58

Page 66
Image 66
IBM NH2025-10 Snmp Community String Commands, Viewing the Community String, Setting the Read or Write Community, Get-comm