Re: lsof: can't figure out how to show open files

From: Lamar Saxon (Lamar.Saxon_at_AMERICREDIT.COM)
Date: 05/24/05

  • Next message: Dave Stewart: "Can't backup old E20"
    Date:         Tue, 24 May 2005 11:45:06 -0500
    To: aix-l@Princeton.EDU
    
    

    I have version 4.74 that I compiled on AIX 5.3 and it does not show the actual filenames either.

    I will download 4.75 and compile.

    Here is my screens:

    lsof -v

    lsof version information:
       revision: 4.74
       latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
       latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
       latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
       configuration info: 64 bit kernel
       constructed: Fri May 13 10:29:55 CDT 2005
       constructed by and on: xxxxxxx@xxxxxxxxx
       compiler: cc
       compiler version: C for AIX Compiler Version 5.0.2.9
       compiler flags: -DHASIPv6 -DHASSTAT64 -DHAS_JFS2 -I/usr/sys/inst.images/LSOF/5.3.64/lsof_4.74_src/dialects/aix/aix5 -q64 -DAIX_K
    ERNBITS=64 -DAIXA=1 -DAIXV=5300 -qmaxmem=16384 -DLSOF_VSTR="5.3.0.0" -O
       loader flags: -L./lib -llsof -bnolibpath
       system info: AIX aocsdede2 3 5 00C00F5A4C00
       Only root can list all files, but anyone can list socket files.
       /dev warnings are enabled.
       Kernel ID check is enabled.
       Device cache file read-only paths:
           Named via -D: none
           Named in environment variable LSOFDEVCACHE: none
           Personal path format (HASPERSDC): "%h/%p.lsof_%L"
           Modified personal path environment variable: LSOFPERSDCPATH
           LSOFPERSDCPATH value: none
           Personal path: /home/xxxxxxx/.lsof_xxxxxxxxx
       Device cache file write paths:
           Named via -D: none
           Named in environment variable LSOFDEVCACHE: none
           Personal path format (HASPERSDC): "%h/%p.lsof_%L"
           Modified personal path environment variable: LSOFPERSDCPATH
           LSOFPERSDCPATH value: none
           Personal path: /home/xxxxxxx/.lsof_xxxxxxxxx

    root@xxxxxxxxx:/home/xxxxxxx >ps -ef | grep syslogd
       root 372768 749614 0 11:44:24 pts/2 0:00 grep syslogd
       root 860336 110752 0 May 15 - 0:00 /usr/sbin/syslogd
    root@xxxxxxxxx:/home/xxxxxxx >lsof -p 860336
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    syslogd 860336 root cwd VDIR 10,8 256 32 /home (/dev/hd1)
    syslogd 860336 root 0r VDIR 10,4 4096 2 / (/dev/hd4)
    syslogd 860336 root 1r VDIR 10,4 4096 2 / (/dev/hd4)
    syslogd 860336 root 2r VDIR 10,4 4096 2 / (/dev/hd4)
    syslogd 860336 root 3u unix 10,4 0t0 4218 /dev/log
    syslogd 860336 root 4u IPv4 0xf100090000620400 0t0 UDP *:syslog
    syslogd 860336 root 6w VREG 10,6 19537921 69 /var (/dev/hd9var)
    syslogd 860336 root 13u unix 10,4 0t0 4611 /dev/.SRC-unix/SRC4tIkaa

    Lamar

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of Green, Simon
    Sent: Tuesday, May 24, 2005 11:31 AM
    To: aix-l@Princeton.EDU
    Subject: Re: lsof: can't figure out how to show open files

    Does lsof 4.75 work OK with lower versions of AIX, do you know?

    Simon

    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Holger.VanKoll@SWISSCOM.COM
    Sent: 24 May 2005 17:22
    To: aix-l@Princeton.EDU
    Subject: Re: lsof: can't figure out how to show open files

    I asked Vic Abell about a 5.3-version and helped testing after he sent it to
    me.

    Meanwhile he put it on the ftp-server

    ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/binaries/aix/5.3/power/

    IŽd still be interested if anybody has problems. I didnt find any problem.

    I dont have xlc for 5.3 and as far as I know there isnt any gcc for 5.3 yet.
    I didnt make it to compile it on 5.3 with a 5.2-gcc

    Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.


  • Next message: Dave Stewart: "Can't backup old E20"

    Relevant Pages