CMDB Coverage scheduled jobs
Summarize
Summary of CMDB Coverage scheduled jobs
CMDB Coverage uses a set of scheduled jobs to identify stale and missing data related to IP addresses within the CMDB. These jobs help ensure accurate and up-to-date IP address information by processing historical data, monitoring real-time changes, and identifying gaps in discovery coverage. ServiceNow customers can view and manage these scheduled jobs via thesysautoscript.listinterface.
Show less
Key Scheduled Jobs and Their Functions
- PopulateBinaryTable: A one-time initialization job that converts historical IPv4 addresses into a binary format for faster matching, storing them in the Binary IP Address table. IPv6 addresses are processed without conversion.
- InitializeAllocatedIPTable: Runs after PopulateBinaryTable to process historical allocated IP address records. It updates the
cimatchstatusattribute to indicate matching status with Configuration Items (CIs) and creates relationships between discovered CIs and allocated IP addresses in the CMDB. - ProcessStagingTable: Processes new and updated IP address records detected by the DB Listener in real time. It updates the
cimatchstatusattribute in the Allocated IP Address table and supports monitoring of configured CI tables via IP Coverage CI Table Configuration. - SubnetUsageCount: A daily job that tracks subnet usage by counting free, allocated, and reserved IP addresses based on the
cimatchstatusattribute for each subnet. - Find missing IPAM ips in discovery: Compares IPAM-managed networks, subnets, and allocated IP addresses against configured discovery ranges and schedules to identify coverage gaps. It records these gaps in the Discovery schedule gap table for operational review.
Practical Benefits for ServiceNow Customers
- Enables efficient processing of historical IP address data to improve CMDB accuracy.
- Provides real-time detection and updating of IP address changes, ensuring continuous data freshness without relying on polling.
- Highlights discovery gaps between IPAM data and discovery schedules, helping customers identify and address stale or missing IP address ranges.
- Supports subnet resource management through daily usage tracking, aiding capacity planning and operational decisions.
CMDB Coverage uses scheduled jobs to identify stale and missing data.
To view the list of scheduled jobs, enter sysauto_script.list in the navigation filter.
PopulateBinaryTable
The PopulateBinaryTable scheduled job is a one-time initialization job that processes the historical records that existed before the CMDB Coverage was configured. All historical IP addresses (IPv4 addresses) are converted into binary format for fast matching. The records are added to the Binary IP Address [sn_cmdb_ip_cov_binary_ip_address] table. IPv6 addresses are processed as is.
InitializeAllocatedIPTable
- Processes the historical records in the Allocated IP Address [cmdb_ci_allocated_ip_address] table.
- Updates the value of the ci_match_status attribute for the records in the Allocated IP Address [cmdb_ci_allocated_ip_address] table.
- Creates relationships between the discovered CIs and the records in the Allocated IP Address [cmdb_ci_allocated_ip_address] table. That is, corresponding records are created in the CMDB [cmdb_ci_rel] table.
- none: No CI matches the IP address, which indicates a discovery gap.
- single: Exactly one CI matches the IP address.
- multiple: Multiple CIs match the IP address.
- not_evaluated: The record isn’t processed yet.
ProcessStagingTable
The ProcessStagingTable scheduled job processes the records that are created by the DB Listener after the CMDB Coverage application is configured.
You can configure the list of tables that the DB Listener should monitor in the IP Coverage CI Table Configuration [sn_cmdb_ip_cov_ci_config] table. The Validate IP Coverage CI Config business rule validates the records that are created in the IP Coverage CI Table Configuration [sn_cmdb_ip_cov_ci_config] table to verify that only the IP address field is updated.
- Detects real-time changes in IP address information.
- Monitors the tables that are configured in the IP Coverage CI Table Configuration [sn_cmdb_ip_cov_ci_config] table.
- Identifies new and updated IP addresses and creates corresponding records in the IP Address Staging [sn_cmdb_ip_cov_ip_staging] table.
- Pushes changes to the Allocated IP Address [cmdb_ci_allocated_ip_address] table.
The ProcessStagingTable scheduled job identifies the new records that were added by the DB Listener to the IP Address Staging [sn_cmdb_ip_cov_ip_staging] table. Subsequently, the ci_match_status attribute in the Allocated IP Address [cmdb_ci_allocated_ip_address] table is updated for all new records.
SubnetUsageCount
This daily scheduled job tracks subnet usage. Based on the value of the ci_match_status attribute in the Allocated IP Address [cmdb_ci_allocated_ip_address] table, the SubnetUsageCount scheduled job counts the number of free IP addresses, allocated IP addresses, and reserved IP addresses for each subnet.
Find missing IPAM ips in discovery
IPAM-managed networks, subnets, and allocated IP addresses are managed separately from the configured discovery ranges and schedules of organizations. This often leads to stale and missing data (such as IP address ranges that are never scanned) in the CMDB.
The Find missing IPAM ips in discovery scheduled job compares the IPAM data (networks, subnets, and allocated IP addresses) and the configured discovery ranges and schedules (IPv4 and IPv6 addresses) to identify gaps in IP address coverage, such as missing IPv4 address ranges and the number of IPAM IP addresses that don't have a discovery schedule. The data about gaps in IP address coverage is added to the Discovery schedule gap [sn_cmdb_ip_cov_discovery_schedule_gap] table, and is then available for operational review.