华为snmp有3个版本,snmp有snmp(v1) 、snmp(v2c)、snmp(v3) 主要配置如下
snmp(v1)
【RTA】snmp-agent
【RTA】snmp-agent sys-info version v1
【RTA】snmp-agent community read public
【RTA】snmp-agent community write Private
【RTA】snmp-agent sys-info contact "zidingyi"
【RTA】snmp-agent sys-info location "zidingyi2"
snmp(v3)
【RTA】snmp-agent
【RTA】snmp-agent sys-info version v3
【RTA】snmp-agent group v3 mygroup privacy write-view viewdefault
【RTA】snmp-agent usm-user v3 myuser mygroup authentication-mode shaHuawei@123 privacy-mode aes128 Huawei@123
【RTA】snmp-agent sys-info contact "zidingyi"
【RTA】snmp-agent sys-info location "zidingyi2"
设置团体名 snmp-agent community { read write } community-name [ acl acl-number mib-view view-name ]*