# Sunos ping count/number or packets

**URL:** <https://community.unix.com/t/sunos-ping-count-number-or-packets/396806>\
**Category:** Solaris\
**Created:** [April 8, 2025, 9:44pm UTC](https://community.unix.com/t/sunos-ping-count-number-or-packets/396806 "2025-04-08T21:44:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cokedude](https://community.unix.com/letter_avatar/cokedude/32/5_5575768a8748004e209b776fc1b2916d.png) [@cokedude](https://community.unix.com/u/cokedude)\
**Post date:** [April 8, 2025, 9:44pm UTC](https://community.unix.com/t/sunos-ping-count-number-or-packets/396806/1 "2025-04-08T21:44:01Z")

</div>

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.

```plaintext
ping -c4 google.com

```

[https://linux.die.net/man/8/ping](https://linux.die.net/man/8/ping)

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

> **[ping - 
man pages section 8: System Administration Commands](https://docs.oracle.com/cd/E88353_01/html/E72487/ping-8.html)**
>
> ping - send ICMP (ICMP6) ECHO\_REQUEST packets to network hosts The utility ping utilizes the ICMP (ICMP6 in IPv6) protocol's ECHO\_REQUEST datagram to elicit an ICMP...

```plaintext
/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.

```plaintext
host [data_size [npackets]]

```

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

```plaintext
ping -s google.com 64 4

```

---

<div class="post-metadata">

**Author:** ![system](https://community.unix.com/uploads/default/original/2X/c/c7e9e16a595259edafe88615719d5c5dcda035c2.png) [@system](https://community.unix.com/u/system)\
**Post date:** [April 18, 2025, 9:44pm UTC](https://community.unix.com/t/sunos-ping-count-number-or-packets/396806/2 "2025-04-18T21:44:53Z")

</div>

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