cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12559
Views
23
Helpful
6
Replies

SNMP: Find out if interface is a trunk

khuysmans
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

6 Replies 6

nhabib
Level 9
Level 9

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)

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?

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.

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

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

Drey Tee
Level 1
Level 1

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: