Configuring for Network Management Applications

Using SNMP Tools To Manage the Switch

Configuring Community Names and Values. The snmp-servercommand enables you to add SNMP communities with either default or specific access attributes, and to delete specific communities.

Syntax: [no] snmp-server community < community-name >

Configures a new community name. If you do not also specify operator or manager, the switch automatically assigns the community to the operator MIB view. If you do not specify restricted or unrestricted, the switch auto­ matically assigns the community to restricted (read- only) access. The no form uses only the < community- name > variable and deletes the named community from the switch.

[operator manager]

Optionally assigns an access level. At the operator level the community can access all MIB objects except the CONFIG MIB. At the manager level the community can access all MIB objects.

[restricted unrestricted]

Optionally assigns MIB access type. Assigning the restricted type allows the community to read MIB vari­ ables, but not to set them. Assigning the unrestricted type allows the community to read and set MIB variables.

For example, to add the following communities:

Community

Access Level

Type of Access

 

 

 

red-team

manager

unrestricted

 

(Access to all MIB objects.)

(read/write)

blue-team

operator

restricted

 

(Access to all MIB objects

(read-only)

 

except the CONFIG MIB.)

 

 

 

 

HPswitch(config)# snmp-server community red-team manager unrestricted

HPswitch(config)# snmp-server community blue-team operator restricted

To eliminate a previously configured community named "gold-team":

HPswitch(config) # no snmp-server community gold-team

13-17