Junos OS

last person joined: 23 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  irb inteface for snmp?

    Posted 03-17-2017 13:49

    Hi all

     

    Are IRB interfaces suppose to show up in SNMP walks? As you can see I got an ae0 and ae0.30, both have SNMP ifIndex and when I do snmp walk I can find it. But if I use the SNMP ifIndex for an irb interface, irb.45, I couldn't find it. 

     

     

    {master}
    > show interfaces ae0
    Physical interface: ae0, Enabled, Physical link is Up
      Interface index: 128, SNMP ifIndex: 739
      Logical interface ae0.30 (Index 365) (SNMP ifIndex 742)
     
    {master}
    > show interfaces irb.45
      Logical interface irb.45 (Index 336) (SNMP ifIndex 756)
     
    
    {master}
    > show snmp mib walk 1 | match 739
    dot3adAggMACAddress.739  ... bla bla 
    dot3adAggPortListPorts.739 = ... bla bla
    
    {master}
    > show snmp mib walk 1 | match 742
    dot3adAggMACAddress.742  ... bla bla
    dot3adAggPortListPorts.742 =  ... bla bla
    {master}
    > show snmp mib walk 1 | match 756
    
     


  • 2.  RE: irb inteface for snmp?

     
    Posted 03-17-2017 19:10

    Hi Folks,

    I can poll data for irb interfaces as below, its my mx104 box running on 13.3R10.2. Please let me know your box/version,

     

    lab@mx104-r2001> show interfaces irb extensive

    Mar 18 02:02:36

    Physical interface: irb, Enabled, Physical link is Up

      Interface index: 176, SNMP ifIndex: 504, Generation: 179 <<<<<< SNMP Index

      Type: Ethernet, Link-level type: Ethernet, MTU: 1514, Clocking: Unspecified,

      Speed: Unspecified

      Device flags   : Present Running

      Interface flags: SNMP-Traps

      Link type      : Full-Duplex

      Link flags     : None

      Physical info  : Unspecified

      Hold-times     : Up 0 ms, Down 0 ms

      Current address: 84:b5:9c:be:d1:90, Hardware address: 84:b5:9c:be:d1:90

      Alternate link address: Unspecified

      Last flapped   : Never

      Statistics last cleared: Never

      Traffic statistics:

       Input  bytes  :                    0

       Output bytes  :                    0

       Input  packets:                    0

       Output packets:                    0

       IPv6 transit statistics:

        Input  bytes  :                   0

        Output bytes  :                   0

        Input  packets:                   0

        Output packets:                   0

      Input errors:

        Errors: 0, Drops: 0, Framing errors: 0, Runts: 0, Giants: 0,

        Policed discards: 0, Resource errors: 0

      Output errors:

        Carrier transitions: 0, Errors: 0, Drops: 0, MTU errors: 0,

        Resource errors: 0

     

      Logical interface irb.0 (Index 336) (SNMP ifIndex 541) (Generation 146)

        Flags: Up SNMP-Traps 0x0 Encapsulation: ENET2

        Bandwidth: 1000mbps

        Routing Instance: sw1 Bridging Domain: vlan100+100

        Traffic statistics:

         Input  bytes  :                    0

         Output bytes  :                    0

         Input  packets:                    0

         Output packets:                    0

        Local statistics:

         Input  bytes  :                    0

         Output bytes  :                    0

         Input  packets:                    0

         Output packets:                    0

        Transit statistics:

                                           

    lab@mx104-r2001> show snmp mib walk .1 | no-more | match 504

    Mar 18 02:04:28

    ifIndex.504   = 504

    ifDescr.504   = irb

    ifType.504    = 1

    ifMtu.504     = 1514

    ifSpeed.504   = 0

    ifPhysAddress.504 = 84 b5 9c be  d1 90

    ifAdminStatus.504 = 1

    ifOperStatus.504 = 1

    ifLastChange.504 = 8635

    ifInOctets.504 = 0

    ifInUcastPkts.504 = 0

    ifInNUcastPkts.504 = 0

    ifInDiscards.504 = 0

    ifInErrors.504 = 0

    ifInUnknownProtos.504 = 0

    ifOutOctets.504 = 0

    ifOutUcastPkts.504 = 0

    ifOutNUcastPkts.504 = 0

    ifOutDiscards.504 = 0

    ifOutErrors.504 = 0

    ifOutQLen.504 = 0

    ifSpecific.504 = 0.0

    ifName.504    = irb

    ifInMulticastPkts.504 = 0

    ifInBroadcastPkts.504 = 0

    ifOutMulticastPkts.504 = 0

    ifOutBroadcastPkts.504 = 0

    ifHCInOctets.504 = 0

    ifHCInUcastPkts.504 = 0

    ifHCInMulticastPkts.504 = 0

    ifHCInBroadcastPkts.504 = 0

    ifHCOutOctets.504 = 0

    ifHCOutUcastPkts.504 = 0

    ifHCOutMulticastPkts.504 = 0

    ifHCOutBroadcastPkts.504 = 0

    ifLinkUpDownTrapEnable.504 = 1

    ifHighSpeed.504 = 0

    ifPromiscuousMode.504 = 2

    ifConnectorPresent.504 = 2

    ifAlias.504 

    ifCounterDiscontinuityTime.504 = 0

    ifStackStatus.504.0 = 1

    ifStackStatus.541.504 = 1

    sysApplInstallElmtSizeLow.5.5 = 14655040

    sysApplInstallElmtCurSizeLow.5.5 = 14655040

    sysApplElmtRunMemory.3.16.1799 = 35040

    ƒ^C[abort]

                                          

    lab@mx104-r2001> show ver

    Mar 18 02:06:43sion

    Hostname: jtac-mx104-r2001

    Model: mx104

    Junos: 13.3R10.2



  • 3.  RE: irb inteface for snmp?
    Best Answer

     
    Posted 03-17-2017 19:15

    Hi Folks,

    To add there is no known restriction for fetching irb interface statistics with snmp to my knowledge.

     

    https://www.juniper.net/techpubs/en_US/junos/topics/reference/command-summary/show-interfaces-irb-command.html