Wednesday, 7 May 2014

SNMP configuration on H3C switches


Step1. Login to Switch with admin access. As soon as you enter your credential, you will be in user mode. In this mode you can only view the command output.

 
< H3C-Switch>
 

Step2. To make configuration changes you must enter in Systemview. It is similar to the exec mode of cisco switches. 

 
<H3C-Switch>system-view
System View: return to User View with Ctrl+Z.
[H3C-Switch]
 

Step3. Configure the Read only SNMP version 2 string. We can also configure the access list 2090 to restrict the snmp communication with specific hosts.

 
[H3C-Switch]snmp-agent community read Cisco acl 2091
 

Step4. Configure basic access list 2091 for snmp server 192.168.1.10.

 
[H3C-Switch]acl number 2091
[H3C-Switch-acl-basic-2090]rule 5 permit source 192.168.1.10 0
 

 Step4. Configure SNMP contact. It is an optional field.

 
[H3C-Switch]snmp-agent sys-info contact Network_Team
 

Step5. Configure the Device Location. It is an optional field. 

 
[H3C-Switch]snmp-agent sys-info location Lab
 

Step6. Enable SNMP version V2c on the switch.

 
[H3C-Switch]snmp-agent sys-info version v2c
 

Step7. Configure SNMP traps. In this example switch will use UDP to send traps to server 192.168.1.10 with snmp string trapstring using version V2c.

 
[H3C-Switch]snmp-agent target-host trap address udp-domain 192.168.1.10 params securityname trapstring v2c
 

 

No comments:

Post a Comment