cancel
Showing results for 
Search instead for 
Did you mean: 

issue with top command....

Former Member
0 Kudos

Hi,

We have Solaris 9 and I am having an issue when I write the output of top command to a file.

top > top.log

It does write it but it misses the CPU line at the begening. This is because it takes time to refresh when you run it is foreground mode. Is there any way we can write this line to a file along with other data?

Your help will be greately appreciated.

Regards,

Sume

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

"top" is a external command, it's not included in Solaris and was compiled/downloaded from a source.

Try using "prstat" instead.

Markus

Former Member
0 Kudos

Thank you for the reply.

I am looking for CPU and Memory summary information as it is shown in "top".

Is it possible in prstat. I tried but no luck so far. I tried "prstat -a" also but not good. I see differences and I cannot make conclusion. The top almost matches the CPU and memory summary with ST06.

Please let me know if have any idea.

Regards,

SC

markus_doehr2
Active Contributor
0 Kudos

> Is it possible in prstat. I tried but no luck so far. I tried "prstat -a" also but not good. I see differences and I cannot make conclusion. The top almost matches the CPU and memory summary with ST06.

Get a new version of "top":

http://sourceforge.net/projects/unixtop/

Markus

Former Member
0 Kudos

We have 3.8, which is latest.

Regards,

SC

Answers (0)