• MikroTik.com
  • RouterBOARD
  • User Meeting
  • Training
  • User Manual
  • Support
  • Downloads
  • Videos
Register |   * Login | HOME

View unanswered posts | View active topics

Get variable in the fly OR from Dump file !possible  Page 1 of 1
 [ 2 posts ]  Post new topic Reply to topic
  Print view Previous topic | Next topic 
Author Message
PaRaN0iD
 Post subject: Get variable in the fly OR from Dump file !possible
PostPosted: Sat Jan 28, 2012 1:23 pm 
Offline
newbie

Joined: Sun Jan 08, 2012 7:46 pm
Posts: 28
Karma: 0
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:
# 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


Top
 Profile  
 
PaRaN0iD
 Post subject: Re: Get variable in the fly OR from Dump file !possible
PostPosted: Mon Jan 30, 2012 4:41 pm 
Offline
newbie

Joined: Sun Jan 08, 2012 7:46 pm
Posts: 28
Karma: 0
Any ideas Guys Come on!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 2 posts ] 

Board index » RouterOS » Scripting

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Karma functions powered by Karma MOD © 2007, 2009 m157y