01-26-2009
lsof on HPUX 11.23
Hey Guys...
I am looking for lsof by HPUX 11.23 . Could someone said me where can download it?
Thanks in Advance.
ANGEL GADEA
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
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
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
5. UNIX for Dummies Questions & Answers
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
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
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
8. 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
9. OS X (Apple)
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
10. Shell Programming and Scripting
Hi,
I am trying to find the files in a specific directory that are currently in open state. I need this information to archive the old files that are not active in the directory.
I get the following output when I try the command $ lsof +d '/var/tmp/'|awk '{print $9}'|sort -u
NAME... (1 Reply)
Discussion started by: ryzen7
1 Replies
LEARN ABOUT DEBIAN
checkrestart
checkrestart(1) debian-goodies checkrestart(1)
NAME
checkrestart - check which processes need to be restarted after an upgrade
SYNOPSIS
checkrestart [ -hvpa ] [ -b blacklist_file ] [ -i package_name ]
DESCRIPTION
The checkrestart program tries to determine if there are processes in the system that need to be restarted after a system upgrade. This is
necessary since an upgrade will usually bring new system libraries and running processes will be still using the old versions of the
libraries. In stable Debian GNU/Linux systems this is typically needed to eliminate a system exposure to a vulnerability which might have
been fixed by upgrading a library which that process makes use of.
Consequently, checkrestart is sometimes used as an audit tool to find outdated versions of libraries in use, particularly after security
upgrades. Administrators should not, however, rely on its output completely (see BUGS below).
This script needs to run as root in order to obtain the information it needs for analysis.
OPTIONS
-h,--help
Show the program help and exit.
-v,--verbose
Generate detailed output. This output includes the list of all processes found using deleted files or descriptors as well as the
deleted files and descriptors found.
-p,--package
Only process deleted files that belong to a package, ignoring deleted files which do not have an associated package in the package
system.
-a,--all
Process all deleted files regardless of location. This makes the program analyse deleted files even if they would be discarded
because they are located in locations, such as /tmp , which are known to produce false positives. It will take preceded if used
simultaneously with the -p option.
-b file,--blacklist=file
Read a blacklist of regular expressions from file. Any files matching the patterns will be ignored.
-i name,--ignore=name
Ignore services that are associated to the package name provided in name.
EXIT STATUS
The program will exit with error (1) if a non-root user tries to run it. Otherwise, it will always exit with error status 0.
BUGS
This program might fail if the output of the lsof utility changes since it depends on it to detect which deleted files are used by pro-
cesses. It might also output some false positives depending on the processes' behaviour since it does not check yet if the (deleted) files
in use are really libraries.
If you find a false positive in checkrestart please provide the following information when submitting a bug report:
-- The output of checkrestart using the -v (verbose) option.
-- The output of running the following command as root:
lsof | egrep 'delete|DEL|path inode'
Checkrestart is also sensitive to the kernel version in use. And might fail to work with newer (or older) versions.
A rewrite to make it less dependent on lsof could improve this, however.
SEE ALSO
lsof(8)
AUTHOR
checkrestart was written by Matt Zimmerman for the Debian GNU/Linux distribution.
COPYRIGHT AND LICENCE
Copyright (C) 2001 Matt Zimmerman <mdz@debian.org> Copyright (C) 2007,2010-2011 Javier Fernandez-Sanguino <jfs@debian.org>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option) any later version.
On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL.
debian-goodies December 19 2006 checkrestart(1)