Updating custom KMs
This section provides detailed steps to make your custom Knowledge Modules (KMs) compliant to BMC ProactiveNet Performance Management or TrueSight Infrastructure Management.
Note
The following update instructions are applicable to PATROL Agent version 9.5 and later.
Before you begin
Ensure that you have upgraded your Classic Console to version 3.6.00.01 of BMC PATROL Console for Windows.
To update a custom KM
- Update all KM files with release and revision number. For details, see KM directives.
- Update all the Knowledge Module List of files with meta data information. For details, see Creating a Knowledge Module List.
- Open the PATROL Console in the Developer mode, and load your custom KM.
- For all applicable Application Classes:
- Click the KM tab.
- Expand Application Classes to view all the loaded application classes.
- Right-click on the application class name and click Properties.
- Click the Metadata tab.
Ensure you provide all the following details:
Items Description Sample Display Name The name of the instance as displayed on the BMC ProactiveNet Performance Management Operations console or TrueSight Infrastructure Management administrator console. NT_OS application class is named Windows Operating System. Monitor Type This defines the behavior of the application class. MONITOR, CONTAINER, etc. Monitor Category BMC ProactiveNet Performance Management or TrueSight Infrastructure Management uses the Monitor category specification for categorization. System, Database, Application, etc. CDM Class Name The name of the CDM (Common Data Model) class that corresponds to an application class. BMC_FileSystem, BMC_ComputerSystem, etc. Config Variables Additional configuration parameters for an instance. Ensure that all parameter names are unique. osType, osVersion, etc.
For additional details, refer Static and Dynamic Metadata.To enable Monitoring Policy configuration, add configuration metadata in the Input tab. For example, see Example of input tab details for an Application Class.
- Save the KM.
- For all applicable Parameters:
- Click the KM tab in the PATROL Console in Developer mode.
- Expand Application Classes to view all the loaded application classes.
- Expand an application class to view all Global and Local entries.
- Expand the Global > Parameters to view all parameters in the application class.
- Right-click the parameter name and click on Properties.
- Click the Metadata tab.
- Select all the applicable metadata options. For details, refer Static metadata.
- Save the KM.
- For all applicable Menu commands:
- Click the KM tab in the PATROL Console in Developer mode.
- Expand Application Classes to view all the loaded application classes.
- Expand an application class to view all Global and Local entries.
- Expand the Global > Commands.
Expand Menu Commands to view all menu commands for an application class.
Note
Menu command ID is the unique ID of the command in the context of the KM. ID is either auto-generated or you can manually provide it as an input. PATROL Console displays Menu command for an application class only if Menu ID is available for Menu commands. It sends request with Menu ID to PATROL Agent as a function call. This function should be present in one of these libraries: <KMName>_<Auto Generated ID>.lib (auto-generated) or <KMName>_<Menu ID>.lib (manually generated). executes the request to create a PSL command as requires <APPNAME>_menu; <menuid>();.
Right-click on the menu command and click on Properties.
Note
Ensure that you take a back up of the Command text before generating an automated ID.
- In the General tab, perform the following to generate the ID:
- For auto-generated ID:
- Select the Generate Auto ID option and click Yes.
The auto generated id is displayed in the ID field and a function with the same name is created in the Command text. - Click the Command tab.
- Write the logic of the menu in the Command text.
Click Apply.
Note
When you select the auto-generated ID option, a psl file is created in the PATROL_CACHE\psl directory by PATROL Console.
The naming convention used is "<KMName>_<Auto Generated ID>.psl". For example,NT_OS_MenuCmdFunc_8087042345.psl
- If you want to have inputs taken from a user through the BMC ProactiveNet Performance Management Operations console or TrueSight Infrastructure Management administrator console, write the input metadata in the Input tab. For example, see Example of input tab details for a Menu command.
Ensure that Annotate option is not checked for input to work.
- Select the Generate Auto ID option and click Yes.
- For manually generated ID:
- Select the Generate Auto ID option and click Yes. Now, deselect the the Generate Auto ID option to add Menu ID manually.
Enter Menu ID.
Create a PSL library with naming convention as "<KMName>_<Menu ID>.lib" and export the PSL function with same name as Menu ID.
Note
When you manually provide an ID, PATROL Console does not create a library and you must create a PSL library.
- Click the Command tab.
Write the logic of the menu in the Command text to be executed by PATROL Console.
- For auto-generated ID:
- Click Apply.
- From the TrueSight console, if you want to execute a menu command automatically on the ALARM state:
- Select the Annotate option in the General tab. Ensure that no inputs are used for the menu command.
- Click Apply.
- The menu command will appear in the Event Rules list on the BPPM server.
- Associate this event rule to an event trigger. In this case the ALARM state trigger.
- Save the KM.
- Create a bundle with the newly created <ApplicationClassName>.xml file, menu command library files, and the XSD shipped with PATROL Console.
Newly created .xml, and .km files (for example: ntos.xml, ntos.km) will be saved under PATROL cache directory c:\users\user name\patrol\knowledge. Copy these files from here to PATROL_HOME\lib\knowledge directory
Integrating with TrueSight Capacity Optimization
When integrating custom KMs with TrueSight Capacity Optimization, make the following changes:
- Designate the EntityType parameter as configVariable in the KM application class XML.
The EntityType configVariable is required to set all instances that convert to devices. - Use the PSL script to set EntityType values per instance.
To import custom monitor types and set thresholds on the TrueSight console
Do the following:
- Log on to the PATROL Agent host computer on which the custom monitor types are created.
- Create the following folder structure.
%PATROL_HOME%\..\Uninstall\tools\pcig\Patrol3\lib\knowledge
- Copy the custom monitor types from
%PATROL_HOME%\lib\knowledge
and paste them to the folder that you have created. Open the command prompt and go to the pcig folder (
%PATROL_HOME%\..\Uninstall\tools\pcig
), and enter the following command to create a package to import it to the TrueSight console:#Syntax pcig -p product -r release -s source_path [-l os_list] [-t title] [-c] #Example pcig-64.exe -p zxc -s Patrol3 -r 2018.15.6 -t “ZXC Custom Monitor types”
Parameter description
-p <product name in format of [A-Za-z0-9]>: Specify the name of the output ppf file without the .ppf file extension. Maximum supported length is 10 characters.
-s <source_path>: Specify the path to package member files. The files under <source_path> are copied to <dest_path>/products/<product_name> and gzipped, and their respective entries are added under the files section of the ppf. The ppf and cat file are placed in <dest_path>/Products/<product_name>, and a copy of the ppf is also placed in <dest_path>/Index/.
-r <release>: Specify the version (vv.mm.rr) of the package.
-l <os_list>: Enter a comma-separated list of OS types (possible values: AIX,SOLARIS,HP,LINUX,WINDOWS,ALL,ALL-UNIX).
-t <title>: Specify the product name.
-c : This option prints the copyright details.
- Log on to the TrueSight console and go to Administration > Repository.
- Select Installation component, click Import and select Single solution.
- Click Browse to select the newly created package from the pcig folder and click Import.
- Once the package is imported, go to Configuration > Infrastructure Policies.
- Select Server Threshold and click Add Server Threshold to set server threshold of the custom monitor types.
- Select Monitoring Solution as your server and select the newly created package version from the list.
In the Monitor type list, you can see all the custom monitor types that are imported. You can see the attributes of the selected monitor type. - Set the threshold values for the required attributes and save the policy.
Comments
Log in or register to comment.