tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Correctly using lsof
@ 1997-01-09 23:18 Brian James O'Connor
  0 siblings, 0 replies; only message in thread
From: Brian James O'Connor @ 1997-01-09 23:18 UTC (permalink / raw)
  To: tru64-unix-managers

Hello,
      I have lsof installed on a couple of DEC's running DU 3.2b,
and a heap of sgi's. On the DU machines it does not produce the
names of files, just the device names. This is useless.

eg

on SGI(edited)

sgi>lsof -u boc
COMMAND     PID     USER   FD   TYPE     DEVICE   SIZE/OFF      INODE NAME
sh         3161      boc    4r  VREG     5,   3       2500          2 /usr/staff/boc/.elm/aliases.dir
sh         3161      boc    5r  VREG     5,   3       2500         40 /usr/staff/boc/.elm/aliases.pag
sh         3161      boc    6r  VREG     5,   3       2500          2 /usr/staff/boc/.elm/aliases
ex         3162      boc  cwd   VDIR     5,   3       2500         10 /usr/staff/boc/Mail

on DU(edited)
DEC>lsof -u boc
lsof: WARNING: name cache truncated at 10240 entries
COMMAND     PID     USER   FD   TYPE       DEVICE   SIZE/OFF      INODE NAME
tcsh      15663      boc  cwd   VDIR   11,      6       5632    1352414 /usr (/dev/re0g)
tcsh      15663      boc  txt   VREG   11,      6     499712    1605194 /usr -- tcsh
tcsh      15663      boc  txt   VREG   11,      0     172032        214 / (/dev/re0a)
tcsh      15663      boc  txt   VREG   11,      6    1630208     414724 /usr (/dev/re0g)

lsof on a file works, eg

on DU
DEC>lsof /usr/staff/boc/.elm/aliases 
COMMAND     PID     USER   FD   TYPE       DEVICE   SIZE/OFF      INODE NAME
elm       23216      boc    6r  VREG   11,      6        336    1652125 /usr/staff/boc/.elm/aliases

on SGI
SGI>lsof /usr/staff/boc/.elm/aliases
COMMAND     PID     USER   FD   TYPE     DEVICE   SIZE/OFF      INODE NAME
elm        3828      boc    6r  VREG     5,   3       2500          2 /usr/staff/boc/.elm/aliases

so the information must be there, but I must have either incorrectly compiled it on the DU machine
or need another switch.(I suspect that the "lsof: WARNING: name cache truncated at 10240 entries"
warning has something to do with this) 

Can any one give me a hint. lsof is a very usefull tool but I need it to "list open files"
not devices.


TIA
boc
-- 
------------------------------------------------------------
        Brian O'Connor, Unix Systems Consultant
              Latrobe University,Bendigo
          boc@ironbark.bendigo.latrobe.edu.au
------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-01-09 23:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-09 23:18 Correctly using lsof Brian James O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox