1754020 Members
7390 Online
108811 Solutions
New Discussion юеВ

Open files !

 
SOLVED
Go to solution
titu
Regular Advisor

Open files !

Hi All ,

How to check the total no. of open files in the hp-ux box ?

Thanks in advance

Titu
7 REPLIES 7
Steven E. Protter
Exalted Contributor
Solution

Re: Open files !

Shalom,

Install gpm the gui portion of glance.

gpm has a high water mark that can show use of files.

Or:
http://www.docs.hp.com/en/B1171-90101/ch05s40.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mel Burslan
Honored Contributor

Re: Open files !

did you consider

lsof | wc -l

yet ?

you might need to use additional commands in the pipe to exclude some files or applications but this should give you a starting point.


{lsof=list open files as name implies)

Hope this helps
________________________________
UNIX because I majored in cryptology...
Ganesan R
Honored Contributor

Re: Open files !

Hi ,

To know the number of open use this command.

#sar -v 2 2

HP-UX hpserver B.11.11 U 9000/800 05/06/09

15:10:58 text-sz ov proc-sz ov inod-sz ov file-sz ov
15:11:00 N/A N/A 300/4096 0 4164/8192 0 7897/32778 0
15:11:02 N/A N/A 300/4096 0 4164/8192 0 7897/32778 0

here it is 7897 out of it's maximum 32778(nfile value)
Best wishes,

Ganesh.
Pete Randall
Outstanding Contributor

Re: Open files !

titu
Regular Advisor

Re: Open files !

Thanks for all replies.

Is there any way to check which process has open which file.

Any way to track individual process has opened how many files ?

Thanks in advance.

Titu

Pete Randall
Outstanding Contributor

Re: Open files !

That is just what lsof excels at! See the man page:

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.82/man.html


Pete

Pete
titu
Regular Advisor

Re: Open files !

Thanks for all reply