I’m going to be running packet capture on a mikrotik router to try and help packet flux trouble shoot their base units locking up. What I need is a script that will ping a device and upload the most recent packet capture to an ftp server after the device becomes unresponsive to ping. I’ve never used RouterOS’s scripting language so any help with this would be much appreciated.
I hate to reply to my own topic, but I found a way to do it. I’m using the netwatch tool with “tool sniffer stop” for its down script and I’ll just log into the router manually and retrieve the packet capture that way.
MikroTik has a ftp server imbedded
you can access to ftp server via command prompt in windows or shell in Linux
like this:
c:\ftp
type ftp/? in windows to get help command
then write an batch file to access ftp server(mikrotik).schedule file to get file and copy it to local system
and also write a script to delete captured packet.
It comes to my mind,a time consuming process!
It’s not what the user as asked…