Junos
Highlighted
Junos

Get subscriber name using snmp

06.13.18   |  
Wednesday

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

Re: Get subscriber name using snmp

06.13.18   |  
Wednesday

mibs:

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

 

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