05-08-2024 05:22 AM
Hi,
we have replaced several C2960 and C3560 with new C9200L switches running on IOS XE 17.9.5. I would like to have the switches to send out SNMP traps (preferable v3, but I would even be happy with v1/v2c) on interface status changes including the interface description (alias) - which is not working.
I've tried all possible SNMP trap version commands, I've tried it with or without "snmp-server traps link ietf". The switch just won't be sending out the interface traps including the interface alias/description.
This is the whole SNMP trap message the switch sends out:
IF-MIB:linkDown : ifIndex.27 = 27, ifAdminStatus.27 = 1, ifOperStatus.27 = 2, ifDescr.27 = TenGigabitEthernet1/0/19, ifType.27 = 6, locIfReason.27 = down, sysUpTime = 18 days 1 hour 52 minutes 42,44 seconds, experimental.1057.1.0 = XXXX, snmpTrapEnterprise = SNMPv2-MIB:snmpTraps
For comparison, here's a trap from another new Cisco Nexus 9300 switch we have installed recently - this is what I would like to receive from the IOS switch too:
IF-MIB:linkUp : ifIndex.436214272 = 436214272, ifAdminStatus.436214272 = 1, ifOperStatus.436214272 = 1, ifDescr.436214272 = Ethernet1/14, ifAlias.436214272 = TEST-Server:10ge1, sysUpTime = 31 days 22 hours 58 minutes 30,48 seconds, experimental.1057.1.0 = XXXX, snmpTrapEnterprise = SNMPv2-MIB:snmpTraps
And yes, I know that I can poll the devices (what I am also doing of course), but I would like to have it sending out traps
Thanks,
E.
05-25-2024 03:43 AM
@Ethan-H wrote:Hi,
we have replaced several C2960 and C3560 with new C9200L switches running on IOS XE 17.9.5. I would like to have the switches to send out SNMP traps (preferable v3, but I would even be happy with v1/v2c) on interface status changes including the interface description (alias) - which is not working.
I've tried all possible SNMP trap version commands, I've tried it with or without "snmp-server traps link ietf". The switch just won't be sending out the interface traps including the interface alias/description.
This is the whole SNMP trap message the switch sends out:
IF-MIB:linkDown : ifIndex.27 = 27, ifAdminStatus.27 = 1, ifOperStatus.27 = 2, ifDescr.27 = TenGigabitEthernet1/0/19, ifType.27 = 6, locIfReason.27 = down, sysUpTime = 18 days 1 hour 52 minutes 42,44 seconds, experimental.1057.1.0 = XXXX, snmpTrapEnterprise = SNMPv2-MIB:snmpTraps
For comparison, here's a trap from another new Cisco Nexus 9300 switch we have installed recently - this is what I would like to receive from the IOS switch too:
IF-MIB:linkUp : ifIndex.436214272 = 436214272, ifAdminStatus.436214272 = 1, ifOperStatus.436214272 = 1, ifDescr.436214272 = Ethernet1/14, ifAlias.436214272 = TEST-Server:10ge1, sysUpTime = 31 days 22 hours 58 minutes 30,48 seconds, experimental.1057.1.0 = XXXX, snmpTrapEnterprise = SNMPv2-MIB:snmpTraps
And yes, I know that I can poll the devices (what I am also doing of course), but I would like to have it sending out traps
Thanks,
E.
Ensuring your SNMP configuration is correct, including enabling traps for interface status changes and verifying SNMP version compatibility. Confirm that the necessary SNMP MIBs are supported and loaded on the switches. Additionally, check for any known issues or limitations related to SNMP trap generation in the IOS XE version running on your switches. Reviewing configuration examples and documentation may provide insight into resolving the