Error while try to get tcp socket options with lsof
Dear list,
I want get information about the socket options from a specified
process with the tool lsof. But every time I get a strange answer (see
below).
The manual page says, that this option can be specified.
What goes wrong?
Thanks very much,
Meike
~# netstat -nautp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN 2789/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 2617/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:*
LISTEN 3127/exim4
tcp 0 0 0.0.0.0:9002 0.0.0.0:*
LISTEN 3448/apache2
tcp 0 0 172.16.77.21:22 192.168.1.85:52080
ESTABLISHED 17068/0
tcp 0 0 172.16.77.21:9002 192.168.1.85:52086
ESTABLISHED 3450/apache2
tcp 0 0 172.16.77.21:9002 192.168.1.85:52087
ESTABLISHED 10020/apache2
udp 0 0 0.0.0.0:514 0.0.0.0:*
2588/rsyslogd
~# lsof -a -p 3450 -i -Tf
lsof: unsupported TCP/TPI info selection: f
lsof 4.78
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: [-?abhlnNoOPRstUvVX] [+|-c c] [+|-d s] [+D D] [+|-f]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]]
[-p s] [+|-r [t]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
~# lsof -a -p 10020 -i -Tf
lsof: unsupported TCP/TPI info selection: f
lsof 4.78
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: [-?abhlnNoOPRstUvVX] [+|-c c] [+|-d s] [+D D] [+|-f]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]]
[-p s] [+|-r [t]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Reply to: