System Activity Report


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
System Activity Report

Hi team ,

I am working on monitoring the solaris machine utilization continously with shell script without using any thirdparty software. I stuck at below commands which are limited to 1000000000 seconds.

CPU Utilization
Code:
sar -u 1 1000000000

Disk Utilization
Code:
sar -d 1 1000000000

Memory Utilization
Code:
sar -r 1 1000000000

Could you please help with continous monitoring commands to use for shell script to save them into file for future anlaysis.

Moderator's Comments:
Mod Comment Use code tags, see PM, thanks.

Last edited by zaxxon; 03-05-2014 at 07:35 AM..
# 2  
Ummm, 1,000,000,000 is a lot of seconds.

60 * 60 * 24 = 86,400 seconds per day.
86,400 * 365 = 31,536,000 seconds per year
so it's
315,536,000 seconds per decade

1,000,000,000 seconds is over 31 years. You should reboot your systems at least once a decade anyway.
# 3  
But if any server could survive three decades of non-interrupted use, it would be a Solaris server!
This User Gave Thanks to Scott For This Post:
# 5  
There are built in scripts for sar continus monitoring and rotation.

Check out output of crontab -l sys
It should look like (commented) :
Code:
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

Be sure to prepare filesystem /var/adm/sa with sufficient space for 7 days (default rotation of sar files)

Check out the documentation for your desired intervals (minute, 5 minutes or alike)

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
system activity and information data
ajayyadavmca
Hi all, i need to collect all system activities data(processes running, disk details, memory, etc), system logs and things related. i heard of cfg2html but its not available for my CentOS distro(i may need to install separately but thats not what i wana do). i can use sar for syatem...... Red Hat
1
Red Hat
Strange system activity no matter what I try
justgoogleit
When I choose to encrypt my drive during a Linux install, it encryps it, but I receive errors in dmesg and in ~/.xsessions-errors during use. The first error is in dmesg where it sometimes shows errors writing to the encypted device. The second error is in ~/.xsessions-errors with an error about...... UNIX for Dummies Questions & Answers
0
UNIX for Dummies Questions & Answers
System activity
gnanadurai_it
Hi, I want to find program's file read,write for a particular time.For example i am executing an application called test1, this will get input from some parameter files(file1,file2,file3) and it will write to some files(file4,file5), so i want to execute one program which will capture these...... AIX
3
AIX
mksysb and system activity
samsa1mi
Hello, With AIX 5.3 is it possible to run a mksysb with users logged into the system? The users are accessing a database app that runs on a separate physical disk than the system files. Does this even matter? Thanks... UNIX for Dummies Questions & Answers
1
UNIX for Dummies Questions & Answers