- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TOP Command , Batch and Threads modes
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
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
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
10-21-2017 07:49 PM
10-21-2017 07:49 PM
TOP Command , Batch and Threads modes
I'm looking the way to collect some information using a script where have the command top with multiples options but some of those options are no available in HP-UX, What can I do to make a workaround?.
The top command in the script.
top -b -n 1 -H -p $1
which displays
-b = Batch-mode operation: Starts top in Batch mode, which could be useful for sending output from top to other programs or to a file. In this mode, top will not accept input and runs until the iterations limit you've set with the `-n' command-line option or until killed.
-n = Number-of-iterations: limit as -n number Specifies the maximum number of iterations or frames, the top should produce before ending.
-H = Threads-mode operation: Instructs top to display individual threads. Without this command-line option, a summation of all threads in each process is shown. Later this can be changed with the `H' interactive command. This is important as it shows individual thread CPU utilization for the input, which I can't find in the link you shared.
I only find -n and -p are existing for hp-ux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2017 09:15 PM
10-21-2017 09:15 PM
Re: TOP Command , Batch and Threads modes
> I only find -n and -p are existing for hp-ux.
Which versions of "top" are you looking at on which systems?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2017 08:11 AM
10-22-2017 08:11 AM
Re: TOP Command , Batch and Threads modes
Hi,
OS HP-UX B.11.31
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2017 04:30 PM - edited 10-22-2017 04:31 PM
10-22-2017 04:30 PM - edited 10-22-2017 04:31 PM
Re: TOP Command , Batch and Threads modes
The latest patch/revision for top is PHCO_42966 which has a 2012 date. There have apparently been no changes since then. The top program doesn't have any industry standard for implementation so referencing a Linux or Solaris or AIX man page for options isn't useful for HP-UX.
The tool you need in order to monitor threads in HP-UX is Glance which is a priced product for the fundamental operating environment (FOE). It is currently included in the larger environments such as MCOE, VSOE and DCOE.