snmp-agent /开启SNMP协议/
snmp-agent local-engineid 0000000000 /系统自动生成,无需配置/
snmp-agent community read h3c acl 2001 /只读属性为h3c 匹配adc 2001/
snmp-agent community write h3c acl 2001 /可写属性为h3c 匹配adc 2001/
snmp-agent sys-info version v3 /配置snmp版本允许V3(默认只允许v3)/
snmp-agent group v3 public notify-view ViewDefault / 配置一个SNMP组 /
snmp-agent target-host trap address udp-domain 192.168.1.1 params securityname public v3
/允许向192.168.1.1发送Trap报文,使用的团体名为public/
snmp-agent usm-user v3 public public cipher authentication-mode md5 snmp3 privacy-mode des56 snmp3
h3c pulbic 都是团体名 snmp3是加密