Sponsored Content
Operating Systems SCO Command to View Processor Usage Post 303018365 by jgt on Monday 4th of June 2018 05:38:32 PM
Old 06-04-2018
Code:
sar -u 1 10

parameter 1 is interval in seconds, parameter 2 is number to times to report.

or
Code:
ps -A -o "pid=" -o "pcpu=" |awk '$2 > 5 {print $1 " " $2}' | sort -r +1

to list processes in descending order of cpu usage.
This User Gave Thanks to jgt For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I see the processor usage in Unix??

Could anybody tell me which command I should use to see how many percentage or something from the processor is used by various programs? Thanx in Advance! Erik:D (4 Replies)
Discussion started by: Erik Rooijmans
4 Replies

2. UNIX for Dummies Questions & Answers

view page command?

Hi All, When I run a command on any shell, many times the output is longer than the screen can hold, so I only can see parts of the output. Is there a command that will show me page by page the results of each command? Thanks, Jared (3 Replies)
Discussion started by: JaredsNew
3 Replies

3. UNIX for Dummies Questions & Answers

command to view ports being used

Is there a command that will show me all ports being used? I thought maybe the "lsof" command would show me, but I'm not seeing anything. Thanks, Jeff (2 Replies)
Discussion started by: lawadm1
2 Replies

4. AIX

LPAR processor/virtual processor settings

Question is on setting of Physical and Virtual processors for LPARs to make proper use of virtualization capabilities. Environment is a 8-way p570 with 4 LPARs. lparVIO1 and lparVIO2: AIX 5300-04-01 Mode/Type= Shared-SMT/Capped Minimum Processors= 0.10 Desired Processors= 0.50 Maximum... (1 Reply)
Discussion started by: guttew
1 Replies

5. Solaris

OBP command to enable/disable a processor

Hello experts.. How can i enable or disable a processor from OBP(OK prompt)? Thanks in advance... (8 Replies)
Discussion started by: younus_syed
8 Replies

6. HP-UX

View command was typed

Hello All, I Am A New Member To This Group. Could you show me how to view all command was typed the same Redhat. Every I type arrow up and down to show the command was type but nothing to see. I must type it again. it is very slow. Thanks hoavn (4 Replies)
Discussion started by: hoavn
4 Replies

7. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

8. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

9. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

10. UNIX for Dummies Questions & Answers

Can I view an 'at' command?

Hi, One of our users has loads of jobs scheduled. When I do at -l I get a long list of tasks which end in .a Is there anyway I can view what these commands will do? Also, What's the relationship between the 'at' function and the crontab? I can't see any entries in crontab....Cheers (4 Replies)
Discussion started by: Grueben
4 Replies
netusage(1)						    BSD General Commands Manual 					       netusage(1)

NAME
netusage -- Display traffic usage statistics about the network SYNOPSIS
netusage [--help] netusage commands [arguments ...] DESCRIPTION
The netusage program interfaces with symptomsd to display and manage network traffic usage statistics. As additional feature of this tool allows for looking up an application or process name using a Mach-O UUID or a PID. NETWORK STATISTICS COMMANDS
The following commands are used to provide different representations of network traffic usage statistics collected on the system. --all-traffic [-p] [-r] [-n name] [-s sortorder] [-d importfile] [-e exportfile] [--unitize] [--compact] [--interactive] [--interval seconds] Display a table listing the total ingress and egress network traffic usage for each application or process categorized by interface. A timestamp of when the first network traffic was observed is also shown. By default, only applications will be shown unless the -p flag is provided. -p Show a list that includes the combination of applications and processes. -r Force a database refresh before showing the list. -n name Only show the application or process matching name. -s sortorder Sort the list according the following available sort orders: t Sort by total network usage. (default) c Sort by cellular interface usage. w Sort by wi-fi interface usage. i Sort by wired interface usage. a Sort by awdl interface usage. e Sort by expensive interface usage. -d importfile Show a traffic usage comparison between the current values and the contents of the file at importfile. -e exportfile Save the current traffic usage values into exportfile. --unitize Show the table values in unitized format (eg. KB/MB/GB). --compact When showing a traffic usage comparison, only list the entries whose values have changed. --interactive Show a traffic usage table that periodically refresh and can be viewed interactively. When an update occurs, the usage value for the application or process that generated network traffic will appear emphasized. You can use the following com- mands to interact with the table. q Quit p Toggles the values between showing raw bytes and unitized format s Change the sort order of the columns r Redraw the screen h Show help Arrow Keys Scroll the list --interval seconds Set the periodic refresh interval to the specified number of seconds. The minimum value is 5 seconds, and the default interval is 15 seconds. (Only valid in interactive mode) MANAGEMENT COMMANDS
These commands are used to manage and reset the collected network traffic usage statistics. --reset-entry [-p] [-n name] Reset the network traffic usage statistics stored for a single entry. Use the -n flag (and optionally the -p flag) to specify the name of the entry. --unitize name Specify the name of the application to reset the network usage statistics. -p Specify a process name instead of an application name. --reset-all Reset the network traffic usage statistics for all the stored entries. OTHER COMMANDS
These are optional utility commands that are available to look up applications or processes. --resolve-uuid uuid Resolve the given mach-O uuid into an application identifier. --resolve-pid pid Resolve the given pid into an application identifier. Darwin May 31, 2019 Darwin
All times are GMT -4. The time now is 05:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy