From AIX 5.1:
gogen02:root:/ # netstat -na Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp 0 0 *.21 *.* LISTEN tcp4 0 0 *.22 *.* LISTEN tcp4 0 0 *.111 *.* LISTEN tcp4 0 0 *.515 *.* LISTEN tcp4 0 0 *.523 *.* LISTEN tcp4 0 0 *.50000 *.* LISTEN tcp4 0 0 *.1169 *.* LISTEN tcp4 0 0 *.1581 *.* LISTEN tcp4 0 0 *.6000 *.* LISTEN tcp4 0 0 *.6112 *.* LISTEN tcp4 0 0 *.32768 *.* LISTEN tcp4 0 0 *.32769 *.* LISTEN tcp4 0 0 *.32771 *.* LISTEN tcp4 0 0 *.32784 *.* LISTEN tcp4 0 0 *.32785 *.* LISTEN tcp4 0 0 *.32786 *.* LISTEN tcp4 0 0 *.9090 *.* LISTEN tcp4 0 0 *.13722 *.* LISTEN tcp4 0 0 *.13724 *.* LISTEN tcp4 0 0 *.13782 *.* LISTEN tcp4 0 0 *.13783 *.* LISTEN tcp4 0 2704 172.17.1.225.22 192.168.9.40.2852 ESTABLISHED udp4 0 0 *.111 *.* udp4 0 0 *.177 *.* udp4 0 0 *.514 *.* udp4 0 0 *.523 *.* udp4 0 0 *.32768 *.* udp4 0 0 *.32769 *.*
Henrik Stoerner wrote:
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 :::* LISTENTo unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Rich Smrcina VM Assist, Inc. Main: (262)392-2026 Cell: (414)491-6001 Ans Service: (360)715-2467 rich.smrcina at vmassist.com
Catch the WAVV! http://www.wavv.org WAVV 2007 - Green Bay, WI - May 18-22, 2007