Junos OS

Expand all | Collapse all

SNMP Subcriber Mib on MX960 getting so slow in CLI, not allow Walk from Net-SNMP

Jump to Best Answer
  • 1.  SNMP Subcriber Mib on MX960 getting so slow in CLI, not allow Walk from Net-SNMP

    Posted 07-25-2018 02:07

    Hello Expert,

    I'm working on SNMP with MX960 BRAS Junos 15.1R6-S1.1.

    I'd tried to walk from CLI with "show snmp mib walk jnxSubscriberUserName" to get subcriber UserName, It's worked, but, get too slow. And when I'd tried to walk this OID from NET-SNMP, it's not allowed, only GET, and GET-NEXT work.

    If use GET, I must find the last key of the oid. Example:

    jnxSubscriberUserName.0.301
    jnxSubscriberUserName.0.302 = nnn
    jnxSubscriberUserName.0.1157
    jnxSubscriberUserName.0.1158 = nnn
    jnxSubscriberUserName.0.1168 = ooo
    jnxSubscriberUserName.0.1747 = kkk
    jnxSubscriberUserName.0.1802 = zzz
    jnxSubscriberUserName.0.2096 = yyy
    jnxSubscriberUserName.0.2743 = xxx

     

    Where I can find these: 301, 302, 1157, 1158, 1168... so I can use them for GET request. GET-NEXT is not work in this case because continuous GET-NEXT is reject by the box, the second GET-NEXT have received "No response from ...". 

    So there is any way I can get all the jnxSubscriberUserName and corresponding jnxSubscriberAcctSessionId

    Is there any document about Subscriber Mib of Junos, I can't find any from Google except the Mib itself.

    I've spend many time for this case. Please help me. (and sorry for my poor English skill).



  • 2.  RE: SNMP Subcriber Mib on MX960 getting so slow in CLI, not allow Walk from Net-SNMP
    Best Answer

    Posted 07-25-2018 16:45

    To get subscriber username I use a external tool like grep:

     

    https://forums.juniper.net/t5/Junos/Get-subscriber-name-using-snmp/td-p/328677

     

    You will get two lines for subscriber:

     

    jnxSubscriberUserName 1
    jnxSubscriberInterface 1
    jnxSubscriberUserName 2
    jnxSubscriberInterface 2
    jnxSubscriberUserName 3
    jnxSubscriberInterface 3

     

    So just parse the generated lines using another tool. Maybe you can adapt for your case.

     

     



  • 3.  RE: SNMP Subcriber Mib on MX960 getting so slow in CLI, not allow Walk from Net-SNMP

    Posted 07-25-2018 19:23

    Thanks hugleo

    I found the problem with WALK, because I'm using PHP-SNMP (over NET-SNMP), WALK run with NET-SNMP itself,

    PHP-SNMP using GETBULK request, NET-SNMP use GET-NEXT. I don't know why when I using countinous GET-NEXT from PHP, it's not worked.

    Anyway, from NET-SNMP, it's still too slow, take a very long time to finish. Thank you for your suppor.