Get variable in the fly OR from Dump file !possible
RouterOS Scripting and API

2 posts   •   Page 1 of 1
PaRaN0iD
newbie
 
Posts: 28
Joined: Sun Jan 08, 2012 8:46 pm

Get variable in the fly OR from Dump file !possible

by PaRaN0iD » Sat Jan 28, 2012 2:23 pm

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:

Code: Select all
# 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

PaRaN0iD
newbie
 
Posts: 28
Joined: Sun Jan 08, 2012 8:46 pm

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

by PaRaN0iD » Mon Jan 30, 2012 5:41 pm

Any ideas Guys Come on!

2 posts   •   Page 1 of 1

Who is online

Users browsing this forum: rishitank and 14 guests

It is currently Wed Nov 26, 2014 4:46 pm