Configuring snmpv1 or snmpv2c settings – H3C Technologies H3C S12500 Series Switches User Manual
Page 58

46
Step Command
Remarks
3.
Configure an SNMP
group and specify its
access right.
snmp-agent group v3 group-name
[ authentication | privacy ]
[ read-view read-view ] [ write-view
write-view ] [ notify-view
notify-view ] [ acl acl-number ]
By default, no SNMP group is
configured.
4.
Add a user to the SNMP
group.
snmp-agent usm-user v3 user-name
group-name [ [ cipher ]
authentication-mode { md5 | sha }
auth-password [ privacy-mode
{ 3des | aes128 | des56 }
priv-password ] ] [ acl acl-number ]
If the cipher keyword is specified, both
auth-password and priv-password are
cipher text passwords.
Configuring SNMPv1 or SNMPv2c settings
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable SNMP agent.
snmp-agent
Optional.
Disabled by default.
You can enable SNMP agent
with this command or any
command that begins with
snmp-agent.
3.
Create or update MIB
view information.
snmp-agent mib-view { excluded | included }
view-name oid-tree [ mask mask-value ]
Optional.
By default, the MIB view
name is ViewDefault and
OID is 1.
4.
Specify the SNMP NMS
access right.
•
(Method 1) Specify the SNMP NMS
access right directly by configuring an
SNMP community
snmp-agent community { read | write }
community-name [ acl acl-number |
mib-view view-name ]*
•
(Method 2) Specify the SNMP NMS
access right indirectly
a.
Configure an SNMP group
snmp-agent group { v1 | v2c }
group-name [ read-view read-view ]
[ write-view write-view ] [ notify-view
notify-view ] [ acl acl-number ]
b.
Add a user to the SNMP group
snmp-agent usm-user { v1 | v2c }
user-name group-name [ acl
acl-number ]
Use either method.
The direct configuration
method is for SNMPv1 or
SNMPv2c. The community
name configured on the
NMS should be consistent
with the username configured
on the agent.
The indirect configuration
method is for SNMPv3.
- H3C S12500-X Series Switches H3C S9800 Series Switches H3C S9500E Series Switches H3C S5560 Series Switches H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C WA3600 Series Access Points H3C WA2600 Series WLAN Access Points H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C S10500 Series Switches