python obtaining public network IP interfaces on the snmp usg

Huawei usg on the firewall configuration of the snmp v3, get on the public network interface module through the python netsnmp.

  • snmp configuration on usg, will yorur_usernam, your_auth_pass, yoru_priva_pass replace your own settings
    
    snmp-agent
    snmp-agent sys-info version v3
    snmp-agent group v3 v3group privacy read-view v3view write-view v3view notify-view v3view
    snmp-agent mib-view included v3view iso
    snmp-agent usm-user v3 your_username
    snmp-agent usm-user v3 your_username group v3group
    snmp-agent usm-user v3 your_username authentication-mode sha cipher your_auth_pass
    snmp-agent usm-user v3 your_username privacy-mode aes128 cipher yoru_priva_pass
    snmp-agent trap source Vlanif11
    snmp-agent trap enable

int vlan 11
service-manage snmp permit

Guess you like

Origin blog.51cto.com/penguintux/2414830