The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File System Check using shell script !!! csaha Shell Programming and Scripting 8 03-17-2009 08:23 AM
system performance Frank2004 Linux 5 12-18-2007 11:34 PM
Script for system performance vastare Shell Programming and Scripting 2 01-19-2006 11:51 AM
/client_local/ and system performance Kanu77 UNIX for Dummies Questions & Answers 1 06-17-2002 07:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-05-2008
jayaramanit jayaramanit is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 28
Script to check solaris system performance

Hi,

I need a script which runs in the solaris system and check the system performance eg .CPU usage, and send an alert when an thresold level is
reached.

kindly help me on this.
  #2 (permalink)  
Old 06-05-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Question Please be more specific on what you are looking for...

I can do the following:
Code:
> top -d3 | grep "CPU states:" | tail -1
CPU states: 93.7% idle,  1.3% user,  5.0% kernel,  0.0% iowait,  0.0% swap
Are you looking for something like that "93.7% idle"?
  #3 (permalink)  
Old 06-06-2008
jayaramanit jayaramanit is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 28
we dont have top utility enabled in our system, please help me using some command like prstat.......
  #4 (permalink)  
Old 06-06-2008
prvnrk prvnrk is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 135
Get TOP at

ftp://ftp.sunfreeware.com/pub/freewa...9-x86-local.gz

for solaris 10:

ftp://ftp.sunfreeware.com/pub/freewa...sparc-local.gz
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0