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
Discussions
Discussions
Forums
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
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-11-2005 04:51 PM
тАО08-11-2005 04:51 PM
Can someone suggest how to use lsof command and interpret its output on hpux 11i ?
Thanks,
Shiv
Solved! Go to Solution.
- Tags:
- lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 05:03 PM
тАО08-11-2005 05:03 PM
Re: lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 05:03 PM
тАО08-11-2005 05:03 PM
Re: lsof
as you may already know, everything is treated as files on unix OS. So, you can lisy pretty much anything that is open by lsof.
if you want to see files kept open by a process, you run it as
lsof |grep $PID
if you want to see who is keeping a port open
lsof -i tcp | grep $PORTNUM
The answer basically is : It Depends !
See this page for the man pages if you do not have them on your computer:
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.75/man.html
man pages explains in quite detail how best to use the product
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 05:08 PM
тАО08-11-2005 05:08 PM
Re: lsof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 05:28 PM
тАО08-11-2005 05:28 PM
Re: lsof
try "lsof -h" or "lsof -?" as well. the 4th line of the output will direct u to a man page as well.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2005 07:35 PM
тАО08-13-2005 07:35 PM
Re: lsof
lsof in hp-ux11i is used for
List files, sockets, etc opened by processes
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 09:02 AM
тАО08-14-2005 09:02 AM
Re: lsof
Thanks a lot to show how to use the lsof.
But i need to figure out how to decide the number of open files or sockets are more than the critical point and there exist a problem ?
Thanks and regards,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-14-2005 06:12 PM
тАО08-14-2005 06:12 PM
Solutionyou can check this in Glance+.
for instance, run glance and type t for "System Tables"
there you will be able to find current values of the following variables (displayed in terms of "Available, Used, Utilisation, High(%)":
System Table
--------------------------
Proc Table (nproc)
File Table (nfile)
Shared Mem Table (shmmni)
Message Table (msgmni)
Semaphore Table (semmni)
File Locks (nflocks)
Pseudo Terminals (npty)
Buffer Headers (nbuf)
Inode Cache (ninode)
Shared Memory
Message Buffers
Buffer Cache
Buffer Cache Min
Buffer Cache Max
DNLC Cache
however, lsof is more powerful in querying. see man lsof for all available options.
regards
yogeeraj