Operating System - HP-UX
1820227 Members
3685 Online
109620 Solutions
New Discussion юеВ

Is there a way to trace numbers of files being opened per user ?

 
rveri
Super Advisor

Is there a way to trace numbers of files being opened per user ?

Hi All ,


Recently I got this message on syslog .
"vmunix: file table full"

As per this error , I have increased the nfile parameters, and just wondering , if we can know how many files are opening by the users.

Is there any way to check this , number of files are opening per user.

I used # glance -t ,it gives this:
--------------------------------------------------------------------------------
SYSTEM TABLES REPORT Users= 3

System Table Available Used Utilization High(%)
--------------------------------------------------------------------------------
Proc Table (nproc) 3620 337 9 9
File Table (nfile) 16010 5878 37 37
Shared Mem Table (shmmni) 1024 75 7 7
Message Table (msgmni) 128 2 2 2
Semaphore Table (semmni) 1024 148 14 14
File Locks (nflocks) 1024 623 61 61
Pseudo Terminals (npty) 200 0 0 0
Buffer Headers (nbuf) na 144636 na na

------------------------------------------------

Can we get user wide.

Many Thanks in advance,


R.Veri.
2 REPLIES 2
RAC_1
Honored Contributor

Re: Is there a way to trace numbers of files being opened per user ?

Get lsof tool
lsof -u "user_name"

Anil
There is no substitute to HARDWORK
John Payne_2
Honored Contributor

Re: Is there a way to trace numbers of files being opened per user ?

The tool is called 'lsof'. 'lsof -u userid' will list all open files for that user.

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.74

(Lsof has a lot of uses related to open files...)

Hope it helps

John
Spoon!!!!