Management and Configuration Guide K/KA/KB.15.15

Figure 88 SNMP community listing with two communities
To list the data for only one community, such as the "public" community, use the above command
with the community name included. For example:
HP Switch# show snmp-server public
Configuring community names and values
The snmp-server command 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 automatically 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.
Optionally assigns an access level.[ operator | manager ]
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.
Optionally assigns MIB access type.[ restricted | unrestricted ]
Assigning the restricted type allows the community to read MIB
variables, but not to set them.
Assigning the unrestricted type allows the community to read and
set MIB variables.
200 Configuring for Network Management Applications