Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

SNMP: Find out if interface is a trunk

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
kka
Community Member

Re: SNMP: Find out if interface is a trunk

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.

5 REPLIES
Red

Re: SNMP: Find out if interface is a trunk

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)

Community Member

Re: SNMP: Find out if interface is a trunk

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?

kka
Community Member

Re: SNMP: Find out if interface is a trunk

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.

Community Member

Re: SNMP: Find out if interface is a trunk

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

Community Member

SNMP: Find out if interface is a trunk

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

4805
Views
18
Helpful
5
Replies
CreatePlease to create content