Mantis - lsof
Viewing Issue Advanced Details
2903 upgrade feature always 2008-05-29 07:21 2011-10-22 19:40
fbacchella  
dam  
normal  
closed  
fixed  
none    
none  
0002903: lsof is not up to date
On this version of Solaris :
# uname -a
SunOS XXXX 5.10 Generic_127112-05 i86pc i386 i86pc
I get the following answer
/opt/csw/bin/lsof -i:10001 |wc -l
      0
pkginfo -l CSWlsof
  PKGINST: CSWlsof
     NAME: lsof - list open files
 CATEGORY: application
     ARCH: i386
  VERSION: 4.77,REV=2006.11.13
  BASEDIR: /opt/csw
   VENDOR: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof [^] packaged for CSW by Cyril Plisko
   PSTAMP: login20061113034531
 INSTDATE: Dec 18 2007 16:27
  HOTLINE: http://www.blastwave.org/bugtrack/ [^]
    EMAIL: imp@blastwave.org
   STATUS: completely installed
    FILES: 28 installed pathnames
                  4 shared pathnames
                  4 linked files
                 16 directories
                  7 executables
                  6 setuid/setgid executables
               2210 blocks used (approx)


If I compile the last version of lsof :
./lsof -i:10001 | wc -l
     15
So, with this, I got the list of opened socket
The version informations :
./lsof -v
lsof version information:
   revision: 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 [^]
   configuration info: 64 bit kernel
   constructed: Wed Jan 2 11:14:36 CET 2008
   constructed by and on: bacchell@XXXX
   compiler: /opt/SUNWspro/bin/cc
   compiler version: Sun C 5.8 Patch 121016-07 2007/10/03
   compiler flags: -Dsolaris=100000 -DHASPR_LDT -xarch=amd64 -DHASIPv6 -DHASSOUXSOUA -DHAS_IPCLASSIFIER_H -DHAS_CRED_IMPL_H -DHAS_V_PATH -DHASZONES -DHAS_ZFS=1
-DHASUTMPX -DHAS_VSOCK -DLSOF_VSTR=\\\"5.10\\\" -O
   loader flags: -L./lib -llsof -lkvm -lelf -lsocket -lnsl
   system info: SunOS ng31 5.10 Generic_127112-05 i86pc i386 i86pc
   Anyone can list all files.
   /dev warnings are enabled.
   Kernel ID check is enabled.
   WARNING: privately defined ZFS structures may be incorrect.
   Device cache file read-only paths:
       Named via -D: none
       Named in environment variable LSOFDEVCACHE: none
       Personal path format (HASPERSDC): \\\"%h/%p.lsof_%L\\\"
       Modified personal path environment variable: LSOFPERSDCPATH
       LSOFPERSDCPATH value: none
       Personal path: /.lsof_ng31
   Device cache file write paths:
       Named via -D: none
       Named in environment variable LSOFDEVCACHE: none
       Personal path format (HASPERSDC): \\\"%h/%p.lsof_%L\\\"
       Modified personal path environment variable: LSOFPERSDCPATH
       LSOFPERSDCPATH value: none
       Personal path: /.lsof_ng31

Issue History
2008-08-30 12:06 frol Issue Monitored: frol
2009-11-11 16:47 dam Status new => assigned
2009-11-11 16:47 dam Assigned To => dam
2011-10-22 19:40 dam Note Added: 0009353
2011-10-22 19:40 dam Status assigned => closed
2011-10-22 19:40 dam Resolution open => fixed

Notes
(0009353)
dam   
2011-10-22 19:40   
lsof lsof-4.84,REV=2011.07.13 has been released to current/.