The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Process Monitoring Script Help rdc69 Shell Programming and Scripting 0 08-30-2006 07:55 PM
monitoring script gfhgfnhhn UNIX for Advanced & Expert Users 1 07-14-2006 01:10 PM
Job monitoring script Love High Level Programming 1 06-13-2006 10:56 AM
CPU monitoring script alpha_manic UNIX for Advanced & Expert Users 4 08-25-2005 12:08 PM
monitoring script legato UNIX for Dummies Questions & Answers 3 03-21-2005 07:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-26-2007
manoj.solaris manoj.solaris is offline
Registered User
  
 

Join Date: May 2007
Posts: 93
Question Monitoring Script

Hi,

I want to write a script that will monitor cpu,mem usage and disk usage for entire day and data will be redirected to file,
  #2 (permalink)  
Old 07-26-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
What about sar? Do you have that enabled on your server? If not, enable sar. This is how you could do it.
  #3 (permalink)  
Old 07-26-2007
manoj.solaris manoj.solaris is offline
Registered User
  
 

Join Date: May 2007
Posts: 93
Monitoring Script

Quote:
Originally Posted by blowtorch View Post
What about sar? Do you have that enabled on your server? If not, enable sar. This is how you could do it.
Thanks for your quick response,But I want that it should display disk usage,
in disk logical name for example c0t0d0s0 usage and if another disk is there it should show,and swap usage also,in proper format means inone script all the things should be displayed and cpu usage which process is taking more resources of cpu like in top,
  #4 (permalink)  
Old 07-27-2007
ggr ggr is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 20
If u r working on Solaris 8 and above, look into kstat and its man pages and write a script to retrieve information on a regular basis.

example:

kstat -n system_pages
// gives info on memory and swap.

kstat -n cpu_info0
//gives info on CPU 0 on your system.

Well, you get the idea.

-GGR
  #5 (permalink)  
Old 07-27-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,323
In general, good monitoring tools :

Quote:
[root@t1000 /]# ls -la /usr/bin/*stat
-r-xr-xr-x 1 root bin 18608 Jan 22 2005 /usr/bin/busstat
lrwxrwxrwx 1 root root 29 Mar 17 2006 /usr/bin/cachefsstat -> ../lib/fs/cachefs/cachefsstat
-r-xr-xr-x 1 root bin 19032 Jan 22 2005 /usr/bin/ctstat
-r-xr-xr-x 1 root bin 45252 Jan 22 2005 /usr/bin/iostat
-r-xr-xr-x 1 root bin 5543 Jan 21 2005 /usr/bin/kstat
-r-s--x--x 1 root lp 27496 Jan 22 2005 /usr/bin/lpstat
-r-xr-xr-x 1 root bin 36732 Mar 17 2005 /usr/bin/mpstat
-r-xr-xr-x 1 root bin 75268 Feb 10 2006 /usr/bin/netstat
-r-xr-xr-x 1 root bin 28464 Jan 22 2005 /usr/bin/nfsstat
-r-xr-xr-x 1 root bin 27600 Jan 22 2005 /usr/bin/poolstat
-r-xr-xr-x 62 root bin 10044 Jan 22 2005 /usr/bin/prstat
-r-xr-xr-x 1 root bin 24796 Jan 22 2005 /usr/bin/rcapstat
-r-s--x--x 1 uucp uucp 64292 Jan 22 2005 /usr/bin/uustat
-r-xr-xr-x 1 root bin 45188 Jan 22 2005 /usr/bin/vmstat
-r-xr-xr-x 1 root bin 201628 Jan 16 2002 /usr/bin/wnnstat
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 12:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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