[hobbit] netstat commands and output on AIX, HP-UX, Darwin, OSF/1

Henrik Stoerner henrik at hswn.dk
Wed Apr 19 23:39:47 CEST 2006


On Wed, Apr 19, 2006 at 05:28:48PM -0400, Gary B. wrote:
> 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

That's not what I was after. I want the list of active connections. 
Something like:

$ netstat -na -t
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:1984            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:32770         127.0.0.1:43114         ESTABLISHED
tcp        0      0 172.16.10.100:33038     172.16.10.3:22          ESTABLISHED
tcp6       0      0 :::389                  :::*                    LISTEN     
tcp6       0      0 :::80                   :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     





More information about the Xymon mailing list