Monitoring the output of 'top' command on hourly basis.
I need to capture the following data on an hourly basis through cronjob scheduling:-
1. load averages
2. Total no. of processes.
3. CPU state
4. Memory
5. Top 3 process details.
All the above information is available through the command 'top'. But here we need to automate the same and save it in a log file for the purpose of monitoring the server performance.
Please find the below data which exactly I need to capture:-
Request you to please provide some idea or any automation script how the above activity can be performed.
Thank you all in advance.
---------- Post updated at 11:06 PM ---------- Previous update was at 10:54 PM ----------
Sorry for not mentioning, the requirement is for Solaris 10 environment.
Dear All,
I created a small script to get the CPU, GIS usage etc automatically. However when i run this script manually its working , but when i run through cronjob i am not getting any output.
Can anyone please help me on this. I am using SuseLinux.
Thank you in advance.
#!/bin/sh
{... (2 Replies)
Hi,
I am trying to calculate avg response time on hourly basis from the log file which has millions of records.
As of now I am trying with creating temp file which will have lines with unique id and start time and end time and after that another script will run on this temp file to... (7 Replies)
Hi..
I need to run the script on hourly basis.
How do I write the crontab on hourly basis i.e, 9:00, 10:00.....22:00.. 23:00 hours
Please let me know if the below is correct one for crontab on hourly basis.
00 * * * * ksh myscript.ksh > /dev/null
Regards,
John (3 Replies)
Hi All,
In the output of TOP command in my unix system, i monitored that some process has utilization more than 100% even some process has 4000% utilisation.
Please help me understand how it is possible to show more than 100% utilization.
Please see the screenshot below:... (2 Replies)
Hi,
I have to upload a file test_201105281100.txt to a ftp location.
The files will be created on hourly basis like test_201105281100.txt, test_201105281200.txt & so on.
After a file is uploaded successfully, I need to rename the file as test_201105281100.success & if it is not uploaded... (11 Replies)
Hello all,
I've been woking on Solaris and Linux (Red Hat) so far but now I've inherited an HP-UX system and having minor issues with syntax...Appreciate if you could help me out here..
1) I'm trying to sort the output of the top command in HP-UX 11.11 by pressing O (capital O) after typing... (2 Replies)
dear all,
pls help on this script..
i have many files which will be created every mins in particular directory.
i want to grep a particular string from only for unique hour files.
from the below code i want to grep a string from only 9th hour files .
Ex files:
-rw-r--r-- 1 root ... (5 Replies)
Hi all,
Very new to shell scripting so appreciate some help!
There is a process count that I need to monitor, I have the AIX command that gives this value and I've cleaned it up with grep/awk so it only spits out the value I'm interested in:
echo "psc -i 10050 -s RELOAD_SERVICE" | tmadmin... (14 Replies)