Community discussions

MUM Europe 2020
 
rcwmoab
just joined
Topic Author
Posts: 16
Joined: Tue Jun 22, 2010 4:03 am
Location: Utah

Auto upload packet capture to ftp server

Wed Apr 30, 2014 9:34 pm

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.
 
rcwmoab
just joined
Topic Author
Posts: 16
Joined: Tue Jun 22, 2010 4:03 am
Location: Utah

Re: Auto upload packet capture to ftp server

Thu May 01, 2014 3:16 am

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.
 
User avatar
mousa1983
Frequent Visitor
Frequent Visitor
Posts: 79
Joined: Mon Apr 21, 2014 2:36 pm
Location: ilam-iran

Re: Auto upload packet capture to ftp server

Wed May 07, 2014 10:42 pm

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!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2946
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Auto upload packet capture to ftp server

Sun May 11, 2014 3:10 am

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...
I'm Italian, not English. Sorry for my imperfect grammar.

Who is online

Users browsing this forum: No registered users and 11 guests