Routing

 View Only
last person joined: 5 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  How to check MS-100 module via SNMP?

    Posted 09-02-2009 00:23

    Can I get  information about MS-100 module via SNMP, as I can get it by commands "show services accounting errors" and  "show services accounting usage"

     

    alex@BR1.M9> show services accounting errors 
    Service Accounting interface: sp-0/3/0, Local interface index: 144
    Service name: (default sampling)
    Interface state: Accounting
      Error information
      Packets dropped (no memory): 0, Packets dropped (not IP): 0
      Packets dropped (not IPv4): 0, Packets dropped (header too small): 0
      Memory allocation failures: 0, Memory free failures: 0
      Memory free list failures: 0
      Memory warning: No, Memory overload: No, PPS overload: No, BPS overload: No



  • 2.  RE: How to check MS-100 module via SNMP?

    Posted 09-02-2009 00:38

    Hi,

     

    http://www.juniper.net/techpubs/en_US/junos9.5/information-products/topic-collections/config-guide-network-mgm/juniper-specific-mibs-junos-nm.html

     

    Flow Collection Services MIB—Provides statistics on files, records, memory, FTP, and error states of a monitoring services interface. It also provides SNMP traps for unavailable destinations, unsuccessful file transfers, flow overloading, and memory overloading. For a downloadable version of this MIB, see www.juniper.net/techpubs/en_US/junos9.5/information-products/topic-collections/config-guide-network-mgm/mib-jnx-coll.txt

     

    -- Error State Information
    --
    jnxCollPicIfCurrentState OBJECT-TYPE
    SYNTAX JnxCollPicStateDef
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "The current state of various error conditions on this
    Collector PIC."
    ::= { jnxCollPicIfEntry 22 }

    jnxCollPicIfLastStateChange OBJECT-TYPE
    SYNTAX JnxCollPicStateDef
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "Identifies the error condition that last changed state."
    ::= { jnxCollPicIfEntry 23 }

    jnxCollPicIfStateChangeTime OBJECT-TYPE
    SYNTAX TimeTicks
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "The value of sysUpTime when the management subsystem last
    learned of a change to the value of jnxCollPicIfCurrentState
    for this Collector PIC."
    ::= { jnxCollPicIfEntry 24 }

    jnxCollPicIfStateChangeDate OBJECT-TYPE
    SYNTAX DateAndTime
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "The system date and time when the management subsystem last
    learned of a change to the value of jnxCollPicIfCurrentState
    for this Collector PIC."
    ::= { jnxCollPicIfEntry 25 }

    jnxCollPicIfStateChangeType OBJECT-TYPE
    SYNTAX INTEGER {
    none (1),
    set (2),
    cleared (3)
    }
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
    "This indicates whether the last state change set a new
    error condition or cleared an existing one."
    ::= { jnxCollPicIfEntry 26 }


     

    P.S. If this work for you please mark this message as a "Working Solution". Kudos would be great...

     

    Kind Regards

    Michael Pergament



  • 3.  RE: How to check MS-100 module via SNMP?

    Posted 09-02-2009 00:53

    Hi,

     

    I actually recognized that this MIB would not give you what you want. Need to dig into it...

     

    Kind Regards

    Michael



  • 4.  RE: How to check MS-100 module via SNMP?

    Posted 09-02-2009 01:46

    Hi,

     

    at he moment I can only propose you following solution.

     

    1) I could write your an event script which would locally invoke these commands (e.g. each 5 minutes) and put the required values into jnx-util.mib

     

    Utility MIB—Provides SNMP support for exposing JUNOS data and has tables that contain information on each type of data, such as integer and string. For a downloadable version of this MIB, see www.juniper.net/techpubs/en_US/junos9.5/information-products/topic-collections/config-guide-network-mgm/mib-jnx-util.txt.

     

    2) SNMP can be used to get these values from Utility MIB

     

    Please also read his thread (Juniper disclaimer) on supportability of scripts:

    http://forums.juniper.net/jnet/board/message?board.id=JUNOS&thread.id=12

     

    Let me know if this is acceptable solution for you.

     

    Regards

    Michael Pergament



  • 5.  RE: How to check MS-100 module via SNMP?

    Posted 09-02-2009 03:48
    It will be greate if you will write such script.


  • 6.  RE: How to check MS-100 module via SNMP?
    Best Answer

    Posted 09-02-2009 04:51

    Hi,

     

    please find attached the requested script. Following steps are required to get MIB populated:

     

    1) copy attached script to your Junos component under /var/db/scripts/op/

    2) Make following configuration:

     

    lab@M7i-loanunit-mpergament# show system scripts
    op {
        file account-mib.slax;
    }

    lab@M7i-loanunit-mpergament# show event-options    
    generate-event {
        5MINUTE time-interval 300;
    }
    policy GET-ACC-INFO {
        events 5MINUTE;
        then {
            event-script account-mib;
        }
    }

     

    3) commit

     

    4) Wait for > than 5 minutes. 

     

    5) Get MIB locally or from your MGMT system:

     

    lab@M7i-loanunit-mpergament# run show snmp mib walk jnxUtilData                   
    lab@M7i-loanunit-mpergament# run show snmp mib walk jnxUtilData                                                   
    jnxUtilIntegerValue.101.114.114.45.97.116.102 = 0  <----- OID == err-atf in ASCII

    jnxUtilIntegerValue.101.114.114.45.101.112.102 = 0
    jnxUtilIntegerValue.101.114.114.45.102.99.102 = 0
    jnxUtilIntegerValue.101.114.114.45.109.111.118 = 0
    jnxUtilIntegerValue.101.114.114.45.115.115.100 = 0

    jnxUtilIntegerValue.117.115.103.45.102.115.108 = 22  <---- OID == usg-fsl

    jnxUtilIntegerValue.117.115.103.45.111.109.108 =1

     

    Please do not forget to mark it as "Accepted Solution" if it fullfils what you want 🙂

     

    Regards

    Michael Pergament


    #with
    #Utility
    #MS-PIC
    #Populate
    #information
    #Accounting
    #mib


  • 7.  RE: How to check MS-100 module via SNMP?

    Posted 09-02-2009 05:06

    Here OIDs explained in more details:

     jnxUtilIntegerValue.101.114.114.45.97.116.102 = 0  <----- OID == active-timeout-failures (err-atf)

    jnxUtilIntegerValue.101.114.114.45.101.112.102 = 0 <----- OID == export-packet-failures(err-epf)

    jnxUtilIntegerValue.101.114.114.45.102.99.102 = 0   <------OID == flow-creation-failures (err-fcf)

    jnxUtilIntegerValue.101.114.114.45.109.111.118 = 0 <------OID == memory-overload (err mov)

    jnxUtilIntegerValue.101.114.114.45.115.115.100 = 0 <------OID ==service-set-dropped (err-ssd)

    jnxUtilIntegerValue.117.115.103.45.102.115.108 = 22  <---- OID ==five-second-load (usg-fsl)

    jnxUtilIntegerValue.117.115.103.45.111.109.108 =1    <----- OID== one-minute-load (usg-oml)