SNMP Configuration Commands 481
View
System view
Parameter
read: Indicate that MIB object can only be read.
write: Indicate that MIB object can be read and written.
community-name:
Community name character string.
view-name:
MIB view name.
acl
acl-list
: set access control list for specified community.
Description
Use the snmp-agent community command to set the community access name and
enable access to SNMP. Use the
undo snmp-agent community command to cancel
the settings of community access name.
Example
Configure community name as guest and with read-only access permission.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]snmp-agent community read guest
Configure community name as mgr and read-write access permission.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]snmp-agent community write mgr
Delete the community name comaccess.
[SW5500]undo snmp-agent community comaccess
snmp-agent group Syntax
snmp-agent group { v1 | v2c }
group_name
[ read-view
read-view
] [
write-view
write-view
] [ notify-view
notify-view
] [ acl
acl-list
]
undo snmp-agent group { v1 | v2c }
group-name
snmp-agent group v3
group-name
[ authentication | privacy ] [
read-view
read-view
] [ write-view
write-view
] [ notify-view
notify-view
] [ acl
acl-list
]
undo snmp-agent group v3
group-name
[ authentication | privacy ]
View
System view
Parameter
group-name:
Enter a group name, up to 32 characters in length.
authentication: Specifies that the packet is authenticated without encryption.