HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference

143
# Create the read and write community writeaccess in plain text so only the SNMPv2c NMS at 1.1.1.1 can
use the community name writeaccess to read or set the MIB objects in the default view ViewDefault.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 1.1.1.1 0.0.0.0
[Sysname-acl-basic-2001] rule deny source any
[Sysname-acl-basic-2001] quit
[Sysname] snmp-agent sys-info version v2c
[Sysname] snmp-agent community write simple writeaccess acl 2001
# Create the read and write community wr-sys-acc in plain text so an SNMPv1 or SNMPv2c NMS can
use the community name wr-sys-acc to read or set the MIB objects in the system subtree (OID
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 simple wr-sys-acc mib-view test
Related commands
display snmp-agent community
snmp-agent mib-view
snmp-agent group
Use snmp-agent group to create an SNMP group and specify its access right.
Use undo snmp-agent group to delete an SNMP group.
Syntax
SNMPv1 and SNMPv2c:
snmp-agent group { v1 | v2c } group-name [ read-view view-name ] [ write-view view-name ]
[ notify-view view-name ] [ acl acl-number | acl ipv6 ipv6-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 | acl ipv6 ipv6-acl-number ] *
undo snmp-agent group v3 group-name [ authentication | privacy ]
Default
No SNMP group exists.
SNMPv3 groups use the no authentication, no privacy security model if neither authentication nor
privacy is specified.
Views
System view
Predefined use roles
network-admin