Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying CPU Usage

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello, I am looking to create a simple script to display the CPU usage on a current Sun system (simliar to the top command). I tried varations of "ps" without success.

I just need to display the % of cpu time used over a span of say 10 seconds. Kinda like NT\2000 task manager (CPU Usage) but not graphical.

Thanks for your advice,

Michael
 
the 'uptime' command gives you a nice snapshot as well, nowhere near as flexible as SAR - but much easier Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top