Custom operations that are created in the Operations Center console, allow for the customization of right-click operations on CI elements. These operations can:
Open a URL in a CMS pop-up window.
Open a URL in a new browser window.
Retrieve and display the contents from a URL.
Perform an action using client-side javascript.
To facilitate the creation of operations that can modify the CMS user interface, the CMS client-side JavaScript allows for the export of a public interface to certain API functionality. Similar to the window top-level handle that a browser JavaScript depends on, the CMS API exposes a mycmdb object on the window global object. The mycmdb object contains methods to allow an extension writer the ability to programmatically control the CMS user interface. For more information about the CMS API, see the jsdocs located at /OperationsCenter_CMS_install_path/webapps/noc/cms/docs/JS API.
To create a custom operation for CI elements:
From the
pane, navigate to the > > element.Right-click
and select .The Create Operation dialog box displays.
For additional information about creating an operation, see Modifying Element and Alarm Menus in the Operations Center 5.5 Server Configuration Guide.
Specify the definition name in the
field.Specify the custom operation text in the
field.In the
drop-down list, select , the specify the CMS-related class name in the text area.In the
drop-down list, select .In the
drop-down list, select one of the following:URL Popup: to open a URL in a CMS pop-up window.
URL Frame: to open a URL in a new browser window.
HTML Result: to retrieve and display the contents from a URL.
Web Script: to perform an action using client-side javascript.
In the
text area, type the command that the menu operation is to execute.Click A
to save the custom operation.