01-09-2006 06:13 AM
Hi,
Does anybody know the OID of a table that tells me whether the interfaces on a switch are configured as trunks?
So I want SNMP to poll the list of interfaces and tell me which are trunks and which are access ports.
Thanks in advance.
regards,
Kevin
Solved! Go to Solution.
01-09-2006 03:23 PM
You could try vlanTrunkPortDynamicStatus from the CISCO-VTP-MIB
(1.3.6.1.4.1.9.9.46.1.6.1.1.14):
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.47 = notTrunking(2)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.48 = notTrunking(2)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.49 = trunking(1)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.50 = trunking(1)
On older Switches (3524-XL IOS 12.0) there are only rows
for trunk interfaces in the table.
01-09-2006 06:59 AM
If switch is running CatOS, then you may poll the following object:
vlanPortIslOperStatus (.1.3.6.1.4.1.9.5.1.9.3.1.8)
The response would be: trunking(1) or notTrunking(2)
01-09-2006 07:48 AM
Thanks a lot nhabib, but I am running Cisco IOS on all my switches and the OID you suggest does not work on those.
Does anyone know of an equivalent for IOS?
01-09-2006 03:23 PM
You could try vlanTrunkPortDynamicStatus from the CISCO-VTP-MIB
(1.3.6.1.4.1.9.9.46.1.6.1.1.14):
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.47 = notTrunking(2)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.48 = notTrunking(2)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.49 = trunking(1)
CISCO-VTP-MIB::vlanTrunkPortDynamicStatus.50 = trunking(1)
On older Switches (3524-XL IOS 12.0) there are only rows
for trunk interfaces in the table.
01-10-2006 02:17 AM
Thanks kka, that is exactly what I was looking for!
02-09-2014 06:23 AM
Hi,
In what place I have to put this MIB in WinSCP?
knowing that Nagios is installed on EyesOfNetwork
/srv/eyesofnetwork/nagios/mibscisco/
What changes do I need in the script of this MIB that will be associated with where nagios is installed on EyesOfNetwork?
Thanks.
regards,
Medali
01-18-2019 09:20 PM
Both OIDs from other answers give me error: "No Such Object available on this agent at this OID" on my Small Business SF300-24 switch. SO I managed to find proper OID:
1.3.6.1.4.1.9.6.1.101.48.22.1.1
It gives INT 2 for access port and INT 3 for trunk port.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide