Community discussions

MikroTik App
 
jo2jo
Forum Veteran
Forum Veteran
Topic Author
Posts: 971
Joined: Fri May 26, 2006 1:25 am

Sniffer script not working ros 5.19

Mon Jul 23, 2012 10:02 pm

any ideas why this isnt working?

:local a "test";
/tool sniffer set file-name=/usb1/$a;
/tool sniffer start
:delay 300
/tool sniffer stop


if i change the $a to anything else it works, this is what im truly going for:

:local a [/system clock get date];
/tool sniffer set file-name=/usb1/$a;
/tool sniffer start
:delay 300
/tool sniffer stop

tks
:beep :beep :beep
 
changeip
Forum Guru
Forum Guru
Posts: 3806
Joined: Fri May 28, 2004 5:22 pm

Re: Sniffer script not working ros 5.19

Tue Jul 24, 2012 1:43 am

put filename in quotes and make sure there arent any special characters in there (like slashes and colons).
Colo and Wholesale Bandwidth Available! Sales at SanDiegoBroadband dot com

Who is online

Users browsing this forum: mikrotikuserfree, romihg and 60 guests