Junos OS

last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Trying to find SNMP MIBs for interface Mac Stats

    Posted 06-26-2011 17:54

    Trying to find the snmp mibs for the mac stats from the show interfaces extensive command as follows...  Can someone point me in the right direction?  I have browsed the interface mib and am not seeing it.

     

    MX> show interfaces xe-4/1/0 extensive

    Physical interface: xe-4/1/0, Enabled, Physical link is....

    MAC statistics:                      Receive         Transmit

        Total octets                             0                0

        Total packets                          0                0

        Unicast packets                       0                0

        Broadcast packets                   0                0



  • 2.  RE: Trying to find SNMP MIBs for interface Mac Stats

    Posted 06-26-2011 23:22

    Howdy,

     

    The mib you are looking for is etherStatsOctets:

     

    bdale@EX3200> show snmp mib walk etherStatsOctets    
    etherStatsOctets.151 = 0
    etherStatsOctets.152 = 0
    etherStatsOctets.153 = 0
    etherStatsOctets.154 = 0
    etherStatsOctets.501 = 3536
    etherStatsOctets.502 = 3536
    etherStatsOctets.503 = 203988
    etherStatsOctets.504 = 203988

     Hope this helps!



  • 3.  RE: Trying to find SNMP MIBs for interface Mac Stats

    Posted 06-28-2011 03:06

    Hi TexanNetNut,

     

    (to add to dfex's answer)

     

    The OIDs you are looking for are part of the RFC2819(RMON) MIB, which you can download (together with all standard and Juniper-Enterprise MIBs) here:

     

    http://www.juniper.net/techpubs/en_US/release-independent/junos/mibs/mibs.html

     

    You can find the MIB in the directory StandardMibs, as mib-rfc2819a.txt

    Just drop it into your NM station, and browse the Etherstats table under the RMON mib (.1.3.6.1.2.1.16.1.1)

     

    Hope it helps..

     Saverio

     

     



  • 4.  RE: Trying to find SNMP MIBs for interface Mac Stats

    Posted 06-30-2011 11:37

    Thanks guys, I'll give this a shot.  Any recommendations on easy to use free mib browsers?



  • 5.  RE: Trying to find SNMP MIBs for interface Mac Stats

    Posted 06-30-2011 16:56

    Guys, I browse the mib and in this case to get etherStatsOctects I use .1.3.6.1.2.1.16.1.1.1.4 but it is the receive only.  In fact this rfc only seems to refer to receive.  What about the Transmit octets on the port?  Is that a different mib oid?

     

    Thanks!



  • 6.  RE: Trying to find SNMP MIBs for interface Mac Stats

    Posted 07-01-2011 10:14

    >  Is that a different mib oid?

     

    Hi, 

     

    Yes, you can use the standard ifMIB for this; the Etherstats only record the ethernet-specific statistics, which make sense in the rx direction only.

    For everything else you can use the ifXTable (which is part of the Interfaces MIB):  .1.3.6.1.2.1.31.1.1

     

    The file to use in your NM is mib-rfc2863a.txt, and includes 64-bit counters for output octects, as well as broadcast/unicast/multicast packets.

     

    Hope it helps! Let me know if this works for you..

     Saverio

     

     

     



  • 7.  RE: Trying to find SNMP MIBs for interface Mac Stats
    Best Answer

    Posted 07-05-2011 17:50

    Saverio,

     

    Thanks, I was able to test and looks good.  I think I will just use the ifHCOutOctets and ifHCInOctects instead of messing with the etherStatsOctets.

     

    Thanks again for taking the time to help out!!!


    @texannetnut wrote:

    Trying to find the snmp mibs for the mac stats from the show interfaces extensive command as follows...  Can someone point me in the right direction?  I have browsed the interface mib and am not seeing it.

     

    MX> show interfaces xe-4/1/0 extensive

    Physical interface: xe-4/1/0, Enabled, Physical link is....

    MAC statistics:                      Receive         Transmit

        Total octets                             0                0

        Total packets                          0                0

        Unicast packets                       0                0

        Broadcast packets                   0                0