Sponsored Content
Operating Systems Solaris Monitoring the output of 'top' command on hourly basis. Post 302346851 by asalman.qazi on Monday 24th of August 2009 08:06:16 AM
Old 08-24-2009
Probably you can write a cron job which updates a log file as

top >> monitor.log

schedule it to run every 5 min or desired frequency.

This must help
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Grabbing value from command output and monitoring for changes

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)
Discussion started by: monty77
14 Replies

2. Shell Programming and Scripting

how to grep string from hourly basis files

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)
Discussion started by: steve2216
5 Replies

3. HP-UX

Sorting top command output in HP_UX 11.11

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)
Discussion started by: luft
2 Replies

4. Shell Programming and Scripting

FTP a file on Hourly basis

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)
Discussion started by: SunilB2011
11 Replies

5. Shell Programming and Scripting

Capturing first output from 'top'-likes command

Is this a stupid code?? top > top.out & sleep 2 kill %1 cat top.out Thanks, (6 Replies)
Discussion started by: Shawn, Lee
6 Replies

6. UNIX for Advanced & Expert Users

Conflicts in the output of TOP command

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)
Discussion started by: anand2308
2 Replies

7. Shell Programming and Scripting

Crontab on hourly basis

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)
Discussion started by: scriptscript
3 Replies

8. Shell Programming and Scripting

Calculate avg response time on hourly basis

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)
Discussion started by: random_thoughts
7 Replies

9. UNIX for Dummies Questions & Answers

Top Command Output is not coming via Cronjob

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)
Discussion started by: Nitin Kapoor
2 Replies
uptime(1)						      General Commands Manual							 uptime(1)

NAME
uptime, w - show how long system has been up and/or who is logged in and what they are doing SYNOPSIS
[user] [pset_list]] [user] [pset_list]] DESCRIPTION
prints the current time, the length of time the system has been up, the number of users logged on to the system, and the average number of jobs in the run queue over the last 1, 5, and 15 minutes for the active processors. is linked to and prints the same output as displaying a summary of the current activity on the system. Options and recognize the following options: Print the current time, the length of time the system has been up, and the number of users logged on to the system in the first line of the output. The average number of jobs in the core over the last 1, 5, and 15 minutes for the active processors is also printed. When used with the option, the load averages for the processor sets (psets) are calculated on a core basis. Suppress the first line and the heading line. This option should not be used with the option. This option assumes the use of the option to Use long output. This option assumes the use of the option to Print the current time, the length of time the system has been up, and the number of users logged on to the system in the first line of the output. The load averages over the last 1, 5, and 15 minutes for the processor sets (psets) given in the command line, pset_list, are displayed in the subsequent lines. If no arguments are given, the load averages are displayed for all the psets in the system. If pset id of an empty pset is given in the command line, a corresponding message will be displayed. If the kernel does not have the pset capability, gives an error. The option cannot be used along with other options except Use the short form of output for displaying terminal information. The terminal name is abbreviated, and the login time and CPU times are suppressed. Print only the first line describing the overall state of the system. This is the default for the command. Print a summary of the current activity on the system for each user. This is the default for the command. EXAMPLES
The command: produces text resembling the following: depending upon the current status of the system. The command: gives the load average of all the psets in the system. If 0, 94, 95, and 97 are existing psets in the system, the output will look like the following: The command: gives output which looks like the following if 94 and 95 are valid pset ids: The command: gives the load average of the system, producing output resembling the following: The command: gives the load average of all the psets in the system. If 0 and 1 are psets in the system, the output will look like the following: AUTHOR
was developed by the University of California, Berkeley and HP. SEE ALSO
mpctl(2), pset_ctl(2). uptime(1)
All times are GMT -4. The time now is 04:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy