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...

Dennis Handly
Acclaimed Contributor

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