HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Useful Commands....
Operating System - HP-UX
1827809
Members
1961
Online
109969
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
- 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
- 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
- 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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP