0

Hi guys,

I need a command on solaris 10 to show how much cpu is bein used in % terms but more specific than sar i need it down to 0.0% if that makes sense.

Basically im tryin to find out how much cpu is being used say 25.5% and then i want to look at the processes that are using that 25.5%.

1
Contributor
2
Replies
3
Views
8 Years
Discussion Span
Last Post by chris5126
0

please note i cant use top or prstat i need something i can use within a shell script!

0

got it!

/usr/ucb/ps -aux | awk '{print $3,$2,$1,$11}' | grep -v 0.0 | sed 1d

This shows a list of the processes taking up cpu time in the format %cpu PID user command if anyone is interested!!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.