Community discussions

MikroTik App
 
gotsprings
Forum Guru
Forum Guru
Topic Author
Posts: 2115
Joined: Mon May 14, 2012 9:30 pm

Ping Stats

Wed Jun 06, 2018 6:14 pm

After sending a ping from the terminal...
How do I pick the results to log info or take other actions?
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: Ping Stats

Wed Jun 06, 2018 8:43 pm

not sure directly from terminal but you can use netwatch so script will run based on whether the ping exceed particular timeout
 
gotsprings
Forum Guru
Forum Guru
Topic Author
Posts: 2115
Joined: Mon May 14, 2012 9:30 pm

Re: Ping Stats

Wed Jun 06, 2018 9:15 pm

For instance... I would like to be able to access that info and assign it to local variables.

Then I can log them or use them.

:log info "System sent $sent pings and received $received pings. Packet loss= $packet-loss Average ping=$avg-rtt

I was going to use it in scripts rather than terminal.

Who is online

Users browsing this forum: aLinux09, Amazon [Bot], derolf and 30 guests