This appendix describes the commands and data you can use to generate registered events in ServiceNow that are queued to ServiceNow Event Management. These events can trigger actions in PowerFlow, such as specifying one or more CIs for monitoring, or putting a CI into maintenance.
This appendix is recommended for advanced ServiceNow administrators.
These events use the gs.eventQueue command, using the following format:
eventQueue(String name, Object instance, String parm1, String parm2)
You can use examples found in the "ScienceLogic ServiceNow Integration (Catalog UI)" update set in ServiceNow to help you customize the gs.eventQueue command to specify which ServiceNow events can trigger PowerFlow actions. You will need to install this update set in ServiceNow.
Ask your ScienceLogic contact for access to this update set.
Catalog Item Events
The following events are available through the "ScienceLogic ServiceNow Integration (Catalog UI)" update set in ServiceNow.
x_sclo_scilogic.device_monitoring
This event takes the selected Configuration Items in ServiceNow, files a catalog request using the template selected by the user, and submits the catalog request.
Trigger
Custom requirement supplied by ScienceLogic implementation or the Customer directly.
Command
gs.eventQueue('x_sclo_scilogic.device_monitoring', region, ip_list.toString(), region.getUniqueValue() + "," + region.x_sclo_scilogic_region + "," + silo_template);
Event Fields
Field | Description |
x_sclo_scilogic.device_monitoring | Unique name of the event. |
region |
The table to which the event applies. |
ip_list.toString() | Parm1: The IP, or a comma-separated list of IP addresses, that is pulled from the ip_address field on the cmdb_ci table. |
getCompany.getUniqueValue(), silo_template | Parm2: List of three requirements that the sys_id of the company associated with the Configuration Item and the catalog template selected through the user interface action. |
Example
The UI action / UI page is available through the "ScienceLogic ServiceNow Integration (Catalog UI Action)" update set.
x_sclo_scilogic.remove_monitoring
This action takes the selected Configuration Item or Items and submits a request through the ServiceNow service catalog for each Configuration Item.
Trigger
Custom requirement supplied by ScienceLogic implementation or the Customer directly.
Command
gs.eventQueue('x_sclo_scilogic.remove_monitoring',current, current.getUniqueValue(), current.company);
Event Fields
Field | Description |
x_sclo_scilogic.remove_monitoring | Unique name of the event. |
current |
The table to which the event applies. |
current.getUniqueValue() | Parm1: The sys_id of the Configuration Item that needs to be removed |
current.company); | Parm2: The sys_id of the company that is associated with the Configuration Item. |
Example
The UI action / UI page is available through the "ScienceLogic ServiceNow Integration (Catalog UI Action)" update set.