SNMP: Find out if interface is a trunk

Answered Question
Jan 9th, 2006
User Badges:

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

Correct Answer by kka about 11 years 7 months ago

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.


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.3 (4 ratings)
Loading.
nhabib Mon, 01/09/2006 - 06:59
User Badges:
  • Red, 2250 points or more

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)

khuysmans Mon, 01/09/2006 - 07:48
User Badges:

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?

Correct Answer
kka Mon, 01/09/2006 - 15:23
User Badges:

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.


khuysmans Tue, 01/10/2006 - 02:17
User Badges:

Thanks kka, that is exactly what I was looking for!

medaliesprit Sun, 02/09/2014 - 06:23
User Badges:

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

Actions

This Discussion