HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

what's the pfile equivalent in HP

 
Ravikumar_palaniappan
Occasional Visitor

what's the pfile equivalent in HP

I am looking for files opened by a process. How to get this in HP OS.

Please suggest the command in HP like pfile in Sun OS

Thanks
Ravi
3 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: what's the pfile equivalent in HP

Hi Ravi:

I think you are looking for 'tusc' and/or 'lsof'. Download and install it from the HP-UX porting Centre:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-8.0/

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

Neither installation requires a reboot and both are done with 'swinstall'.

Regards!

...JRF...

Re: what's the pfile equivalent in HP

On 11.31 the command is pfiles(1).
muruganantham raju
Valued Contributor

Re: what's the pfile equivalent in HP

Hi Ravi,
lsof lists all the open files by the processes. It includes devices, sockets, open files and pipes.

lsof is available for all hpux flavors. Install it in your system. Regarding the usage,

Execute lsof to list all the open files by all the processes running in your system.

To monitor all the open files by specific process say of process id 17654, execute

lsof -p 17654

HTH
Muru