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