05-20-2008
Quote:
So if the job starts/started at exactly the same time every day whats stopping you from finding the avg of the above values? Just cut the first fields (use ':' as delimiter). Find the sum. Divide by 60 to find the total minutes. Add up second fields on each line delimited by ':'.
Add the aboves sums and divide my the number of lines to get the avg. Divide by 60 to get the avg time when your script should end.
Very few of the jobs start at the same time every day, but that's not really important.
See my post above (after yours). Looks like we're on the same page now.
Thanks for your input.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have start time as a string like 06:04:01 and end time like 06:05:01
i need do a simple math to get the duration. What is the best way
to do this in Korn Shell scripting? Thanks (2 Replies)
Discussion started by: liux99
2 Replies
2. Shell Programming and Scripting
Hi Team,
I am currently in the process of writing a script which will take a filename in the format
SKADEV.0.db2.NODE0000.CATN0000.20080714231015.001
where the sixth string(with "." as the seperator) is the time stamp of the time of creation of the file.
now here is my issue .
I need to be... (2 Replies)
Discussion started by: Segwar
2 Replies
3. UNIX for Dummies Questions & Answers
I have a file with over 100,000 lines of data with looking to compare times of about 2000 lines to get a total time of a process. The lines of unique data are as follows.
FINER: CacSoapServer:reserveNetworkResource got the sessionID
and
INFO: Created CAC session ID
The command... (5 Replies)
Discussion started by: bpfoster76
5 Replies
4. Shell Programming and Scripting
The date construct in UNIX can be used to calculate when something is finished: date -v+1H displays the time 1 hour from now.
I want to use the same construct in a script, but it is leading to error messages:
echo "Finished at: " `date -v+$durationH`
where $duration is calculated based on input... (3 Replies)
Discussion started by: figaro
3 Replies
5. Shell Programming and Scripting
Hi all;
I'm relatively new to scripting,I am working on a monitoring script.....where in i have to write subroutine
which does the follows:
It will check the time stamp of a file ( Oracle remarchive files) and compare it with existing time.If the time difference happen to be more than 90... (6 Replies)
Discussion started by: maverick_here
6 Replies
6. UNIX for Advanced & Expert Users
how can we identify the task completion time which was initiated by CRON.
we have 1000 of jobs whihc are runing from cron so it is not feasable to edit every cron entry or every script to add the respective code to find teh completion time.
Can some one please provide a inut to find the task... (3 Replies)
Discussion started by: NIMISH AGARWAL
3 Replies
7. Shell Programming and Scripting
Dear users,
I need your support, I have a file like this:
272134.548 6680572.715
272134.545 6680572.711
272134.546 6680572.713
272134.548 6680572.706
272134.545 6680572.721
272134.543 6680572.710
272134.544 6680572.715
272134.543 6680572.705
272134.540 6680572.720
272134.544... (10 Replies)
Discussion started by: Gery
10 Replies
8. Shell Programming and Scripting
hello guys,
I had been to many forums and many topics in this site as well for my question but did not get any solution.
My question is how i can get y'day date with time stamp
today is 20100729103819 and i am looking for output as 20100728103819.
in simple words as we do in oracle sysdate-1... (4 Replies)
Discussion started by: lokaish23
4 Replies
9. Shell Programming and Scripting
Hi Gurus,
I need to get one hour before time is yyyymmddhh format.
ex. date +"%Y%m%d%H" gives 2017052814 but I need 2017052813
Thankx
Please use CODE tags as required by forum rules! (6 Replies)
Discussion started by: nalakaatslt
6 Replies
10. UNIX for Beginners Questions & Answers
i have a file with 2 columns. i want to calculate the average of column 1 based on the values of column 2. here's how the file looks like. i want to calculate the sums of numbers corresponding to 1 and then calculate the average. same for numbers corresponding to zero. any help with a code would... (1 Reply)
Discussion started by: onerokeyz
1 Replies
LEARN ABOUT DEBIAN
torrus_schedulerinfo
TORRUS_SCHEDULERINFO(8) torrus TORRUS_SCHEDULERINFO(8)
NAME
schedulerinfo - Displays extended scheduler tasks information.
SYNOPSIS
torrus schedulerinfo --tree=TREENAME [options...]
DESCRIPTION
This utility displays the extended scheduler tasks information for tree TREENAME on standard output. This might be useful for scheduler
planning and analysis.
OPTIONS
--config
Reports scheduler's configuration. The values are explained below.
Total collector/monitor leaves: N
Total number of datasources being processed by collector or monitor daemon.
Scheduled leaves by type
Torrus supports arbitrary number of collector types, and this report shows how many datasources belong to every type. Currently
the monitor leaves are not divided into types.
Least common period: N seconds
The report below shows how the tasks are distributed across the time line, and the least common period shows the period of this
time line.
Tasks execution timeline
This report tells which task and how many datasources are involved in each task startup event, and how these events are
dispersed across the time. The column Interval shows the time interval from each task execution event to the next event on the
timeline.
--runtime
Reports scheduler's runtime statistics, such as running cycle times, late starts etc. The meaning of the output values is as follows.
Values that have zero values are usually not printed.
Task: Name, Period: N seconds, Offset: M seconds
Each scheduler task is characterized by its name (usually Collector or Monitor), period, and timeoffset. Fore example, if
period is set to 300 seconds, and offset is 14 seconds, then the task would be executed at 00:00:14, 00:05:14, 00:10:14, and so
on for every hour in a day.
N running cycles passed
How many times the task was executed since last reset. The counter is normally reset after torrus_compilexml(8) successfully
compiles the configuration.
N late starts
How many times the task has started with a delay from its normal schedule.
N too long runs
How many times the task execution time was longer than its period.
N overrun periods
How many periods have been missed because of too long executions.
N missed periods
How many periods were missed because of any reason (such as other tasks delaying).
Min, Max, Average, Exp Average
The time values are displayed in four columns: Mimimum, Maximum and Average values since last reset, and Exponential decay
value, which may be interpreted as the average for last several values. With defaults defined in torrus-config.pl, 95% of the
average is calculated from last 3 values.
Running Time
How long the task executes each period.
Late Start
How long the task start was delayed.
Too Long
How much time the too long run took.
RRD Queue
In a multithreaded environment, the RRD files are writen in a background thread. This value shows the length of the RRD update
queue at the beginning of each update cycle.
--help
Displays a help message.
SEE ALSO
torrus(8), torrus_compilexml(8)
NOTES
See more documentation at Torrus home page: http://torrus.org
AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com>
torrus 2.03 2013-07-26 TORRUS_SCHEDULERINFO(8)