R3204P16-HP Load Balancing Module System Maintenance Command Reference-6PW101

55
[Sysname] snmp-agent community write writeaccess acl 2001
Set the IP address of the NMS to 1.1.1.1
Set the SNMP version on the NMS to SNMPv2c
Fill in the write community name writeaccess; namely, the NMS can perform read-only operations
to the MIB objects in the default MIB view (ViewDefault) on the device
# Create a read and write community and name it wr-sys-acc. The NMS can perform the read and write
operations to the MIB objects of the system subtree (with the OID of 1.3.6.1.2.1.1).
<Sysname> system-view
[Sysname] snmp-agent sys-info version v1 v2c
[Sysname] undo snmp-agent mib-view ViewDefault
[Sysname] snmp-agent mib-view included test system
[Sysname] snmp-agent community write wr-sys-acc mib-view test
Set the SNMP version on the NMS to SNMPv1 or SNMPv2c
Fill in the write community name wr-sys-acc
Establish a connection, and the NMS can perform read and write operations to the MIB objects in
system view on the device
snmp-agent group
Syntax
SNMPv1 and SNMP v2c:
snmp-agent group { v1 | v2c } group-name [ read-view read-view ] [ write-view write-view ]
[ notify-view notify-view ] [ acl acl-number ]
undo snmp-agent group { v1 | v2c } group-name
SNMPv3:
snmp-agent group v3 group-name [ authentication | privacy ] [ read-view read-view ] [ write-view
write-view ] [ notify-view notify-view ] [ acl acl-number ]
undo snmp-agent group v3 group-name [ authentication | privacy ]
View
System view
Default level
3: Manage level
Parameters
v1: SNMPv1.
v2c: SNMPv2c.
v3: SNMPv3.
group-name: Group name, which is a string of 1 to 32 characters.
authentication: Specifies the security model of the SNMPv3 group to be authentication only (without
privacy).
privacy: Specifies the security model of the SNMPv3 group to be authentication and privacy.