
261
Use the
undo cluster-snmp-agent community
command to remove a specified community name.
The command used to configure the SNMP community with read-only or read-and-write authority can
only be executed once on the management switch. This configuration will be synchronized to the member
switches in the whitelist, which is equivalent to configuring multiple member switches at one time.
An SNMP community name is retained when a cluster is dismissed or a member switch is removed from
the whitelist.
If the same community name as the current one has been configured on a member switch, the current
community name will replace the original one.
Examples
# Configure the SNMP community name shared by a cluster as
comaccess
and allow the community’s
read-only access to MIB objects.
<aaa_0.Sysname> system-view
[aaa_0.Sysname] cluster
[aaa_0.Sysname-cluster] cluster-snmp-agent community read comaccess
# Configure the SNMP community name shared by a cluster as
comaccesswr
and allow the community’s
read-write access to MIB objects.
[aaa_0.Sysname-cluster] cluster-snmp-agent community write comacceswr
cluster-snmp-agent group v3
Syntax
cluster-snmp-agent
group
v3
group-name
[
authentication
|
privacy
] [
read-view
read-view
]
[
write-view
write-view
]
[
notify-view
notify-view
]
undo cluster-snmp-agent group v3
group-name
[
authentication | privacy
]
View
Cluster view
Default level
1: Monitor level
Parameters
group-name
: Specifies the group name, a string of 1 to 32 characters.
authentication
:
Specifies to authenticate a packet but not to encrypt it.
privacy
:
Specifies to authenticate and encrypt a packet.
read-view
: Specifies the read-only view name, a string of 1 to 32 characters.
write-view
: Specifies the read-write view name, a string of 1 to 32 characters.
notify-view
: Specifies the view name in which trap messages can be sent. It is a string of 1 to 32
characters.
Description
Use the
cluster-snmp-agent group
command to configure the SNMPv3 group shared by a cluster and set
its access rights.
Use the
undo cluster-snmp-agent group
command to remove the SNMPv3 group shared by a cluster.