Junos OS

Expand all | Collapse all

Get subscriber name using snmp

Jump to Best Answer
  • 1.  Get subscriber name using snmp

    Posted 06-13-2018 09:16

    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?

     



  • 2.  RE: Get subscriber name using snmp
    Best Answer

    Posted 06-13-2018 11:59

    mibs:

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

     

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