Page 1 of 1

Get variable in the fly OR from Dump file !possible

Posted: Sat Jan 28, 2012 1:23 pm
by PaRaN0iD
Hiii guys

Using PPPOE Scan I got a rouge PPPOE server like this :

Image

I'm trying here to write a script to pick the mac address of detected rouge PPPOE server
& add it to access list

I can do all of this except picking up the variable mac-address from PPPOE scan
Cause it didn't support "get" or "find" commands
it support just dumping the result to file in this format:
# jan/27/2012  7:13:56 by RouterOS 5.8
# software id = W5EY-LHT9
#
SERVICE                        MAC-ADDRESS       AC-NAME                       
service1                       00:0C:29:76:20:82 MikroTik
I tried this script to loop through file contents & get the variable mac-address with no luck

http://forum.mikrotik.com/viewtopic.php?f=2&t=38191

I appreciate any help guys

Thank you in advance

Re: Get variable in the fly OR from Dump file !possible

Posted: Mon Jan 30, 2012 4:41 pm
by PaRaN0iD
Any ideas Guys Come on!