Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Welcome to the pSeries Tech Forums, our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software.

You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments.

Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community.

Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old July 16th, 2007
yogeeraj's Avatar
yogeeraj Offline
Junior Member
 
Join Date: August 2006
Location: Mauritius
Posts: 17
LSOF: no paths/file names are displayed

Dear Experts,

Being new to the AIX world, we are currently troubleshooting a problem with Oracle whereby we need to get the paths and file names corresponding to a running process.

Normally, in an HP-UX environment, we would have run the following command to get the desired information:
================================================== ===========================
HP-Server1:>lsof -p 2759
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 2759 root cwd DIR 64,0x3 8192 2 /
httpd 2759 root txt REG 64,0x6 2836116 1708 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x7 53248 9828 /usr/lib/libnss_files.1
httpd 2759 root mem REG 64,0x6 180224 2434 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x7 36864 5160 /usr/lib/libpam.1
httpd 2759 root mem REG 64,0x6 2341372 2412 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2440 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2443 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2445 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2430 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2429 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2423 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 163340 2413 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2426 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2421 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2420 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2419 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2415 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 90112 2439 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 24576 2417 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2444 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 24576 2441 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2416 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 28672 2431 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 12288 2418 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 24576 2424 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 16384 2427 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 49152 2422 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 57344 2432 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 32768 2433 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 36864 2442 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 45056 2438 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 28672 2436 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 40960 2437 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 32768 2435 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2425 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2428 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x6 20480 2446 /opt (/dev/vg00/lvol6)
httpd 2759 root mem REG 64,0x7 12288 5144 /usr/lib/libisamstub.1
httpd 2759 root mem REG 64,0x7 1261568 4991 /usr/lib/libcl.2
httpd 2759 root mem REG 64,0x7 159744 28032 /usr/lib/libpthread.1
httpd 2759 root mem REG 64,0x7 135168 33812 /usr/lib/libxti.2
httpd 2759 root mem REG 64,0x7 745472 35179 /usr/lib/libnsl.1
httpd 2759 root mem REG 64,0x7 61440 33825 /usr (/dev/vg00/lvol7)
httpd 2759 root mem REG 64,0x7 24576 44420 /usr/lib/libdld.2
httpd 2759 root mem REG 64,0x7 1822720 5199 /usr/lib/libc.2
httpd 2759 root mem REG 64,0x7 282624 5035 /usr/lib/libm.2
httpd 2759 root mem REG 64,0x7 155648 33826 /usr/lib/libsec.2
httpd 2759 root mem REG 64,0x7 253952 44418 /usr/lib/dld.sl
httpd 2759 root mem REG 64,0x8 532 2449 /var/spool/pwgr/status
httpd 2759 root 0u CHR 3,0x2 0t0 66 /dev/null
httpd 2759 root 1u CHR 3,0x2 0t0 66 /dev/null
httpd 2759 root 2u REG 64,0x6 14011381 36993 /opt (/dev/vg00/lvol6)
httpd 2759 root 3u REG 64,0x6 0 18204 /opt (/dev/vg00/lvol6)
httpd 2759 root 4u REG 64,0x6 0 36994 /opt (/dev/vg00/lvol6)
httpd 2759 root 5u unix 64,0x8 0t0 23210 /var/spool/sockets/pwgr/
client2759 (0x6014c080)
httpd 2759 root 6u REG 64,0x6 0 36994 /opt (/dev/vg00/lvol6)
httpd 2759 root 15u REG 64,0x6 14011381 36993 /opt (/dev/vg00/lvol6)
httpd 2759 root 16u inet 0x605134c0 0t0 TCP *:http (LISTEN)
httpd 2759 root 17u REG 64,0x6 43767223 36995 /opt (/dev/vg00/lvol6)
httpd 2759 root 18u REG 64,0x6 0 18205 /opt (/dev/vg00/lvol6)
HP-Server1:>

On our server which is running the AIX operating system, the following information is being displayed:
================================================== ===========================

AIX-Server2: home/oracle>lsof -p 1953904
lsof: WARNING: access /home/oracle/.lsof_server2: No such file or directory
lsof: WARNING: created device cache file: /home/oracle/.lsof_server2
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
httpd 1953904 oracle cwd VDIR 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 0r FIFO 0xf10001005dac8d90 354
httpd 1953904 oracle 1w VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 2w FIFO 0xf10001005cdade50 0
httpd 1953904 oracle 3u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 4u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 5u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 6w FIFO 0xf10001005cdade50 0
httpd 1953904 oracle 7u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 8u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 9r VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 10r FIFO 0xf1000100586291f0 0
httpd 1953904 oracle 11w FIFO 0xf10001005d110310 0
httpd 1953904 oracle 12w FIFO 0xf1000100586291f0 0
httpd 1953904 oracle 13u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 14u VREG 38,3 0 0 /asd02
(/dev/lv_asd02)
httpd 1953904 oracle 15u IPv4 0xf100060003b70390 0t0 TCP loopba
ck:dlip (LISTEN)
httpd 1953904 oracle 16u IPv4 0xf100060003f90b90 0t0 TCP *:vsta
t (LISTEN)
httpd 1953904 oracle 17w VCHR 2,2 0t0 0 / (/de
v/hd4) (like device special /dev/null)
httpd 1953904 oracle 18w VREG 38,3 0 4043310868 /asd02
(/dev/lv_asd02)
AIX-Server2: home/oracle>

Question: Are there other ways to get the desired information? If yes, how?

Thanking you in advance for your replies.
kind regards
Yogeeraj
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac aa00e1f3 aio aix aix aio aix freeware aixif_arp_dup_addr b150f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 dlpar fcp_array_err6 fget_config gnu tar aix gsclvmd gtar aix hi yall hmc root password hmc vmware hscl05db ibm p6 ibm p6 520 libpopt aix libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseries pseriestech rsync aix sc_disk_err4 scan_error_chrp vio server websm xhost file ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48