Sample Compliance report with filters, groups, and calculations
This example demonstrates how to create a Compliance report that shows the percentage rule compliance of servers with the templates for the latest server runs.
Report name | Features used |
---|---|
% Rule compliance of servers for latest server runs |
|
To create a Compliance report with filters, groups, and calculations
- Launch Query Studio from the BMC Decision Support for Server Automation portal.
- Select a package (for example, BladeLogic) from the list of available packages.
- Click the Run Report link.
- Click the Preview with No Data link.
- Click the Insert Data link.
- Open the Compliance folder and drag the following query items to the right pane:
- Compliance Template(Policy)/Template(Policy) Name
- Compliance Server/Server Name
- Compliance Job/Job Name
- Compliance Job/Job Run Start Time
- Compliance Job Run Date/Calendar Date
- To display a date range every time you run the report, apply a filter on the Calender Date column, as follows. You can view the percent compliance results for this date range.
- Select the Calendar Date column and click Filter on the toolbar.
- From the From field, select a date starting from which to view the percent compliance results.
- From the To field, select Latest Date.
- Select the Prompt every time the report runs option.
- Click OK.
- Group the report by the Template(Policy) Name and Server Name columns.
- Select the Job Run Start Time column and click Calculate on the toolbar.
- From the Date field, select the date from which you want to retrieve the latest server runs.
- Verify that in the Order field, the Job Run Start Time - <Date> option is selected.
- Click Insert.
A new column, Job Run Start Time - Date, is added. - Format the Job Run Start Time -Date column as follows:
- Right-click the column and select Format Data.
- From the Category list, select Interval.
- From the Type list, select 1 23:45:12.
- Click OK.
- Apply the Rank calculation on the Job Run Start Time - Date column ,as follows:
- Select the column and click Calculate on the toolbar.
- From the Operation type list, select Analytic.
- From the Operation list, select Rank.
- From the Options field, select the Based on values within each group option, and from the list, select Server Name.
- Click Insert.
A new column, Rank (Job Run Start Time - Date) is added.
- Apply the filter on the Rank (Job Run Start Time - Date) column as follows:
- Select the column and click Filter on the toolbar.
- In the From and To fields, type 1.
- Click OK.
- In the Combine filters dialog box, click OK.
- Open the Compliance folder and drag the following query items to the right pane:
- Compliance Rule Result/Rules Compliant
- Compliance Rule Result/Rules Compliant with Exception
- Compliance Rule Result/Rules Checked
- Apply the addition operation on the Rules Compliant and the Rules Compliant with Exception columns as follows:
- Select the Rules Compliant and the Rules Compliant with Exception columns, and click Calculate on the toolbar.
- Ensure that from the Operation type list, Arithmetic is selected.
- Ensure that from the Operation list, addition is selected.
- Click OK.
A new column, Rules Compliant + Rules Compliant with Exception, is added.
- Apply the Percentage operation on the Rules Compliant + Rules Compliant with Exception and Rules Checked columns.
A new column, % ((Rules Compliant + Rules Compliant with Exception), Rules Checked), is added. - Rename the % ((Rules Compliant + Rules Compliant with Exception), Rules Checked) column as % Compliance.
- Delete the following columns without deleting the associated filters:
- Job Run Start Time - Date
- Rank (Job Run Start Time - Date)
- Calender Date
- Rules Compliant
- Rules Compliant with Exception
- Rules Checked
- Rules Compliant + Rules Compliant with Exception
- Click the Run Report link.
- Click the Run with All Data link.
- Save the report.
The following figure shows a sample Compliance report created by using this procedure:
Related topics
Sample reports demonstrating Query Studio features
Creating reports with Report Studio
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.