Hello everyone! This post talks about the procedure of how to configure the SNMP v2 and v3 protocols on eSight and simulate a link-down alarm. Please see more details below.
[SNMP v2] The CE switch is used as an example. You only need to replace the red font.
//snmp v2 configuration
snmp-agent sys-info version all
snmp-agent mib-view include iso-view iso
snmp-agent community read public555 mib-view iso-view
snmp-agent community write private555 mib-view iso-view
//v2 alarm configuration
snmp-agent trap enable
snmp-agent target-host trap address udp-domain 10.179.118.117 udp-port 162 params securityname public555 v2c
snmp-agent trap source GigabitEthernet0/0/0
Parameter description
version all means v1/v2c/v3.
public555 Read community
private555 write community
10.179.118.117 NMS IP address (The floating IP address is configured when the 10.179.118.117 is deployed in a local two-node cluster.)
Default output port of the SNMP trap on the GigabitEthernet0/0/0
[SNMP v3] The CE switch is used as an example. You only need to replace the red font.
//snmp v3 configuration:
snmp-agent sys-info version all
snmp-agent mib-view include iso-view iso
snmp-agent group v3 LDPgroup privacy read-view iso-view write-view iso-view notify-view iso-view
snmp-agent usm-user v3 LDP group LDPgroup
snmp-agent usm-user v3 LDP authentication-mode md5 public555
snmp-agent usm-user v3 LDP privacy-mode aes128 private555
//v3 Alarm Configuration
snmp-agent target-host trap address udp-domain 10.179.118.117 params securityname LDP v3 privacy
snmp-agent trap source Ethernet0/0/0
snmp-agent trap enable
Parameter description
LDPgroup user group (not displayed on eSight)
LDP user name
public555 authentication password
private555 encryption password
10.179.118.117 NMS IP address (The floating IP address is configured when the 10.179.118.117 is deployed in a two-node cluster.)
Default SNMP trap output port on the GigabitEthernet0/0/0
Note:
1. Run the commit command to commit the configuration.
2. How to obtain the default trap egress?
dis ip interface brief
The interface with the same IP address as the device is.
This is what I want to talk about/share with you today, thank you!