
Customizing SNMP
308644-15.1 Rev 00
3-23
Configuring a Community
To configure a community, enter the following command:
snmpserver community
{
<community_name>
}
{
RO
|
RW
}
•
community_name
is the name that you give to this community.
•
RO
specifies read-only access to the viewable MIBs for this community.
•
RW
specifies read-write access to the viewable MIBs for this community.
For example, to create a community named “pubnet” that is configured to allow
read-write access, enter:
snmpserver community pubnet RW
Associating a View with a Community
Although a view can be associated with multiple communities, each community
can be associated with only one view. To associate a view with a community, enter
the following command:
snmpserver community
{<
community_name>
}
view
{<
view_name>
}
•
community_name
is the name of the community with which you want to
associate the view
.
•
view_name
is the name of the view that you are associating with the
community
.
For example, to associate the view named “block” with the community name
“pubnet” allowing read-write community access, enter:
snmpserver community pubnet view block
Listing Community Information
To list information (index, name, associated view, and access rights) for a specific
community, or for all configured communities, enter:
snmpserver community
[
<community_name>
]
list
•
community_name
is the name of the community for which you want to
display
this information. If you do not specify the
community_name
argument, the command displays information for all configured communities.
Comentarios a estos manuales