Scripting issue

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

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"%"}