Creating a report with filters and calculations
The following example demonstrates how to retrieve the jobs and job runs that took more than one hour to run in the last 365 days.
Domain | Report name | Features used |
---|---|---|
Job Activity | Jobs and job runs taking more one hour to run in the last 365 days |
|
You add the Division
function so that the time taken to execute a job or job run is displayed in hours, not in seconds.
To create a report with filters 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 Job Activity folder and drag the following query items to the right pane:
- Job/Job Name
- Job Runs/Job Run Start Time
- Job Runs/Time To Execute (Sec)
- Job Activity Calculations/# Servers Attempted
- Select the Job Run Start Time column and click Filter on the toolbar.
- From the Operation list, select Last number of days.
- In the Number of days before today field, type 365, and click OK.
- Select the Time To Execute (Sec) column and click Calculate on the toolbar.
- From the Operation type list, select Arithmetic.
- From the Operation list, select / (division).
- Verify that in the Order list, Time To Execute (Sec) / <Number> is selected.
- In the Number field, type 3600.
- In the New item name field, enter Time To Execute (Hr) as the new column name.
- Click Insert.
A new column, Time To Execute (Hr), is added. - Select the Time To Execute (Hr) column and click Filter on the toolbar.
- In the Filter dialog box, in the From field, type 1, and click OK.
- In the Combine filters dialog box, click OK.
- Select the Time To Execute (Sec) column, and click Delete on the toolbar.
- Click the Run Report link.
- Click the Run with All Data link.
- Save the report.
The following figure shows a sample report, which is created by using the preceding steps:
Related topics
Query Studio
Creating reports with Query Studio
Domain-specific report examples
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.