Skip to content

Instantly share code, notes, and snippets.

@ceesco53
Created January 14, 2015 20:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceesco53/57c6f2c4990199515d96 to your computer and use it in GitHub Desktop.
Save ceesco53/57c6f2c4990199515d96 to your computer and use it in GitHub Desktop.
/system scheduler
add disabled=no interval=6h name=log_reg_table on-event=log_client start-time=startup
/system script
add name=log_client policy=ftp,reboot,read,write,policy,test,password,sniff source=":foreach i in=[ /int wir reg find ap=no] do={\r\
\n:log info (\"Mikrotik \" . [/system identity get name] . \" AP: \" . [int wir reg get \$i interface] . \" MAC: \" . [int wir reg get \$i mac-address ] . \" Last IP:\
\" . [int wir reg get \$i last-ip] . \" RX: \" . [int wir reg get \$i rx-rate] . \" TX: \" . [int wir reg get \$i tx-rate] . \" Uptime: \" . [int wir reg get \$i upti\
me] . \" LastACT: \" . [int wir reg get \$i last-activity] . \" SignalStrength: \" . [int wir reg get \$i signal-strength] . \" SNR: \" . [int wir reg get \$i signal-t\
o-noise] . \" TX/RX-CCQ: \" . [int wir reg get \$i tx-ccq] . \" / \" . [int wir reg get \$i rx-ccq] . \" PThroughput: \" . [int wir reg get \$i p-throughput] )\r\
\n}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment