Junos
Highlighted
Junos

Get subscriber name using snmp

‎06-13-2018 09:15 AM

I can get a interface description using a snmp query:

snmpwalk -v2c -c xxxxxx yyyyy IF-MIB::ifAlias

 

For subscriber I don't have a interface description, so I get only the interface name:

snmpwalk -v2c -c xxxxxx yyyyy IF-MIB::ifName

IF-MIB::ifName.200000496 = STRING: pp0.3221225877

 

But how can i get a subscriber user name using snmp? 

Something like $junos-subscriber-username

set dynamic-profiles PPPoE-Profile interfaces pp0 unit "$junos-interface-unit" description "$junos-subscriber-username"

 

Is that possible?

 

1 REPLY
Junos
Solution
Accepted by topic author hugleo
‎06-19-2018 09:04 AM

Re: Get subscriber name using snmp

‎06-13-2018 11:58 AM

mibs:

mib-jnx-smi.txt
mib-jnx-subscriber.txt

 

snmpwalk -v2c -c xxxxx yyyyy JnxSubscriberEntry | grep -e "jnxSubscriberUserName" -e "jnxSubscriberInterface\."