1832413 Members
2813 Online
110042 Solutions
New Discussion

Unable to run lsof !!

 
SOLVED
Go to solution
rveri
Super Advisor

Unable to run lsof !!

Hi Experts,

I have downloaded the lsof 4.76 utility from http://hpux.cs.utah.edu , for hpux 11.11 , N4000. and installed the same.

Installed successfully.

When I am running the command , to list open files , its giving following error:

# ./lsof
lsof: FATAL: pst_status_size should be: 1176; is 920
lsof: FATAL: pst_vminfo_size should be: 1240; is 1096
lsof: FATAL: pst_static doesn't contain pst_filedetails_size
lsof: FATAL: pst_static doesn't contain pst_socket_size
lsof: FATAL: pst_static doesn't contain pst_stream_size
lsof: FATAL: pst_static doesn't contain pst_mpathnode_size
lsof: FATAL: pst_static doesn't contain pst_fileinfo2_size

# cd /usr/local/bin
#
# ./lsof -U
lsof: FATAL: pst_status_size should be: 1176; is 920
lsof: FATAL: pst_vminfo_size should be: 1240; is 1096
lsof: FATAL: pst_static doesn't contain pst_filedetails_size
lsof: FATAL: pst_static doesn't contain pst_socket_size
lsof: FATAL: pst_static doesn't contain pst_stream_size
lsof: FATAL: pst_static doesn't contain pst_mpathnode_size
lsof: FATAL: pst_static doesn't contain pst_fileinfo2_size


# file lsof
lsof: PA-RISC2.0 shared executable dynamically linked

Any idea ?? whats wrong.!

Thanks,
Veri.
5 REPLIES 5
rveri
Super Advisor

Re: Unable to run lsof !!

Also , lsof -v attached:

# ./lsof -v
lsof version information:
revision: 4.76
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: PSTAT-based
constructed: Fri Sep 2 18:11:26 BST 2005
constructed by and on: root@hades
compiler: /usr/local/bin/gcc
compiler version: 3.4.4
compiler flags: -DHAS_CONST -DHPUXV=1111 -D_PSTAT64 -DHASIPv6 -DLSOF_VSTR="B.11.11" -O
loader flags: -L./lib -llsof -lnsl
system info: HP-UX hades B.11.11 U 9000/800 1338169341 unlimited-user license
Only root can list all files.
/dev warnings are disabled.
Kernel ID check is disabled.

Any idea anyone... Thx.

Devender Khatana
Honored Contributor
Solution

Re: Unable to run lsof !!

Hi Veri,

Try installing this binary for 11.11.

http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/

HTH,
Devender
Impossible itself mentions "I m possible"
Robert-Jan Goossens_1
Honored Contributor

Re: Unable to run lsof !!

Veri,

Did you try the version from august 2005 4.75?

Could be you are running into a bug.

Looks like the download and install are good, but could be a problem in the depot.

Regards,
Robert-Jan
rveri
Super Advisor

Re: Unable to run lsof !!

Thanks ,
It worked after downloading the binary,

we having mix environmetn of 11.00 and 11.11 , and I was trying to run the lsof(11.11)version on 11.00 .

After downloading from the link given by Devender, I got the error message , and installed the correct one and worked fine.

Many thanks ,
rveri
Super Advisor

Re: Unable to run lsof !!

Thanks.