Community discussions

MikroTik App
 
strathclyde
just joined
Topic Author
Posts: 1
Joined: Fri Feb 24, 2012 6:28 pm

Scripting issue

Fri Feb 24, 2012 6:44 pm

Hi Folks

I'm new to Mikrotik, need some advice on the following issue.
I want to record the "/interface wireless monitor wlan1" data into a text file, which should be on my host PC connected to Mikrotik.
To start with I copied the following code from "Chupaka"

file print file=power
/file set power.txt contents=[/interface wireless monitor wlan1 once do={:put $"overall-tx-ccq"}]

It doesn't store any data not even on the router interface, can anybody help please.

Thanks
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Re: Scripting issue

Sat Feb 25, 2012 11:07 pm

To record the output of "/interface wireless monitor wlan1" data into a text file:
/interface wireless monitor wlan1 once file=power
To extract only the "overall-tx-ccq" of "/interface wireless monitor wlan1" and save to file:
/file print file=power
/interface wireless monitor wlan1 once do={/file set power.txt contents="overall-tx-ccq = $"overall-tx-ccq"%"}

Who is online

Users browsing this forum: Bing [Bot], dgel27 and 135 guests