1828074 Members
3789 Online
109974 Solutions
New Discussion

inodes question

 
SOLVED
Go to solution
joe_91
Super Advisor

inodes question

Hi:

What is the command in HP-UX to display the inodes that are connected to an open process?

Please Help.

Thanks

Joe.
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: inodes question

fuser is the standard tool but a much better option is the lsof (list open files) command available from any of the HP-UX Porting Centre's.

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: inodes question

Thanks. would you happen to know where the lsof for 10.20 would be?

Thanks

Joe.
Jeff Schussele
Honored Contributor
Solution

Re: inodes question

Hi Joe,

HP-UX doesn't have that built in, but the lsof utility can do it as follows

lsof -p XXXX

where XXXX=PID & the outpout will contain a NODE column which is the inode of the file or directory entry.

lsof is available here:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.70/

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: inodes question

glance

Select process (s option)and then choose open files(F option)

lsof tool

lsof -p "pid"

Anil
There is no substitute to HARDWORK
A. Clay Stephenson
Acclaimed Contributor

Re: inodes question

Unless someone has an archived depot, you are going to have to download the source and compile it from the same Website. The good news is that is a really straightforward build.
If it ain't broke, I can fix that.
RAC_1
Honored Contributor

Re: inodes question

http://the-other.wiretapped.net/security/host-security/lsof/

I think 32 bit binaries will work on 10.20.

Anil
There is no substitute to HARDWORK
Navin Bhat_2
Trusted Contributor

Re: inodes question

Which inodes? vxninodes or HFS inodes?
Jeff Schussele
Honored Contributor

Re: inodes question

The actual filesystem inode - be it HFS or vxfs.
What you'd get with an ls -i filename command

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!