1)H3C SNMPv3 配置
[html]
view plain
copy
print
?
snmp-agent mib-view included MIB-2 mib-2
snmp-agent mib-view included MIB-2 mib-2
noAuthNoPriv :
[html]
view plain
copy
print
?
snmp-agent group v3 mygroup read-view MIB-2 snmp-agent usm-user v3 myuser mygroup
snmp-agent group v3 mygroup read-view MIB-2
snmp-agent usm-user v3 myuser mygroup
authNoPriv:
[html]
view plain
copy
print
?
snmp-agent group v3 mygroup authentication read-view MIB-2 snmp-agent usm-user v3 myuser mygroup authentication-mode sha mypass123456
snmp-agent group v3 mygroup authentication read-view MIB-2
snmp-agent usm-user v3 myuser mygroup authentication-mode sha mypass123456
authPriv :
[html]
view plain
copy
print
?
snmp-agent group v3 mygroup privacy read-view MIB-2 snmp-agent usm-user v3 myuser mygroup authentication-mode sha mypass123456 privacy-mode des56 mydes123456
snmp-agent group v3 mygroup privacy read-view MIB-2
snmp-agent usm-user v3 myuser mygroup authentication-mode sha mypass123456 privacy-mode des56 mydes123456
2)snmpwalk读取
noAuthNoPriv:
[html]
view plain
copy
print
?
snmpwalk -v 3 -l noAuthNoPriv -u myuser 192.168.0.90 .1.3.6.1.2
snmpwalk -v 3 -l noAuthNoPriv -u myuser 192.168.0.90 .1.3.6.1.2
authNoPriv:
[html]
view plain
copy
print
?
snmpwalk -v 3 -u myuser -l authNoPriv -a sha -A mypass123456 192.168.0.90 .1.3.6.1.2
snmpwalk -v 3 -u myuser -l authNoPriv -a sha -A mypass123456 192.168.0.90 .1.3.6.1.2
authPriv :
[html]
view plain
copy
print
?
snmpwalk -v 3 -u myuser -l authPriv -a sha -A mypass123456 -x des -X mydes123456 192.168.0.90 .1.3.6.1.2
snmpwalk -v 3 -u myuser -l authPriv -a sha -A mypass123456 -x des -X mydes123456 192.168.0.90 .1.3.6.1.2