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.301jnxSubscriberUserName.0.302 = nnnjnxSubscriberUserName.0.1157jnxSubscriberUserName.0.1158 = nnnjnxSubscriberUserName.0.1168 = ooojnxSubscriberUserName.0.1747 = kkkjnxSubscriberUserName.0.1802 = zzzjnxSubscriberUserName.0.2096 = yyyjnxSubscriberUserName.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).
To get subscriber username I use a external tool like grep:
You will get two lines for subscriber:
jnxSubscriberUserName 1jnxSubscriberInterface 1jnxSubscriberUserName 2jnxSubscriberInterface 2jnxSubscriberUserName 3jnxSubscriberInterface 3
So just parse the generated lines using another tool. Maybe you can adapt for your case.
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.