Sunos ping count/number or packets

If you have ever used linux ping you are used to [ -c count] to send a certain amount of count ECHO_REQUEST packets. An example.

ping -c4 google.com

https://linux.die.net/man/8/ping

For some reason Sunos makes it more difficult to figure out.

/usr/sbin/ping -s [-I interval] [-l | -U] [-abdLnrRv]
     [-A addr_family] [-c traffic_class] [-w deadline]
     [-g gateway [-g gateway...]] [-N next_hop_router]
     [-F flow_label] [-i interface] [-P tos] [-p port]
     [-t ttl] [-W timeout] host [data_size [npackets]]

The important part for our purposes.

host [data_size [npackets]]

The Sunos example what you saw above. Google is the host. 64 bytes. 4 packets.

ping -s google.com 64 4

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.