The Affected CI (Configuration Item) list in ServiceNow is populated with relevant computers from the Remediation Plan (RP) in JetPatch. This ensures accurate association of endpoints (EPs) to CIs during change request creation.
Process Overview
-
Matching Logic:
- JetPatch matches endpoints (EPs) from the RP with CIs in the ServiceNow
cmdb_ci
table. - Matching Criteria:
- Name-based matching: Enabled by default.
- IP-based matching: Optional.
- Only matched CIs are added to the Affected CI list in ServiceNow.
- JetPatch matches endpoints (EPs) from the RP with CIs in the ServiceNow
-
Data Fetching:
- JetPatch queries the
cmdb_ci
table using grouped patterns (nameSTARTSWITH
) for affected EPs. - Optimization:
- CI data is fetched in chunks to reduce unnecessary data retrieval.
- Fetched CIs are cached locally for one hour to improve performance.
- JetPatch queries the
-
Association:
- Once the relevant CIs are fetched and matched, their
sys_ids
are associated with the change request using the following API call:
- Once the relevant CIs are fetched and matched, their
Configuration Properties and Example
Default Scenario:
Populate the Affected CI list using CI names only, fetching data from the cmdb_ci_server
table, while using hostnames (not full DNS names) for matching.
Default Configuration:
Key Notes
-
Matching:
- Ensure names in JetPatch match CI names in ServiceNow for successful population.
- Enable IP matching (
serviceNow.ci.compare-ip=true
) if CI names are inconsistent or not unique.
-
Performance:
- Adjust
serviceNow.cmdb_ci.sysparm_limit
to optimize query efficiency and performance, balancing result size and API limitations.
- Adjust
-
Customization:
- Use
serviceNow.cmdb_ci.sysparm_query
to filter results.
Example:
- Use
Result
Only matched CIs are added to the Affected CI list, ensuring an accurate and relevant representation of impacted computers in ServiceNow. This improves visibility and helps streamline change request approvals and actions.
Comments
0 comments
Please sign in to leave a comment.