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

Gary B. gmbfly98 at gmail.com
Thu Apr 20 00:16:16 CEST 2006


Yeah, at least this version of HP-UX doesn't have a flag for just tcp
connections in that format.  That's according to the man page anyway.

# netstat -an | grep tcp
<copy/paste>

Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
</copy/paste>
tcp        0      0  192.168.232.122.3691   192.168.232.122.1712   TIME_WAIT
tcp        0     48  192.168.232.122.22      172.21.96.30.33910
ESTABLISHED
tcp        0      0  192.168.232.122.22     172.21.96.22.29275
ESTABLISHED
tcp        0      0  127.0.0.1.6010         *.*                    LISTEN
tcp        0      0  192.168.232.122.22     172.21.96.70.2535
ESTABLISHED
tcp        0      0  127.0.0.1.6011         *.*                    LISTEN
tcp        0      0  192.168.232.122.22     172.21.96.70.2459
ESTABLISHED
tcp        0      0  *.2131                 *.*                    LISTEN
tcp        0      0  *.2112                 *.*                    LISTEN
tcp        0      0  *.2111                 *.*                    LISTEN
tcp        0      0  *.2110                 *.*                    LISTEN
tcp        0      0  *.2109                 *.*                    LISTEN
tcp        0      0  *.2019                 *.*                    LISTEN
tcp        0      0  *.2013                 *.*                    LISTEN
tcp        0      0  *.2012                 *.*                    LISTEN
tcp        0      0  *.2011                 *.*                    LISTEN
tcp        0      0  192.168.232.122.32769  192.168.232.122.2008
CLOSE_WAIT
tcp        0      0  192.168.232.122.2008   192.168.232.122.32769
FIN_WAIT_2
tcp        0      0  *.2007                 *.*                    LISTEN
tcp        0      0  *.2000                 *.*                    LISTEN
tcp        0      0  *.1999                 *.*                    LISTEN
tcp        0      0  *.1998                 *.*                    LISTEN
tcp        0      0  *.1997                 *.*                    LISTEN
tcp        0      0  *.32769                *.*                    LISTEN
tcp        0      0  192.168.232.122.32768  192.168.232.122.1996
CLOSE_WAIT
tcp        0      0  192.168.232.122.1996   192.168.232.122.32768
FIN_WAIT_2
tcp        0      0  *.1987                 *.*                    LISTEN
tcp        0      0  *.1986                 *.*                    LISTEN
tcp        0      0  *.1985                 *.*                    LISTEN
tcp        0      0  *.1984                 *.*                    LISTEN
tcp        0      0  *.1983                 *.*                    LISTEN
tcp        0      0  *.1982                 *.*                    LISTEN
tcp        0      0  *.1981                 *.*                    LISTEN
tcp        0      0  *.1980                 *.*                    LISTEN
tcp        0      0  *.32768                *.*                    LISTEN
tcp        0      0  127.0.0.1.1103         127.0.0.1.1254
ESTABLISHED
tcp        0      0  127.0.0.1.1254         127.0.0.1.1103
ESTABLISHED
tcp        0      0  127.0.0.1.1103         127.0.0.1.1252
ESTABLISHED
tcp        0      0  127.0.0.1.1252         127.0.0.1.1103
ESTABLISHED
tcp        0      0  127.0.0.1.1103         127.0.0.1.1245
ESTABLISHED
tcp        0      0  127.0.0.1.1245          127.0.0.1.1103
ESTABLISHED
tcp        0      0  127.0.0.1.1103         127.0.0.1.1244
ESTABLISHED
tcp        0      0  127.0.0.1.1244         127.0.0.1.1103
ESTABLISHED
tcp        0      0  *.1243                 *.*                    LISTEN
tcp        0      0  *.1242                 *.*                    LISTEN
tcp        0      0  *.1180                 *.*                    LISTEN
tcp        0      0  *.1147                 *.*                    LISTEN
tcp        0      0  *.1142                 *.*                    LISTEN
tcp        0      0  *.1788                 *.*                    LISTEN
tcp        0      0  *.1103                 *.*                    LISTEN
tcp        0      0  192.168.232.122.1712   192.168.232.122.1102
ESTABLISHED
tcp        0      0  192.168.232.122.1102   192.168.232.122.1712
ESTABLISHED

<SNIP>

tcp        0      0  *.1006                 *.*                    LISTEN
tcp        0      0  *.*                    *.*                    CLOSED
tcp        0      0  *.1001                 *.*                    LISTEN
tcp        0      0  *.997                  *.*                    LISTEN
tcp        0      0  *.993                  *.*                    LISTEN
tcp        0      0  *.111                  *.*                    LISTEN
tcp        0      0  *.2121                 *.*                    LISTEN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060419/856ee501/attachment.html>


More information about the Xymon mailing list