System Activity Report


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring System Activity Report
# 1  
Old 03-05-2014
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 08:35 AM..
# 2  
Old 03-05-2014
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  
Old 03-05-2014
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:
# 4  
Old 03-06-2014
Thank you Perderabo, seams this is the only option, I was thinking on other methods of collecting data.
# 5  
Old 03-06-2014
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 Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Red Hat

RHEL Linux process activity monitoring tool from windows 7 system

I have 2 RHEL 5.9 system where customized applications are running. These 2 servers are with in a network (LAN) with each other.One application in say Server 1 can talk to another application in server 2 and vice versa. The applications are exchanging data among each other. Recently I am... (0 Replies)
Discussion started by: Anjan Ganguly
0 Replies

2. Red Hat

system activity and information data

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... (1 Reply)
Discussion started by: ajayyadavmca
1 Replies

3. UNIX for Dummies Questions & Answers

Strange system activity no matter what I try

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... (0 Replies)
Discussion started by: justgoogleit
0 Replies

4. Shell Programming and Scripting

How to monitor system activity while executing tests

I need to monitor system activity (RAM, CPU usage, execution time) while running some tests on solaris, linux and aix and save the output. Please advise whether there's a utility available for these systems? How can time the execution of the command? Thanks! (2 Replies)
Discussion started by: smovla
2 Replies

5. AIX

System activity

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... (3 Replies)
Discussion started by: gnanadurai_it
3 Replies

6. UNIX for Dummies Questions & Answers

mksysb and system activity

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 (1 Reply)
Discussion started by: samsa1mi
1 Replies
Login or Register to Ask a Question