Thursday, October 14, 2021

SNMP Switchport descriptions

When SNMP (non-V3) is configured to be sent, is it possible to include switcport description?

Full disclosure - I haven't gone mad into research, but when searching either I'm using the wrong keywords or there is not much out there.

Now I'm receiving:

2021-10-14 06:58:12 Local7.Debug 192.168.1.1 community=communityxx, uptime=06:58:12, agent_ip=192.168.1.1, generic_num=5, specificTrap_num=4, specificTrap_name=, version=Ver1, generic_name=linkUp, ifIndex.10105=10105, ifDescr.10105=GigabitEthernet1/0/5, ifType.10105=ethernet-csmacd, locIfReason.10105=up

Is there a way how get Switchport Description included?

E.g.:

2021-10-14 06:58:12 Local7.Debug 192.168.1.1 community=communityxx, uptime=06:58:12, agent_ip=192.168.1.1, generic_num=5, specificTrap_num=4, specificTrap_name=, version=Ver1, generic_name=linkUp, ifIndex.10105=10105, ifDescr.10105=GigabitEthernet1/0/5, ifType.10105=ethernet-csmacd, locIfReason.10105=up, ifDescription or ifName

Mainly for 2960x, 3850, 9200 and 9300.

If that is possible, any guidlines on how it is done? I do see that you can walk the MIB's and see them, but can't wrap my head aorund how to get them to Syslog.



No comments:

Post a Comment