Hi Henrik,
here is the output of "netstat -an" for AIX 5.3 and AIX 5.2. You might want to use something like netstat -an | tail +2 | egrep ^\(tcp\|Proto\) to sort out the first line, keep the second, sort out UDP traffic and the socket stuff. AIX netstat does not seem to provide this using flags :-(
Regards, Mirko
$ uname -an AIX hostname 3 5 00C4E1CA4C00 $ oslevel -r 5300-01 $ netstat -an Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 *.21 *.* LISTEN tcp4 0 0 *.22 *.* LISTEN tcp 0 0 *.80 *.* LISTEN tcp 0 0 *.443 *.* LISTEN tcp4 0 0 *.523 *.* LISTEN tcp4 0 0 *.657 *.* LISTEN tcp4 0 0 *.50002 *.* LISTEN tcp4 0 0 *.50006 *.* LISTEN tcp4 0 0 127.0.0.1.1984 *.* LISTEN tcp4 0 0 10.2.30.163.22 10.2.20.58.45801 ESTABLISHED tcp4 0 0 127.0.0.1.6010 *.* LISTEN tcp 0 0 *.11116 *.* LISTEN tcp 0 0 *.11117 *.* LISTEN tcp 0 0 *.11118 *.* LISTEN tcp 0 0 127.0.0.1.8005 *.* LISTEN tcp4 0 0 127.0.0.1.50002 127.0.0.1.52375 ESTABLISHED tcp 0 0 127.0.0.1.52375 127.0.0.1.50002 ESTABLISHED tcp4 0 0 127.0.0.1.50002 127.0.0.1.52376 ESTABLISHED ... ... udp4 0 0 127.0.0.1.123 *.* udp4 0 0 10.2.30.163.123 *.* ... Active UNIX domain sockets SADR/PCB Type Recv-Q Send-Q Inode Conn Ref s Nextref Addr f1000d0000da5800 stream 0 0 0 f1000d00002a7e80 0 0 f1000d0000db5180 f1000d0000997c00 dgram 0 0 f1000c00213c03f8 0 0 0 /dev/.SRC-unix/SRC22UkEd f1000d0000992b80 f1000d0000989c00 dgram 0 0 f1000c00213d4bf8 0 0 0 /dev/.SRC-unix/SRC56UkEh ... ...
This message was sent using IMP, the Internet Messaging Program.