[osol-discuss] Any lsof tool for nv ?
Richard L. Hamilton
rlhamil at smart.net
Tue Jul 15 06:05:43 PDT 2008
> I have used lsof before, but can't recollect
> all the output details. Before I start
> digging, just out of curiosity what info
> does lsof provide that pfiles does not ?
A couple of examples (on Solaris 9, where lsof works):
# What is using port 39249?
$ lsof -i :39249
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ttsession 12075 rlhamil 14u IPv6 0x307a5514ad0 0t1 TCP localhost:39249->localhost:39248 (ESTABLISHED)
dtexec 13900 rlhamil 10u IPv6 0x307a5514050 0t0 TCP localhost:39248->localhost:39249 (ESTABLISHED)
# List open files with link count < 1 (which could account
# for du != df). This is just part of it, the whole list is
# too long. Also, there aren't any really large ones just
# now, so it's not an actual concern at the moment. And of
# course, Jive messed up the columns; in reality, they do line up.
$ lsof +L 1
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME
midid 704 nobody txt VREG 0,2 4 0 162312198 /tmp (swap)
midid 705 nobody txt VREG 0,2 4 0 162312678 /tmp (swap)
nmbd 1026 root 2w VREG 85,0 52986 0 250089 / (/dev/md/dsk/d0)
nmbd 1026 root 4w VREG 85,0 52986 0 250089 / (/dev/md/dsk/d0)
httpd 1060 root 12u VREG 0,2 0 0 3635489 /tmp (swap)
httpd 1060 root 13w VREG 85,0 0 0 250525 / (/dev/md/dsk/d0)
httpd 1060 root 14w VREG 85,0 0 0 250539 / (/dev/md/dsk/d0)
This message posted from opensolaris.org
More information about the opensolaris-discuss
mailing list