Solved

Question on output from lsof

Posted on 1997-07-20
5
730 Views
Last Modified: 2013-12-06
I am currently trying to track down which processes have which files open.
I am using a HP-UX 9 box - and the only program I can find to help me easily to do this is with "lsof" - but the output from this program says that there are several thousdand files open, but this cannot be as the NFILE kernel parameter is set to 2000 (so no more than 2000 files open at once).

I am also using glance, which tells me that there are only 1750 files open.

I am either looking for a way to tell me the info I want easily, or how to interpret the lsof output so that I can tell which are really open files and which aren't

thanks
0
Comment
Question by:mcclure
  • 2
  • 2
5 Comments
 

Expert Comment

by:vkg063097
ID: 2006577
I dono much about lsof and glace. Are they part of HpUX ?

anyway it may be worth investigating fuser command.
fuser -u -c /    will give you all the PID and user name
who are using files in / file system.

If you want to list all the open files then you may have to
write one script for this using fuser command.

vinay

0
 

Author Comment

by:mcclure
ID: 2006578
We originally thought of using fuser, but it works the wrong way around, we would have to poll _every_ file on the system, and then process the output into what we want.

As far as I am aware glance is a HPUX performance tool, but I am sure that lsof exists on many different platforms.
0
 

Accepted Solution

by:
sdwix earned 200 total points
ID: 2006579
Have you looked at monitor?  It's in usr/contrib/bin.  The other option is to browse the HP software site at Liverpool.  Search the interworks site for the URL
0
 

Author Comment

by:mcclure
ID: 2006580
Can I have a bit mroe of a hint as to where to find this product, as the name is so generic ther is no way a net search will reveal it to me (I've tried anyway) and I cannot find this "HP software site at Liverpool"

(The URL of that would be a good start, thanks)

Mike
0
 

Expert Comment

by:sdwix
ID: 2006581
Two URLs to check out are
1) The HP Interworks site: http://interworks.org
2) The HP software archive at Liverpool:
    http://hpux.csc.liv.ac.uk
There are US mirror sites to the Liverpool site.

The monitor tool should be on your machine in /usr/contrib/bin.
Use the find command to locate the file.

find /usr -name "monitor*" -print

Regards
SDW
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question