Remember everytime to set "count" parameter or, for each ping launched on scheduler, one process is keeped running forever on background
"as-value" (EDIT: on ping command)ª do not exist on 6.x,x, is added on v7.x.x
Without specify for what version, only confusion.
On 6.46.8 the "ping" give back only the number of successfully "ping".
RouterOS 6.x.x code
# 6.6.6.6 is unreachable
[@_@] > :put [:ping 6.6.6.6 count=3]
0
On 7.1.1 the result is "one array of array" of values if as-value is specified
(one "array" for each ping)
RouterOS 7.x.x code
# 6.6.6.6 is unreachable
[@_@] > :put [:ping 6.6.6.6 count=3 as-value]
.id=*0;seq=0;status=no route to host;.id=*1;seq=1;status=no route to host;.id=*2;seq=2;status=no route to host
ping parameters, on 6.x just press <?> or <TAB> after you write "ping " on terminal, some descriptions are missing, but are intuitive
on 7.x.x press <F1> or <TAB> for the same (v7 also suggest discovered MAC addresses)
RouterOS 6.46.8 code
[@_@] > ping <?>
Send ICMP Echo packets. Repeat after given time interval.
<address> -- IP address
arp-ping --
count -- Number of packets
do-not-fragment -- Do not fragment ping packets
dscp --
interface --
interval -- Delay between messages
routing-table --
size -- Packet size
src-address -- Source IP address to use when pinging
ttl -- Time to live
[@_@] > ping <TAB>
count interface routing-table src-address address
arp-ping dscp interval size ttl
RouterOS 7.1.1 code
[@_@] > ping <F1>
<address> -- IP address
arp-ping --
as-value --
count -- Number of packets
do-not-fragment -- Do not fragment ping packets
dscp --
interface --
interval -- Delay between messages
size -- Packet size
src-address -- Source IP address to use when pinging
ttl -- Time to live
vrf --
Press F1 for general console usage help
[@_@] > ping <TAB>
00:0C:42:xx:xx:xx CC:2D:E0:xx:xx:x address arp-ping count dscp interface interval size src-address ttl vrf
Both versions accepts "interface parameter:
Example on RouterOS 6.46.8 code
# pptp-noexit do not acept routed connections, but the traffic still pass the link
[@_@] > ping 1.1.1.1 count=3 interface=<pptp-noexit>
SEQ HOST SIZE TTL TIME STATUS
0 1.1.1.1 timeout
1 1.1.1.1 timeout
2 1.1.1.1 timeout
sent=3 received=0 packet-loss=100%
Example on RouterOS 7.1.1 code
# ether8 is unused/unconnected
[@_@] > :put [:ping 1.1.1.1 count=3 interface=ether8 as-value]
.id=*0;host=1.1.1.1;seq=0;status=timeout;.id=*1;host=1.1.1.1;seq=1;status=timeout;.id=*2;host=1.1.1.1;seq=2;status=timeout
Note:
ª thanks to Jotne