"netstat -apn" emulation for Solaris
authorshort <>
Thu, 4 Mar 2004 13:22:38 +0000 (13:22 +0000)
committershort <>
Thu, 4 Mar 2004 13:22:38 +0000 (13:22 +0000)
bin/netstatapn [new file with mode: 0755]

diff --git a/bin/netstatapn b/bin/netstatapn
new file mode 100755 (executable)
index 0000000..1638b9b
--- /dev/null
@@ -0,0 +1,4 @@
+#! /bin/bash
+pfiles 2>/dev/null `cd /proc;echo *` \
+               |awk '/^[0-9]/{idpid=$1;idproc=$2}/ AF_INET6? .*port: /{printf "%6s%-50s %15s:%d\n",idpid,idproc,$3,$5}' \
+               |sort -t : -k 3 -n