[plug] netstat options or connection logging

Craig Foster fostware at iinet.net.au
Sun Sep 30 16:54:44 WST 2001


Anybody know how to expand the netstat output to show the *full* remote
address of a connection? I have a quick cron job logging this. (It's a
easy & cheap log)
It will eventually be ported across to another loggin machine one day...

Any other programs to do the same thing would also help :-)

Thanks,

Craig Foster
fostware at iinet.net.au

EG-------------------------------

[root at server /root]# netstat -vetp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
User       Inode      PID/Program name
tcp        0      0 server.fostware.dyn:ssh craig.fostware.dyn:3661
ESTABLISHED root       359058     904/sshd
tcp        0      0 i187-030.nv.iinet.:1714 gso88-207-107.tri:41228
ESTABLISHED root       358361     422/AGSatellite-sta
tcp        0      0 i187-030.nv.iinet.:1707 n245.audiogalaxy.co:ftp
ESTABLISHED root       358331     422/AGSatellite-sta
tcp        0      0 server.fostware.dyn:ssh craig.fostware.dyn:3518
ESTABLISHED root       357627     32477/sshd
tcp        0      0 server.fost:netbios-ssn craig.fostware.d:listen
ESTABLISHED root       306341     30465/smbd
[root at server /root]#

----------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2228 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20010930/1a3f8a16/attachment.bin>


More information about the plug mailing list