Freman
October 4, 2004, 10:33pm
1
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
mag
October 5, 2004, 6:00am
2
probably per snmp.
connected pppoe-sessions are listed in /interface and
/interface pr oid
gives the snmp oid.
cmit
October 5, 2004, 7:52am
3
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]}
hci
October 5, 2004, 11:18pm
4
: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
edzix
October 6, 2004, 9:24am
5
here you go:
:foreach i in [/ppp active find ] do={:put ([/ppp active get $i name] . " " . [/ppp active get $i address]}
Edgars
Freman
October 7, 2004, 1:39am
6
Ah thank you, yes I can see how it would be easy to snmp walk for the information I’m looking for.
Thank you