Subversion Repositories saptoolbox

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

Module: Available
=================
SAP keeps a registry of its (un)available status.
This is an example of the content of available.log (raw data):

Unavailable 18.08.2016 17:31:41 - 19.08.2016 12:15:33
Available   19.08.2016 12:16:33 - 19.08.2016 12:27:33
Unavailable 19.08.2016 12:28:22 - 19.08.2016 12:31:24
Available   19.08.2016 12:32:24 - 19.08.2016 12:33:24
Unavailable 19.08.2016 12:34:19 - 19.08.2016 12:34:24
Available   19.08.2016 12:35:24 - 19.08.2016 12:38:24
Unavailable 19.08.2016 12:38:58 - 19.08.2016 12:39:06
Available   19.08.2016 12:39:07 - 19.08.2016 12:43:07
Unavailable 19.08.2016 12:44:07 - 25.08.2016 10:08:09
Unavailable 01.09.2016 00:28:01 - 01.09.2016 08:35:27
Available   01.09.2016 08:36:27 - 01.09.2016 08:50:27
Unavailable 01.09.2016 08:51:27 - 01.09.2016 08:52:43
Available   01.09.2016 08:53:43 - 02.09.2016 08:23:58
Unavailable 02.09.2016 08:24:58 - 02.09.2016 08:25:36
Available   02.09.2016 08:26:36 - 02.09.2016 16:12:37
Unavailable 02.09.2016 16:12:50 - 02.09.2016 16:28:55
Unavailable 03.09.2016 00:30:34 - 05.09.2016 08:40:33
Available   05.09.2016 08:41:33 - 05.09.2016 08:56:33
Unavailable 05.09.2016 08:57:21 - 05.09.2016 08:59:05

This script extract the fields from each line (registry) and save them
as structured data:

['Unavailable', '29.09.2017', '00:25:03', '-', '29.09.2017', '02:24:51']
['Available', '', '', '29.09.2017', '02:25:51', '-', '06.10.2017', '01:53:06']

Then, get stats and, build the report.

Disclaimer:
There is no public info about available.log file contents format so I do
my best to extract records and group them.

This report try to be as accurate as possible but, please, doublecheck
results before use them.