Community discussions

MikroTik App
 
User avatar
hecklertm
Member Candidate
Member Candidate
Topic Author
Posts: 165
Joined: Fri Jun 24, 2005 5:12 am
Location: US

Script to log details from the wireless registration table

Wed May 31, 2006 5:04 am

I would like to record the information you obtain when you issue a '/int wir reg pr" and it shows all of the wireless associations plus thier items like mac, signal strength, etc. I would like to actually write the results to the log file on the router which I then send to a server for diagnosis.

Anybody have any ideas on an easy way to do this. I have not seen a way to get console output to redirect to the log file, I suppose the way to do it would be to write some sort of "foreach" command to take the elements on each line and write them to the log. Any better ideas. Thanks

...Also, is there an easy command that just returns the total number of registered clients as a string. I could at least report that.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Wed May 31, 2006 5:41 am

/int wir reg pr file=out

/int wir reg pr count-only

Who is online

Users browsing this forum: No registered users and 8 guests