华为交换机配置snmp怎么操作

2024-11-26 19:57:28
推荐回答(2个)
回答1:

华为snmp有3个版本,snmp有snmp(v1) 、snmp(v2c)、snmp(v3) 主要配置如下

  1. 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"

  2. 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"

回答2:

设置团体名 snmp-agent community { read write } community-name [ acl acl-number mib-view view-name ]*