Get a list of connected PPPoE Sessions

Is there any quick way to get a list of connected PPPoE Sessions?

I’ve thought about scripting a program to telnet in and get the information I need, but it is slow, is there a quick way to get a list of connected sessions say, through the api that winbox uses?

Or some other way?

Thanks

probably per snmp.

connected pppoe-sessions are listed in /interface and

/interface pr oid

gives the snmp oid.

You can get a list of active pppoe connections from the console with the following script line:

:foreach n in=[/interface find type=pppoe-in] do={:put [/interface get $n name]}

:foreach n in=[/interface find type=pppoe-in] do={:put [/interface get $n name]}

Do you know a trick that will get a list of all current PPPoE users with there IP address like that?

Matthew

here you go:

:foreach i in [/ppp active find ] do={:put ([/ppp active get $i name] . " " . [/ppp active get $i address]}

Edgars

Ah thank you, yes I can see how it would be easy to snmp walk for the information I’m looking for.

Thank you