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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to capture CPU states from Unix TOP

Status
Not open for further replies.

suhaimi

Technical User
Aug 3, 2001
71
US
Hi all,
How do I capture "CPU states" of Unix TOP in to a file???
'top > myfile' will get all the details except "CPU states".

Any imput???

Rgds,
Suhaimi
 
I found the issue of top in Solaris for you. You need to do it twice to get the CPU state. That means the first output of top which missed the CPU state but it will appear in next cycle.

So the solution is:
top -s 1 -d 2 > top.out
Then you will see the CPU state.

tikual
 
Thanks so very much Tikual. It works perfectly.

Rgds,
Suhaimi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top