Netstat

#!/bin/sh echo Content-type: text/plain echo "" fix () { /usr/bin/sed -e 's/130.236.253.11.4711/Anime/g' -e 's/130.236.253.11.80/www/g' -e 's/130.236.253.11.7500/www2/g' -e 's/130.236.253.12.80/phttpd/g' -e 's^Net/Dest^Net Dest^g' -e 's/130.236.253.11/www/g' -e 's/130.236.253.12/phttpd/g' -e 's/130.236.253.13/bridge/g' -e 's/Address//g' -e 's/ / /' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ / /g' -e 's/ Local/Local/' -e 's/-//g' -e 's/127.0.0.1/local/g' } echo '

Interfaces

' echo '' /usr/bin/netstat -n -i | fix echo "" echo '

Allocation

' echo '
'
netstat -m
echo "
" echo '

Sockets

' echo '' /usr/bin/netstat -f inet -n | fix echo "" echo '

Stats

' echo '
'
netstat -s
echo "
" exit