IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > AIX > ... > AIXV53Howtos > AIXV53lsof
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
AIXV53lsof
Added by OneSkyWalker, last edited by OneSkyWalker on Aug 28, 2008
Labels: 
(None)

How to install the lsof (LiSt Open Files) utility on AIX V5.3

Download the lsof installation image (and Readme) from the AIX Web Download Pack Programs web page. Follow installation instructions in the Readme.

When first installed, lsof might fail with:

ibm:/ # lsof /home
lsof: FATAL: compiled for a kernel of 32 bit size.
      The bit size of this kernel is 64.
ibm:/ #
The README.txt file included in lsof-4.7.tar.Z says:

The lsof fileset contains two lsof binaries "lsof" and "lsof64".
So use the appropriate binaries depending on the type of your kernel bits.
i.e use lsof for 32-bit kernel and lsof64 for 64 bit kernel.

So:

ibm:/ # lslpp -f lsof.base
  Fileset               File
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  lsof.base 4.7.0.0     /usr/sbin/lsof
                        /usr/sbin/lsof64
ibm:/ # bootinfo -K
64				# Note: This says the AIX kernel is 64-bit
ibm:/ # cd /usr/sbin
ibm:/usr/sbin # mv -i lsof lsof32
ibm:/usr/sbin # mv -i lsof64 lsof
ibm:/usr/sbin # lsof /home
lsof: WARNING: access /.lsof_ibm: No such file or directory
lsof: WARNING: created device cache file: /.lsof_ibm
ibm:/usr/sbin #

The contents of this web page solely reflect the personal views of the authors and do not necessarily represent the views, positions, strategies or opinions of IBM or IBM management. Please use the Add Comment link at the bottom of the page to provide feedback. Note: Until you log in (using the link in the upper right corner of this web page), you will not see the Add Comment link and you can not add a comment. If you do not already have an IBM ID, use the Register Now link on the sign in page to obtain one. Registration is quick and easy.


 
    About IBM Privacy Contact