OK .. So here's a start
For each Organization in System/ORS/Manage you can set an Org Type
There are already some default ones setup I.e. SLA_Gold , SLA_Silver etc and you can create and add extra ones if needed
ALSO in SD you can define Policies and again there are some defaults already there , also SLA_Gold , SLA_Silver
I can't see if there is any automated link between creating an ORG based Type and an SD Policy .. but the trick here is to create them in both and make sure the names are identical
So once done you have got a SD Policy that defines the hrs , and an Org Type that allows you to assign the Type to Organizations and therefore machines
Now the following SQL query will return the details of SD Coverage for every machine in your system as long as the Policy and Type names have been assigned and match
*****************************************
SELECT kasadmin.SDPolicy.ref, kasadmin.SDHours.ref AS SLACoverage, kasadmin.SDHours.rowDesc, kasadmin.vbo_Organizations_General.ref AS Organization,
dbo.vMachine.agentGuid, dbo.vMachine.machName
FROM kasadmin.SDPolicy INNER JOIN
kasadmin.SDHours ON kasadmin.SDPolicy.sdHoursFK = kasadmin.SDHours.id INNER JOIN
kasadmin.vbo_Organizations_General ON kasadmin.SDPolicy.ref = kasadmin.vbo_Organizations_General.org_type INNER JOIN
kasadmin.organization ON kasadmin.vbo_Organizations_General.id = kasadmin.organization.id INNER JOIN
dbo.machGroup ON kasadmin.organization.orgFK = dbo.machGroup.orgFK INNER JOIN
dbo.vMachine ON dbo.machGroup.reverseName = dbo.vMachine.groupName
**************************************
So with this you can change the query to use within a Agent Procedure , have the query return just the SLACoverage value and then within your Script you could pass the result to some VB or other code to determine if the current date/time is within the SLA Covered period
I'll leave the rest up to you .. but drop me a note if you get stuck
You'll still need to work into this Public holidays etc which is also defined within SD in the table [ksubscribers].[kasadmin].[vbo_SDHoursCovered_Holiday]
So this would probably be a second query in the same script
Cheers
Paul