This chapter discusses the following topics:
Performance Reporting Manager enables you to create your own custom reports. You use one of the report templates provided to create custom reports. The correct template is displayed automatically for you, depending upon the report request type selected from the menu. The report templates contain similar options, but there are differences between them. For more information about the fields contained in the report templates, see Custom Report Templates.
Unlike a standard report in which the report output format is predefined, you can specify the output format when creating a custom report. The possible output options are a table, a line graph, a bar chart, or a pie chart. At the time you complete the report template, you are offered only the valid output options for the type of report request you are creating. For more information about report format options, see Report Output Format Options.
Before creating a custom report, you should be familiar with how Performance Reporting Manager collects the data that is polled for reports. For more information, see Data Collection.
You can add a new category and subcategory to the report hierarchy. You can then place your custom reports under a category and subcategory you create. Or, you can choose to place the reports under one of the predefined categories. For more information about the predefined options, see Categories and Subcategories.
New categories are added to the bottom of the list in the hierarchy view. Each new subcategory is added to the bottom of its corresponding category.
Start Report Manager
For the detailed steps, see To Start Report Manager.
From the File menu, choose New, then select Category.
The Create Category dialog box appears. It contains two text fields.
Type the new category name in the Name field.
(Optional) Type the description of the category in the Description field.
Click OK to finish adding the category to the hierarchy view.
When the category name is selected, the name and description appear in the Report Category summary in the right pane.
Start Report Manager.
For the detailed steps, see To Start Report Manager.
From the File menu, choose New, then select Subcategory.
The Create Subcategory dialog box appears. It contains two text fields.
Select the desired Category from the drop-down menu.
Type the new subcategory name in the Name field.
(Optional) Add a description of the subcategory in the Description field.
The new subcategory name will appear at the second level in the hierarchy view, beneath the category name.
Click OK to finishing adding the subcategory.
When the subcategory name is selected, the name and description appear in the Report Subcategory summary in the right pane.
A report template guides you through the choices when creating your own custom report. The report fields displayed are predefined in the report template according to the type of report you want. A saved report template containing the options you selected for your custom report is called a report request. All custom report requests are based on one of the report templates that are included with Performance Reporting Manager.
Small differences exist between the report templates, depending upon the type of request you want to create: a custom performance report or a custom system configuration report. Performance reports are based on properties that yield numerical results and that change over time. The data returned can be plotted over time in a graph, for example. This graph can then be used to determine trends in performance of the machines. The system configuration reports provide data regarding the details of the hardware and software configuration of the host.
When you choose a report request from the File menu in Report Manager, a report template is automatically launched in a dialog box. The template displayed depends upon the type of report request you choose. The following report templates are available:
New Performance Report Request: Use to create reports that provide information regarding system resource utilization, such as, the amount of disk space or processor used.
System Report Request: Use to create reports that provide basic information on system capacity, such as, the number of disks or processors on a host.
Hardware Configuration Report Request: Use to create reports that provide detailed information on the host. For example, the report might detail the specifics about each processor or each disk on a host.
Package Report Request: Use to create reports that provide information about the software packages installed on a host.
Patch Report Request: Use to create reports that provide information about the software patches installed on a host.
Alarms Report Request: Use to create reports that provide information about the status of alarms on a host.
The fields possible in a report template are described below. They are grouped according to those that can be found in both types of reports, those that are found only in performance reports, and those that are found only in system configuration reports.
Many fields in the report template can be found in either a custom performance template or a custom system configuration template. You build all your custom report requests by completing the fields in the report template. Your selections define the nature and scope of the report. Not all fields will be found in every report template. The template automatically launched after your selection from the File menu in Report Manager determines what fields are displayed. The fields that can be common to both performance and system configuration reports are:
Select the desired category from the Category drop-down menu. New categories you create also appear in the drop-down menu. This field determines where in the hierarchy view the saved report request appears.
The Subcategory field is optional. Select the desired subcategory from the drop-down menu. New subcategories you create also appear in the drop-down menu. If used, the report request appears under the subcategory in the hierarchy view.
Provide the name of the report request. This name appears as the title in the report request. The name also appears both in the report summary and the hierarchy views in Report Manager.
The Report Title field is optional. This field provides a description of the report that then appears as the title. This description appears in the report summary of Report Manager. The report summary is displayed when the name of the report is selected in the hierarchy view.
Select the data properties to be included in the report in the Data Properties field. Click Edit to make your selections from the Property Chooser dialog box. There are some differences between the Property Chooser dialog box that is displayed in the performance or system configuration report templates. The correct dialog box automatically launches for you. Only the data properties currently being logged on the hosts will return data. For more information, see Data Properties.
Specify the hosts and corresponding port that you want to include in the report. Only agent machines that are linked to the server context will return data. If no port is specified for a host, the default port 161 is assigned. The choices are:
Enter Hosts at Run Time: You must provide each host and corresponding port when you run the report request. A separate dialog box for this purpose is displayed at runtime. The host and corresponding port are not saved to the report request, and can be changed each time the report is run.
Select Hosts From Main Console Window (Then Click Update): The hosts and corresponding ports you provide are saved to the report request. Each time the report is run, data is returned regarding the hosts originally saved. To select the desired hosts, go to the Sun Management Center 3.0 Main Console window. Make your selections either by using Shift+Click, or by drawing a lasso around the icons that represent the desired hosts. Click Update in the report template to add the hosts.
Enter Hosts as Hostname:Port (Comma Delimited): If selected, you enter the host and the corresponding port. The proper form is to use a comma delimiter without a space. You can add as many valid hosts and ports as wanted.
Choose the desired format of the report from the Output Mode drop-down menu. The available options given depend on the type of report request you are creating. The possible options are:
Line Graph
Bar Chart
Pie Chart
Tabular
For more information about the report formats available, see Report Output Format Options.
The Customize field is optional. You can further customize the look of a graph report through the Customize dialog box. This option is available for Line Graph or Bar Chart report formats only. For more information, see Customizing the Appearance of Reports.
There are three report fields that are found only in a performance report template. These report fields are:
The other fields possible for this type of report are as described in Common Custom Report Fields.
The Function field controls the type of data that appears in the report. Select the type of data you want from the drop-down menu . For more information about how data is collected, see Data Collection. The choices are:
Raw: If this choice is selected, the raw data logged on the agent machine is returned. Raw data is logged according to the time interval specified in the Property Logging Setting dialog box for each data property. The Raw option is available only for these standard time ranges: Last 4 Hours, Last 24 Hours, Last 3 Days, and Real Time. If the Raw option is chosen for a custom time range, a maximum of three days of raw data is available.
Maximum: The maximum value of the most granular level of data available in the database is returned.
Average: The average value of the most granular level of data available in the database is returned.
Minimum: The minimum value of the most granular level of data available in the database is returned.
The time the report spans is selected here. The choices for a time range are:
Standard: Select a predefined time range from the drop-down menu. Choose from the following time ranges:
Last 4 Hours: The range starts from the current hour to minus four hours.
Last 24 Hours: The range starts from the current hour to minus 24 hours.
Last 3 Days: The range starts from 12:00 a.m. three days before the current date to 11:59 p.m. the day before the current date.
Last 7 Days: The range starts from 12:00 a.m. seven days before the current date to 11:59 p.m. the day before the current date.
Last Calendar Week: The range starts from 12:00 a.m. Sunday of the previous week to 11:59 p.m. of the following Saturday.
Last Calendar Month: The range starts from 12:00 a.m. of the first day of the last month to 11:59 p.m. of the last day of the last month.
Real Time: The range starts from the current day and time and goes forward. This option is only available when the Function selection is Raw.
Custom: Use this option to define your own time range. First click Edit, then type a Date and Time Range in the Time Range dialog box. The From and To fields contain drop-down menus from which you make your selections.
If you selected Line Graph or Bar Chart as the output mode, you must choose the desired orientation of the graphs in the report. The options are:
One Host, Many Data Properties: A separate graph for each host included in the report is displayed. Each graph shows all the data properties for that host. Each data property is shown as a separate line or bar on the graph. Each line or bar is distinguished by either its color, or its symbol, or both. The legend for the graph identifies which color or symbol is being used for each data property in the report. The host name is listed at the top of each graph.
One Data Property, Many Hosts: A separate graph for each data property included in the report is displayed. Each graph includes a separate line or bar for every host in the report. Each line is distinguished by either its color, or its symbols, or both. The legend for the graph identifies which color or symbol is being used for each host in the report. The data property is listed at the top of each graph.
All Hosts and Data Properties on One Graph: Only one graph is displayed. All hosts and data properties in the report are included. Each line or bar is distinguished by either its color, or its symbol, or both. The legend for the graph identifies which color or symbol is being used to identify each host and data property in the report.
The report template for creating a custom system configuration report has two fields that are only found in this type of report.
The other fields possible for this type of report are as described in Common Custom Report Fields.
Use the Level of Detail field to determine the amount of detail wanted in the report. Accept either the default, Detailed, or select Summary. If you select Summary, the following information is returned:
Alarm Reports: The number of alarms
Hardware Reports: The number of hosts
Packages Reports: The number of packages
Patch Reports: The number of patches
The Filter field is optional. Click Set Filter to select the desired filter options from the Filter dialog box. Use the drop-down menus to build an expression that creates the report filter wanted. The filtering options are case sensitive. For more information, see Filtering Reports.
You can create your own custom report request by one of the following methods:
Copying a standard report request, and then modifying the predefined report options in the copy
Completing the desired report options in a new report request template
Once a custom report request is saved after using either option, you can later make changes by using the Modify dialog box. You cannot modify a standard report request directly, as the report options are predefined and cannot be changed.
Start Report Manager.
For more information, see To Start Report Manager.
Select the name of the standard report request from the hierarchy view.
From the Edit menu, choose Copy.
Select the category or subcategory name from the hierarchy view under which you want the new report icon to appear.
From the Edit menu, choose Paste.
The copied report icon appears at the bottom of the selected category or subcategory. The name of the report is “Untitled” followed by a number.
From the Edit menu, choose Modify.
A report request dialog box appears with the options of the original standard report already completed.
Type the new name of the report request in the Report Request field.
Make the desired changes to the report option. Click OK to save your changes.
The new report name replaces “Untitled” in the hierarchy view.
Start Report Manager.
For the detailed steps, see To Start Report Manager.
From the File menu, choose New, then select the desired report request type.
The report template specific to the type of report that you selected opens.
Complete the fields of the report template.
For more information about the report template options, see Custom Report Templates.
(Optional) Click Preview to see a preview of the report.
A preview of the report output is displayed in a new window. The data that has already been collected is used for a report preview.
Click OK to save the report request.
The report request is now saved. The title of the report request appears, with the corresponding report format icon, in the hierarchy view under the category and subcategory selected. This report request is available until it is deleted.
Start Report Manager.
For the detailed steps, see To Start Report Manager.
Select the name of the report request you want to modify.
From the Edit menu, choose Modify.
The Modify dialog box opens. The fields contain the current values for Data Properties, Time Range, Filter, and Selected Hosts.
Make your changes to the fields.
Click OK to save your changes to the report request.
The following figure is a sample of a New Performance Report Request template.
The ability to log data is included with the Sun Management Center 3.0 base product. Performance Reporting Manager uses this logged data in the reports. Only data that is logged to the circular history.log file on the agent machine is collected for reporting purposes. Data cannot be included in any report until logging of the data property is first enabled. Certain data properties are automatically logged for you. If a property is not being logged, you will not receive any data for that property until logging is first enabled.
You can use the Data Availability option to determine if a property is already being logged on the machine. To either enable or disable the logging of a data property, you can use the history logging capability of Sun Management Center 3.0 or use the group logging task. For more information about history logging, see Sun Management Center 3.0 User's Guide. For more information about the group logging task, see Group Logging
If you receive a No Data Found error message when running a report, first check to see if the data property is being logged on the agent machine specified in your report.
Only those data properties that are being logged on the agent machine can return data for reports. The Data Availability dialog box enables you to check what properties are currently being logged. The information is updated every hour. If you have just installed Performance Reporting Manager, the data might take an hour to first appear in the Data Availability dialog box.
The data properties being logged are used for performance reports only.
From the Report Manager file menu, choose Data, and then select Data Availability.
The Data Availability dialog box opens. All agent machines for which data was collected in the last hour appear in the Hosts Collecting Data drop-down menu.
Select the desired host name from the drop-down menu.
The table expands to list all the data properties collected for that host. You can resize the columns by dragging the cell borders in the column title. You can sort the table by double-clicking the column headings.
Click Close to dismiss the dialog box.
The following figure shows a sample of the Data Availability dialog box. A note at the bottom of the dialog box reminds you that data in this table refreshes within an hour.
When creating your custom report request, the report template requires that you select the data properties to include in the report.
The addition of certain properties requires that you provide an entry for either the module instance or property instance, or both. The module instance is needed only for multi-instance modules. Examples of a multi-instance module includes File Monitoring or Directory Monitoring. Each instance can be used for monitoring a different file or directory. The property instance typically refers to an instance name given to the property being logged. For example, in a machine with four CPUs, the CPUs can be numbered 0, 1, 2, and 3. If you are only interested in the performance of CPU number 3, you specify 3 as the property instance for the CPU property included in the report. You specify All as the property instance when you want a report that includes all instances that exist for the host. For more information, see Sun Management Center 3.0 User's Guide.
From the Data Properties field in the New Report Request template, click Edit.
The Property Chooser dialog box appears. It contains two panes. The left pane is titled Properties to Choose From. The right pane is titled Selected Properties.
Expand the hierarchy view in the left pane by clicking the key symbols.
The data properties are located at the third level of the hierarchy.
Select the desired property, and click Add.
The property moves to the right pane. If required, the Module Instance or Specific Property Index fields become active in the lower left-hand corner of the dialog box.
(Optional) Provide the Module Instance and Specific Property Index in their respective text fields.
If module is a multiple instance module, provide the module instance wanted.
When you finish adding all desired properties, click OK.
The Property Chooser dialog box closes. Continue completing the report template.
The figure below shows a sample of the Property Chooser dialog box for performance reports.
When you want to log the same data properties on a group of agent machines, you can use the Group Operation features of the Premier Management Applications add-on to Sun Management Center 3.0. Instead of adding the same set of data properties to be logged on each machine individually, you can save time with the group logging feature. For more information about all the Group Operation features, see Sun Management Center 3.0 User's Guide.
From the Sun Management Center 3.0 Main Console File menu, choose Tools, then select Group Operation.
The Group Operation dialog box appears.
From the File menu, choose New, and then choose Task.
The Create/Edit Tasks dialog box appears.
Create a new group task by typing the task name in the text field, and then pressing Return.
If needed, for more information see Sun Management Center 3.0 User's Guide.
From the Type drop-down list, select Data Logging.
Click Add Properties.
The Property Chooser dialog box appears.
From the hierarchy view in the left panel, select the data properties one at a time, and click Add after each one.
The data properties are contained in the third-level in the hierarchy. Each data property added moves to the right pane.
Click OK when done.
The data properties are added to the group task.
From the Create/Edit Task dialog box, select the data property.
If you added more than one data property to the group task, you must do this one at a time.
Click Logging Setting.
The Property Logging Setting dialog box launches.
If the box next to Logging does not have a check mark, add one.
Logging for the data property is now enabled.
Type the desired time interval, in seconds, in the Interval text field.
The default is 300 seconds. The data property is logged at the interval specified.
Click OK to save the task and close the dialog box.
From the Sun Management Center 3.0 Main Console File menu, choose Tools, then select Group Operation.
The Group Operation dialog box appears.
Launch the Create/Edit Groups dialog box.
From the dialog box, select objects from the domain.
From the Sun Management Center 3.0 Main Console, select the names of the servers, and then click Update.
You can select the server names either by using Shift+Click, or by drawing a lasso around each individually, or as a consecutive group.
Click OK to save the server names.
From the Group Operations window, type the Name, then select the group name from the drop-down list.
The group name is the one you provided when you created the group task.
Select the group task name from the drop-down list.
The group task name is the one you provided when you created the group task.
Click the Save/Run icon from the menu.
This is the last icon on the menu. Logging of the data properties chosen earlier starts.
You can further modify the type of information that your custom report contains by using the Filter dialog box. The Filter dialog box is an option contained in some of the report templates and is used when creating a custom system configuration report request.
The Filter dialog box contains several drop-down menus and text fields that are used to build an expression. This expression defines the report parameters to include the filter criteria wanted. The expression operators provided are common to the C programming language. Filter options are case sensitive.
For example, you can create a custom system configuration report request for a report that contains data only on machines that are running the Solaris 7 or Solaris 8 operating environments. To do this, you would create the following expression using the Filter dialog box:
Operating System = SunOS 5.7 OR Operating System = SunOS 5.8 |
As another example, you can create a custom system configuration report request for a report that includes only the machines that have the SyMON packages installed. To do this, you would create the following expression:
Category contains SyMON |
In order to include only those machines that have the Sun Management Center 3.0 SyMon packages installed, you can modify the above example this way:
Category contains SyMON AND Version contains 3.0 |
Some custom report templates have an option that enables you to customize the appearance of your Line Graph, Bar Chart, and Pie Chart reports. You can either add these customizing features when you are initially creating the report request, or you can later modify the report request to include the desired appearance customization.
After you click the Customize button in the report template, the Customize Graph dialog box appears. The dialog box contains the following three tabs, from which you can specify these appearance changes:
Titles & Legend: You can add a Footer and change the Legend Text. From the drop-down menus, you can choose the placement of the Footer or Legend on the graph. You can change the X-Axis and Y-Axis Labels using the text fields.
Line Attributes: Use the All Lines options to change the appearance of the Line Thickness or Line Style, and Symbol Size. Use the drop-down menus to make your selections. Use the Specific Line options to change the appearance of a line you select from the drop-down menu.
Size & Spacing: Use the text fields to control the size of the graph width and height, or the X-Axis and Y-Axis scale. You enable grid lines on the graph by selecting Show Grid. The value range for grid spacing is 0 to 100.
Some of the options in the Customize Graph dialog box are not available for Pie Chart reports.
Once you have finished selecting all the customizing options, click OK to dismiss the dialog box. You must also click OK from the report template for these options to be saved to the report request.
Performance Reporting Manager enables you to combine two or more existing report requests to create a new report request. The resulting report request is called a composite report request. To create a composite report request, you can use existing standard or custom report requests, or a combination of both types. A composite report request combines the options of the report requests used. You specify a new name for the composite report request, and then the report is identified in the hierarchy view under the category and subcategory selected.
If the host name is not defined in any report request, you cannot select that request to become part of a composite report request. For example, you cannot select any report request for which the option Add Hosts at Runtime was specified.
You cannot delete or rename any existing standard or custom report request once it is referenced by a composite report request, unless you first delete the composite report request.
From the Report Manager File menu, choose New, then select Composite Request Request.
The Composite Report Request dialog box opens.
Select the desired category and subcategory from the drop-down menus, and type a name for the report in the Name field.
Select the desired reports from the left pane. Use the Add button to move the reports to the right pane that is titled Selected Report Requests.
Use the Remove button if you select a report you do not want. The Remove All button will clear all selections from the right pane.
(Optional) Click Preview to see a preview of the report.
A preview of the report output is displayed in a new window. The data that has already been collected is used for a preview of a report request.
Click OK to save the report request.
The composite report request is now saved. The title of the composite report request appears in the hierarchy view under the category and subcategory selected. This report is available until it is deleted.