Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As I would like to know the script or command by which I can get below mentioned o/ps from all solaris servers remotely, without login into all servers. Note : the below o/p is from top command.
load averages: 1.14, 1.07, 0.91 16:03:53
87 processes: 85 sleeping, 2 on cpu
CPU states: 58.2% idle, 32.6% user, 9.1% kernel, 0.0% iowait, 0.0% swap
Memory: 2048M real, 367M free, 390M swap in use, 2076M swap free
Thanks
Rajan
Last edited by rajaniyer123; 08-02-2008 at 03:25 PM.
Why not use something like nagios instead? If you really must go the remote script route and you are using solaris 8 or above, use prstat instead, its footprint is much lighter.
OK fair enough. Still, I wouldn't bother with top on a solaris box as it'll further skew any stats you get back. Also, he's probably got the system activity reporter service running in the background anyway so no harm in using sar too, e.g.
Code:
prstat -t 1 1 | grep -v ^$; sar -r 1 1
If you're running sol 10 then you can get even better, more specific results using dtrace.
Anyway, what do you do with all this ascii once you've collected it? Save yourself some time in the long run and install some decent monitoring software. You'll also find that historical data and decent graphing tools will help you catch problems before they become and issue. My two pennies worth anyway...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.