Huawei switches open SNMP V1 / V2C

1. Run system view

 system-view  

 2. Enable snmp agent

snmp-agent // undo snmp-agent running close snmp agent

Contact Information 3. Configuration Management node  

snmp-agent sys-info contact 

eg: snmp-agent sys-info contact 4008229999

The physical location of the node configuration management

snmp-agent sys-info location

eg:  snmp-agent sys-info location BeiJing China

Configuration version of snmp

snmp-agent sys-info version

eg:  snmp-agent sys-info version v2c

4. Configure community name snmp agent of

snmp-agent community read PublicManager community name string, case sensitive, without spaces ranging in length from 8 to 32

5. Enable packet switch to send Trap

snmp-agent trap enable

6. Configure the alarm mode to send Inform mode, secure host name PublicManager, protocol version is v2c, send an alarm to alert the host 172.16.3.1

snmp-agent target-host inform address udp-domain 172.16.3.1 params securityname PublicManager v2c

 

Guess you like

Origin www.cnblogs.com/longlogs/p/11669329.html