Sponsored Content
Full Discussion: AIX -UNIX lsof
Operating Systems AIX AIX -UNIX lsof Post 302234079 by Bestov on Tuesday 9th of September 2008 04:49:57 AM
Old 09-09-2008
Re lsof

A sample :
[root@srvaixnim]:/var/tmp> lsof
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
(unknown) 0 root cwd VDIR 10,4 4096 2 / (/dev/hd4)
init 1 root cwd VDIR 10,4 4096 2 / (/dev/hd4)
init 1 root 0u VREG 10,4 20736 908 / (/dev/hd4)
snmpmibd6 86258 root cwd VDIR 10,4 4096 5031 / (/dev/hd4)
...
errdemon 118968 root 3r VREG 10,5 40808 37651 /usr (/dev/hd2)
[root@srvaixnim]:/var/tmp> find /usr -inum 37651
/usr/lib/nls/msg/en_US/cmderrlg.cat
Bestov
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

lsof

Could someone please give me a step for a hint on which version and where is the above utility is for version 4.3.3.0 of Aix. (1 Reply)
Discussion started by: jacl
1 Replies

2. UNIX for Dummies Questions & Answers

lsof output

what does this line of output signify from the lsof output: java 1419 root 7u sock 0,0 2170 can't identify protocol Thanks (2 Replies)
Discussion started by: skotapal
2 Replies

3. UNIX for Dummies Questions & Answers

lsof ???

Hi All, I'm having a problem with "lsof" in HP-UX system. Its giving me 2 two different results when running it. 1 . lsof -p 'PID' | wc -l -----gives some value 2 . lsof | grep 'PID' | wc -l The above two commands gives me two different values with the same PID...... Thanks (6 Replies)
Discussion started by: marc
6 Replies

4. Shell Programming and Scripting

lsof in solaris

Hi .. I have written a cronjob to invoke a script that would transfer files based on some criteria. Consider folders A and B. Say I FTP a large file to A. Before the file gets fully transfered say the cronjob gets invoked. The script will move the file before its fully transfered. To detect... (1 Reply)
Discussion started by: champak
1 Replies

5. UNIX for Dummies Questions & Answers

lsof

I'm looking to list all of the files open at a certain time up on a UNIX box. From looking on the internet, it looks as though lsof is the most common. However have tried this and got the following: ksh: lsof: not found Now having gone into bash mode and hit tab twice I see that lsof... (3 Replies)
Discussion started by: meevagh
3 Replies

6. UNIX for Dummies Questions & Answers

about lsof

Hi, I typed lsof -i :80 in my putty but i am not able to get sockets related to port 80 Can any one help me out soon Can anyone point out the reason for not able to get the related sockets Output of what i am getting in my putty is displayed below training@use:~> lsof -i :80... (4 Replies)
Discussion started by: satheeshkr_cse
4 Replies

7. HP-UX

lsof in HP-UX

In Linux and Solaris lsof accepts the -X switch which allows to see if deleted files are still in use and eat disk space. In HP-UX it is now working and it is a problem... today one of my filesystems on the server was increasing very fast but existing file sizes were not really changing. lsof shows... (3 Replies)
Discussion started by: Vorb
3 Replies

8. AIX

Get Next month in AIX from curent date in unix AIX

How could we derive teh Next month in MON-RR format from current date ie sysdate in UNI AIX sheel script.I coould get a command but i supports only inLinux susse andnotin AIX. I need for Unix AIX.Pls Help. Regards Shiv (2 Replies)
Discussion started by: SHIV75
2 Replies

9. Shell Programming and Scripting

Help required - lsof in AIX

Hi All, Output of the following command is ok so far ... netstat -an | grep 192.168.156.1.16507 | awk '{print $5}' | awk '{FS="."} {print $5}' 1297 1350 1394 1211 1255 1259 4606 2184 2009 4890 1398 3941 1671 1780 (1 Reply)
Discussion started by: sraj142
1 Replies

10. OS X (Apple)

Lsof output

This is abridged lsof output from my safari process: Safari 13063 owner 9u unix 0x982ef3b9c1be1293 0t0 ->0x982ef3b9b7534eab Safari 13063 owner 10u unix 0x982ef3b9c1be0933 0t0 ->0x982ef3b9c1be1423 Safari 13063 owner 11u unix 0x982ef3b9c1be1423 ... (1 Reply)
Discussion started by: sakurashinken
1 Replies
XNBD-CLIENT(1)						      General Commands Manual						    XNBD-CLIENT(1)

NAME
xnbd-client -- connect to a server running xnbd-server(8), to use its exported block device SYNOPSIS
xnbd-client [--blocksize SIZE] [--connect] [--exportname NAME] [--recovery-command COMMAND] [--recovery-command-reboot COMMAND] [--retry COUNT] [--timeout SECONDS] NBD-DEVICE [ HOST PORT ...] xnbd-client [bs=SIZE] [timeout=SECONDS] HOST PORT NBD-DEVICE xnbd-client --disconnect NBD-DEVICE xnbd-client --check NBD-DEVICE DESCRIPTION
With xnbd-client, you can connect to a server running xnbd-server or xnbd-wrapper, thus using raw diskspace from that server as a blockde- vice on the local client. To do this, support from the Linux Kernel is necessary, in the form of the Network Block Device (NBD). When you have that, either in the kernel, or as a module, you can connect to an NBD server and use its exported file through a block special file with major mode 43. Long options can also be specified with two leading dashes. Some options are call compatible to nbd-client(1) as are most behavioural switches. This makes xnbd-client a plug-in replacement for nbd-client. OPTIONS
The following options are supported: --blocksize SIZE Use the provided value as block size. Default is 1024; allowed values are either 512, 1024, 2048 or 4096. For best results use a block size value of 4096 For compatibility to nbd-client(1) you can also use bs=SIZE --check|-c Check whether the specified nbd device is connected. If the device is connected, xnbd-client will exit with an exit state of 0 and print the PID of the xnbd-client instance that con- nected it to stdout. If the device is not connected or does not exist (for example because the nbd module was not loaded), xnbd-client will exit with an exit state of 1 and not print anything on stdout. If an error occurred, xnbd-client will exit with an exit state of 2, and not print anything on stdout either. --connect|-C Connect to the nbd-server --disconnect|-d Disconnect the specified nbd device from the server. Terminates execution with an exit state of 0 on success. --exportname NAME If the server supports to access devices by an identifier, use NAME to request access to a particular volume. This command is useful in combination with a xnbd-wrapper and only succeeds, if the remote host is exporting the requested device. --retry COUNT Try up to "COUNT" times to connect to the associated nbd-server. Default is 1, that is nbd-client will stop after the first unsuccessful try. --recovery-command invoke a specified command "COMMAND" on unexpected disconnection --recovery-command-reboot Invoke the reboot(8) command on unexpected disconnection --timeout SECONDS Use a timeout period (default is 0 which means not to use a timeout). Please do not use this option for now, as it seems not to work due to a bug in the kernel module. For compatibility to nbd-client(1) you can also use timeout=SECONDS POSITIONAL ARGUMENTS
The following positional options are supported: HOST The site to connect to a remote xnbd-server. You can specify any resolvable hostname, IPv4 or IPv6 address. PORT The port number to connect to on remote side NBD-DEVICE The local nbd-device to be associated with the remote xnbd-server. You can specify multiple host port tuples. xnbd-client will try to connect to each of them in order until it succeeds to establish a connection to a server. BUGS
The NBD device is known to deadlock when not being used altogether with the deadline scheduler. Make sure to do: echo deadline > /sys/block/nbd0/queue/scheduler SEE ALSO
xnbd-server (8), xnbd-wrapper (8). AUTHOR
The NBD kernel module and the NBD tools have been written by Pavel Macheck (pavel@ucw.cz) and is now maintained by Paul Clements. (Paul.Clements@steeleye.com). The xNBD userland (client and server) have been written by Takahiro Hirofuchi (t.hirofuchi@aist.go.jp) This manual page was written by Arno Toell (debian@toell.net) for the Debian GNU/Linux system (but may be used by others). Large parts are verbatim copies of the original nbd-server and nbd-client manual pages written by Wouter Verhelst (wouter@debian.org). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. XNBD-CLIENT(1)
All times are GMT -4. The time now is 02:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy