sysutils/tcplist "lsof use" broken
jhell
jhell at dataix.net
Wed Jul 14 04:21:27 UTC 2010
The above subject mentioned port is broken via its usage of sysutils/lsof.
Log:
# ./tcplist
lsof: unknown -s protocol: "li"
lsof 4.84
latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
usage: [-?abChlnNoOPRtUvV] [+|-c c] [+|-d s] [+|-D D] [+|-f[cfgGn]]
[-F [f]] [-g [s]] [-i [i]] [-k k] [+|-L [l]] [-m m] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
./tcplist: Can't get lsof output header
So I manipulated my own script to output something like the following
<-> UID LOCAL:PORT REMOTE:PORT
=== ====== ====================== ======================
24 1001 192.168.31.2:59782 192.168.31.12:993
24 1001 192.168.31.2:59000 192.168.31.12:993
24 1001 192.168.31.2:26007 192.168.31.12:993
24 1001 192.168.31.2:25206 192.168.31.12:993
24 1001 192.168.31.2:13985 192.168.31.12:993
13 1001 192.168.31.2:61979 <REMOVED>:80
13 1001 192.168.31.2:59658 <REMOVED>:80
13 1001 192.168.31.2:53816 <REMOVED>:80
13 1001 192.168.31.2:49347 <REMOVED>:80
13 1001 192.168.31.2:39920 <REMOVED>:80
13 1001 192.168.31.2:14124 <REMOVED>:80
1 1001 192.168.31.2:25865 192.168.31.12:22
1 1001 192.168.31.2:22 192.168.31.12:58642
1 1001 192.168.31.2:12104 192.168.31.12:22
1 0 192.168.31.2:22 192.168.31.12:58642
If you could use something like this it is located here & remember this
heavily depends on lsof and is still under construction.
http://bit.ly/a54s2b
Regards,
--
+-+-+-+-+-+
|j|h|e|l|l|
+-+-+-+-+-+
More information about the freebsd-ports
mailing list