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%.

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

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!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.