- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lsof problem ( "stocks" )
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 05:38 AM
08-04-2003 05:38 AM
lsof problem ( "stocks" )
i have lsof 4.67 built on hp-ux 11.11
i went through all the compilation procedure o.k
but when i'm trying to run lsof , it just stock with no output.
when i run tusc on it i'm getting that the process is sleeping :
"pstat(0x80000019, 0x7dff0d68, 648, 0, 0) ....[sleeping]"
does anybody can tell me what's going wrong with that ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 05:47 AM
08-04-2003 05:47 AM
Re: lsof problem ( "stocks" )
What was the exact lsof command line you are using?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 05:49 AM
08-04-2003 05:49 AM
Re: lsof problem ( "stocks" )
What options do you run lsof with?
Try to run wiht -p PID or -u UID options.
Also try to run tusc lsof ... > /tmp/tusc.log.
After a minute cancel with Ctl+C.Read the log.
Best regards,
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 05:53 AM
08-04-2003 05:53 AM
Re: lsof problem ( "stocks" )
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/
use 11.00 for 11.11
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 06:09 AM
08-04-2003 06:09 AM
Re: lsof problem ( "stocks" )
i'm running the command without any arguments because i would like to see list of the open files
the output from the tusc command ( after a minute ) is :
" pstat(0x80000019, 0x7dff0e28, 648, 0, 0) ................................................. [sleeping] "
i also attached you the output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 06:26 AM
08-04-2003 06:26 AM
Re: lsof problem ( "stocks" )
Well I've never ran lsof w/o any parameters, But I'd suspect that it would take a while to list ALL open files for ALL active processes.
How long are you giving the command to complete?
Also how's the resources on this system - i.e. free memory, CPU & disk load?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 07:24 AM
08-04-2003 07:24 AM
Re: lsof problem ( "stocks" )
Inconsistent arg # for syscall 59 (execve): 1/3
or
Inconsistent arg # for syscall 5 (open): 1/3
I'd take some time to think what it can be :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 12:12 AM
08-05-2003 12:12 AM
Re: lsof problem ( "stocks" )
harry -> i did already download the precompiled version and the compilation went o.k. the trouble is going on after that ( when i'm running the command....)
jeff --> i realy give it enough time ....
you can see in the output ( of the tusc ) that someone is sleeping there.....
zeev --> i'm looking forward for your checks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 01:06 AM
08-05-2003 01:06 AM
Re: lsof problem ( "stocks" )
Ok.what I saw in tusc output is that lsof does
open() on files but doesn't supply arguments to open sytem call (ie how to open,permissions Read/Write etc).From here I have 2 guesses:
1)when you run lsof without options (and as root user) it also checks network sockets (which are actually a special type of file) and
here is may hang - there were some issues on hp-ux,patches phkl_24047/24507 were used.
2)run lsof as usual user (that doesn't have open connections,like telnets/ftps etc).See if it hangs...
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 03:05 AM
08-05-2003 03:05 AM
Re: lsof problem ( "stocks" )
i tried to run as a usuall user and it still hangs ( i get the same .."Inconsistent arg # for syscall 5 (open): 1/3" ( tusc's output )
as to the patches : we do have these 2 patches installed in our server...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 04:52 AM
08-05-2003 04:52 AM
Re: lsof problem ( "stocks" )
Try the PRE-compiled version, NOT the one you compile yourself.
Additionally, what was the last major patch bundle you installed?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 05:04 AM
08-05-2003 05:04 AM
Re: lsof problem ( "stocks" )
I read lsof FAQ and there are some points on
64bit hp-ux 11.11 support etc.
What compiler did you use,and your hp-ux is 32 or 64 bit?
I post a FAQ here,read section 9.
For more details you can also contact lsof creator : Victor A. Abell
best regards,
zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 11:59 AM
08-05-2003 11:59 AM
Re: lsof problem ( "stocks" )
Download the precompiled version.
Do not compile anything, just run what you get.
Worked for me.
Sorrel Jakins, BYU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 01:05 AM
08-06-2003 01:05 AM
Re: lsof problem ( "stocks" )
i tried to install the depot but i'm getting:
"ERROR: Corrupt lsof.lsof-RUN,r=4.67 "
i downloaded it again but it didn't work ...