Skip to ContentSkip to Footer
Start of content
- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Useful Commands....
General
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
Go to solution
Topic Options
- 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
- Email to a Friend
- Report Inappropriate Content
06-06-2006 10:55 AM
06-06-2006 10:55 AM
I am new to HPUX 11i and I am doing some porting of a C based application from Win32 to HPUX and I am looking for some commands that help me monitor the applications usage and efficiency. I am looking for the proper commands that allow me to -
Monitor # of files open
Monitor # of pipes open
Monitor Process statistics (ie Proc usage, memory usage).
Monitor # of files open
Monitor # of pipes open
Monitor Process statistics (ie Proc usage, memory usage).
Keep it Simple!~
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-06-2006 11:50 AM
06-06-2006 11:50 AM
Solution
Hi Scott:
For monitoring open files, use 'fuser' (part of the core Unix command set, or download and install 'lsof':
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.77/
For monitoring process statistics, use 'glance' if it is installed on your server. You can also use 'ps'. Arm the UNIX95 option and you can create your own list of data to be returned. For instance, to sort processes' memory use in descending amounts:
# UNIX95= ps -e -o vsz -o pid -o args |sort -k1nr | more
Note that a space (blank) follows the equal sign after 'UNIX95'. This sets the variable *only* for the duration of the command line.
See the manpages for 'fuser' and 'ps' for more information. Manpages also come with 'lsof' if you install it.
Lastly, you can find up-to-date, complete manpages along with other documentation here:
http://www.docs.hp.com/
Regards!
...JRF...
For monitoring open files, use 'fuser' (part of the core Unix command set, or download and install 'lsof':
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.77/
For monitoring process statistics, use 'glance' if it is installed on your server. You can also use 'ps'. Arm the UNIX95 option and you can create your own list of data to be returned. For instance, to sort processes' memory use in descending amounts:
# UNIX95= ps -e -o vsz -o pid -o args |sort -k1nr | more
Note that a space (blank) follows the equal sign after 'UNIX95'. This sets the variable *only* for the duration of the command line.
See the manpages for 'fuser' and 'ps' for more information. Manpages also come with 'lsof' if you install it.
Lastly, you can find up-to-date, complete manpages along with other documentation here:
http://www.docs.hp.com/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-06-2006 11:58 AM
06-06-2006 11:58 AM
Re: Useful Commands....
lsof # open files / pipes(?) (sockets)?
lsof -p pid (processes
lsof -u uid (user
lsof /dir
lsof -c daemon
lsof -i tcp:23 (socket
lsof -i udp:123 (socket
lsof download link: http://gatekeep.cs.utah.edu/
sar -u 5 5 (*cpu
vmstat 5 5 (* virtual mem
sar -b 5 5 (* cache
sar -d 5 5 (* disk
swapinfo -tam (* swap
UNIX95= ps -e -o ruser,pid
kmeminfo
Support Fatherhood - Stop Family Law
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
End of content
United States
Hewlett Packard Enterprise International
Communities
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP