Not sure if this is exactly what you need, but here's netstat for HP-UX.<br><br># uname -srv<br>HP-UX B.10.20 A<br># netstat -np tcp<br>tcp:<br> 2763301 packets sent<br> 930771 data packets (624793792 bytes)
<br> 713 data packets (957508 bytes) retransmitted<br> 1216788 ack-only packets (107037 delayed)<br> 0 URG only packets<br> 0 window probe packets<br> 0 window update packets
<br> 615029 control packets<br> 2932146 packets received<br> 1742996 acks (for 615692641 bytes)<br> 65419 duplicate acks<br> 0 acks for unsent data<br> 1104985 packets (75993691 bytes) received in-sequence
<br> 1562 completely duplicate packets (1824 bytes)<br> 0 packets with some dup. data (0 bytes duped)<br> 54176 out-of-order packets (0 bytes)<br> 0 packets (0 bytes) of data after window
<br> 0 window probes<br> 32788 window update packets<br> 3 packets received after close<br> 0 discarded for bad checksums<br> 0 discarded for bad header offset fields
<br> 0 discarded because packet too short<br> 54177 connection requests<br> 499971 connection accepts<br> 554130 connections established (including accepts)<br> 585205 connections closed (including 41 drops)
<br> 16 embryonic connections dropped<br> 1720424 segments updated rtt (of 1781132 attempts)<br> 7259 retransmit timeouts<br> 0 connections dropped by rexmit timeout<br> 0 persist timeouts
<br> 5403 keepalive timeouts<br> 1993 keepalive probes sent<br> 0 connections dropped by keepalive<br>#<br><br><div><span class="gmail_quote">On 4/19/06, <b class="gmail_sendername">Henrik Stoerner
</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm only interested in TCP ports. I have the data I need for Linux,
<br>Solaris and the BSD variants, but I would like them also for AIX,<br>HP-UX, Darwin and OSF/1.<br><br>So I need:<br>* The "netstat" command to run to get the set of TCP ports currently<br> in use, including ports used for incoming connections. Typically
<br> this will be some sort of "netstat -na", with some extra options<br> to get only the TCP sockets.<br> Note that it may be necessary to run two commands to get both<br> IPv4 and IPv6 ports. On the BSD's, I noticed that connections
<br> to the loopback interface register as IPv6 sockets, not IPv4.<br><br>* A sample of the output, so I can see which columns the various<br> data go into.<br><br><br>Anyone there who could get me this info ?<br><br><br>
Thanks,<br>Henrik<br></blockquote></div><br>