[plug] netstat options or connection logging

Andrew Simmonds simm0 at ii.net
Sun Sep 30 17:18:04 WST 2001


you could try 

netstat -vetpn

which put it into numerial ip form
only disadvantage is that you loose the host

On Sun, 2001-09-30 at 16:54, Craig Foster wrote:
> 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]#
> 
> ----------------------------------





More information about the plug mailing list