Article

eaglefly's picture
article
Reads:

6919

Score:
5
5
2
 
Comments:

0

List All Open Files on an NSS Volume Residing on an OES Linux Server

Author Info

26 January 2007 - 12:11pm
Submitted by: eaglefly

(View Disclaimer)

Problem:

List all open files on a NSS volume residing on an OES-Linux server.

Solution:

Open a console prompt and type:

ncpcon files list v=<volume name>

This will list all open files by all connections on the server. Useful if you need to find who is using a file that has a space in its name, as ncpcon does not seem to accept filenames with spaces.

Example:

ncpcon files list v=data

... Executing " files list v=data"
Connection  User Name                   Open File Count
8         .CN=user1h.OU=OU.O=O.T=T. 1
        /media/nss/DATA/PUBLIC/clntrust.exe
12         .CN=user2.OU=OU.O=O.T=T. 1
        /media/nss/DATA/PUBLIC/clntrust.exe
26         .CN=user3.OU=OU.O=O.T=T.  3
        /media/nss/DATA/PUBLIC/clntrust.exe
        /media/nss/DATA/HOME/user3/MRB/2007/January 17th 2007 MRB.doc
        /media/nss/DATA/HOME/user3/MRB/2007/~WRL0001.tmp
28         .CN=user4.OU=OU.O=O.T=T. 1
        /media/nss/DATA/PUBLIC/clntrust.exe
...
Count of open files found on volume data: 226.
... completed OK [elapsed time = 15 msecs 969 usecs]

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell