H3C s3600 series Command Manual page 907

Hide thumbs Also See for s3600 series:
Table of Contents

Advertisement

View
System view
Parameters
v1: Specifies SNMPv1.
v2c: Specifies SNMPv2c.
v3: Specifies SNMPv3.
group-name: Name of the SNMP group to be created, a string of 1 to 32 characters.
authentication: Configures to authenticate but do not encrypt the packets.
privacy: Configures to authenticate and encrypt the packets.
read-view: Read-only view name, a string of 1 to 32 characters. The default value is ViewDefault.
write-view: Read-write view name, a string of 1 to 32 characters. By default, no write view is configured,
namely, the NMS cannot perform the write operation on the MIB objects of the device.
notify-view: Notification view name in which traps can be sent, a string of 1 to 32 characters. By default,
no notify view is configured, namely, the agent will not send traps to the NMS.
acl-number: ID of a basic ACL, in the range 2000 to 2999. Using basic ACL can restrict the source
addresses of SNMP messages, namely, permitting or refusing the SNMP messages with specific
source addresses, thus restricting access between the NMS and the agent.
Description
Use the snmp-agent group command to create an SNMP group, and set the security mode and
corresponding SNMP view of the group.
Use the undo snmp-agent group command to remove an SNMP group.
For SNMPv3, group name and security mode (whether authentication and privacy are performed) can
jointly define a group. Groups with the same group name but different security mode are different
groups. For the details, see the following examples.
By default, the SNMP groups created using the snmp-agent group v3 command do not authenticate or
encrypt packets.
Related commands: snmp-agent mib-view, snmp-agent usm-user.
Examples
# Create an SNMPv1 group named v1group.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent group v1 v1group
# Create an SNMPv3 group v3group, set the security mode to no authentication no privacy, and set the
read view, write view and view in which traps can be sent to OSPF view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] snmp-agent group v3 v3group read-view ospf write-view ospf notify-view ospf
# Create an SNMPv3 group v3group, set the security mode to authentication and privacy, and permit
only access from the NMS whose IP address is 192.168.0.108 to the agent using ACL.
[Sysname] acl number 2001
1-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents