Generating and simulating payload execution using identification simulation
-
- UpdatedAug 1, 2024
- 5 minutes to read
- Xanadu
- Configuration Management
Identification simulation is a central location for automatically constructing a payload that is guaranteed to be complete and valid. You can then simulate the processing of the payload by the identification and reconciliation engine (IRE) and examine the results before actually submitting it for execution by IRE.
Use identification simulation to construct an input payload, and simulate processing of the payload by IRE. You can then examine the results, adjust identification rules if needed, and re-run the simulation of the updated payload.
- Automatically construct input payload that is based on existing identification rules, hosting and containment rules.
- Simulate execution of a payload (automatically constructed by identification simulation, or manually created).
- Browse payload output and execution log messages for a simulated run.
- Identification simulation does not commit any updates to the CMDB.
- Identification simulation supports simulation of processing payloads that are provided and which contain non-CMDB tables, but doesn't support the generation of such payloads.
Automatically generate payload using identification simulation
Use identification simulation to automatically construct an input payload for a specified class. The constructed payload is complete with any required dependent CIs, correctly structured, and syntactically valid for processing by the identification and reconciliation engine (IRE).
Before you begin
Role required: admin
About this task
The payload that is constructed during identification simulation is for the specified class. For a dependent CI class, you will be prompted for information about all dependencies. After you provide the required details, identification simulation constructs the payload based on your input.
Procedure
What to do next
- Click Run Simulation to simulate processing of the payload by IRE.
- Examine the results of the simulation, fine-tune the payload as needed, and combine with other payloads for other classes as desired. After finalizing the payload, use the createOrUpdateCI() API to execute the payload by IRE which will result in actual updates to the CMDB.
- Click Copy Script to copy the JSON script into the clipboard. You can then paste that script into a third party software or to another screen of the identification simulation.
Simulate payload processing using identification simulation
Use identification simulation to simulate the identification and reconciliation engine (IRE) process of CI identification for an input payload. Provide a valid payload, which was constructed using identification simulation or that was created manually.
Before you begin
Procedure
What to do next
- Examine the results of the simulation in the results pane, and fine-tune the
payload as needed:
- Click Run #1 to display the Context ID and the Run ID of the simulated run.
- Click the drop down arrow next to Run #1 to
display additional details.
- Input: Displays the payload for the simulation.
- Logs: Displays all the logged messages that IRE generated while simulating processing of the payload, according to the specified logging level.
- Output: Displays the output payload returned by IRE.
- After finalizing the payload, use the createOrUpdateCI() API to execute the payload by IRE which will result in actual updates to the CMDB.
Set logging level for identification simulation
Identification simulation logs each step of a simulated payload processing. You can then examine these run logs to determine if a payload was processed as expected, and if identification rules are effective. You can adjust the level of logging so it is helpful, and so that the amount of messages is not excessive or insufficient.
Before you begin
Procedure
Examine run logs
Identification simulation provides run logs which are generated by Identification and Reconciliation Engine (IRE). You can access these run logs for payload runs, to examine results and for debugging purposes. IRE payload output logs appear in a user friendly format on a central page.
Before you begin
About this task
Also, internal applications that use IRE (such as Discovery) can call an internal API to provide a URL to viewing IRE run logs.
Logging is in the context of a specific run of the identification engine, and you can filter the log list by a specific data source and time range. Up to 1000 run logs that are up to 2 months old are listed, grouped by Context IDs, and run times. You can use the glide.identification_logs.max_run_ids property to modify the 1000 limit.
- Info
- Warn
- Error
- Debug
- DebugVerbose
- DebugObnoxious
Procedure