Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  Can I Use SNMP to Determine Trunk?

    Posted 03-03-2014 08:18

    Is there an OID I can poll for an interface to determine if it is an active trunk? For example, waling 1.3.6.1.4.1.9.9.46.1.6.1.1.14 on a Cisco switch will show a 1 for an access port and a 2 for a trunk port.

     

    EDIT: I'm looking specifically at EX series switches.

     

    TIA,

     

    Eric Brander



  • 2.  RE: Can I Use SNMP to Determine Trunk?
    Best Answer

    Posted 03-03-2014 11:26

    I am not sure of the oid value, but this may help you

    http://www.juniper.net/techpubs/en_US/junos13.3/topics/reference/mibs/mib-jnx-vlan.txt

     A little testing revealed the following which I hope you can use;

     

     run show snmp mib walk jnxExVlanPortAccessMode | display xml | match oid
                <oid>1.3.6.1.4.1.2636.3.40.1.5.1.7.1.5.3.521</oid>
                <oid>1.3.6.1.4.1.2636.3.40.1.5.1.7.1.5.3.527</oid>
                <oid>1.3.6.1.4.1.2636.3.40.1.5.1.7.1.5.4.522</oid>
                <oid>1.3.6.1.4.1.2636.3.40.1.5.1.7.1.5.4.528</oid>

    An interface configured in trunk mode have a value of 2
     run show snmp mib walk ascii jnxExVlanPortAccessMode
    jnxExVlanPortAccessMode.3.521 = 2
    jnxExVlanPortAccessMode.3.527 = 1
    jnxExVlanPortAccessMode.4.522 = 1
    jnxExVlanPortAccessMode.4.528 = 1


    Ineger value 2 = trunk
    Integer valu 1 = access

    Added another trunk port
     run show snmp mib walk jnxExVlanPortAccessMode
    jnxExVlanPortAccessMode.3.521 = 2
    jnxExVlanPortAccessMode.3.527 = 1
    jnxExVlanPortAccessMode.4.522 = 2
    jnxExVlanPortAccessMode.4.528 = 1



  • 3.  RE: Can I Use SNMP to Determine Trunk?

    Posted 03-03-2014 12:23

    Thank you!!!

     

    For the record that OID is 1.3.6.1.4.1.2636.3.40.1.5.1.7.1.5