05-28-2024 10:45 AM
Summary:
This Article explains about how to setup SNMPv2 and SNMPv3 Traps in ICX switches. SNMP traps are used to trace Issues related to switches using monitoring tools. This article will help with configuration and tracing SNMP traps using captures.
Question:
How to configure and troubleshooting SNMPv2 and SNMPv3 Traps in ICX switches
Customer Environment:
Monitoring tools would be used to capture SNMPv2 and SNMPv3 traps. These monitoring tool could be for example SolarWinds , PRTG etc.
SNMPv2 Configuration:
This configuration applies on all versions for a ICX switches.
Configuration:
snmp-server community public rw
snmp-server host 10.177.89.241 version v2c public
SNMPv2 trap troubleshooting: To troubleshoot and isolate if the polling and trap are working good use the Wireshark to run Packet capture in the uplink of the switch or on port which falls in path of traffic that helps lead the traffic to monitoring tool.
SNMPv2 request from SNMP tool:
SNMPv2 response from Switch:
SNMPv2 Trap Response from the switch:
Here port 1/1/23 is disabled and enabled to generate SNMPv2 trap:
Port disabled:
Port Enabled:
SNMPv3 Configuration:
This configuration applies on all versions for a ICX switches.
Configuration:
snmp-server enable ethernet 1/1/7
snmp-server host 10.177.89.241 version v3 auth test
snmp-server group admin v3 auth notify all read all write all
snmp-server user test admin v3 auth md5 testmd5123 priv des testdes123
SNMPv3 trap troubleshooting: To troubleshoot and isolate if the polling and trap are working good use the Wireshark to run Packet capture in the uplink of the switch or on port which falls in path of traffic that helps lead the traffic to monitoring tool.
SNMPv3 request from SNMP tool:
SNMPv3 response from Switch:
SNMPv3 Trap Response from the switch:
Here port 1/1/11 is disabled and enabled to generate SNMPv2 trap:
Port disabled:
Port Enabled:
How to Decrypt SNMPv3 packets in Wireshark
SNMPv3 Configuration used:
snmp-server enable ethernet 1/1/7
snmp-server host 10.177.89.241 version v3 auth test
snmp-server group admin v3 auth notify all read all write all
snmp-server user test admin v3 auth md5 testmd5123 priv des testdes123
When the SNMP packets are not decrypted it would look like below
Steps:
Once the details are added the decoded SNMPv3 traps would look like below picture in Wireshark