Command Validation Tasks form for pattern-based discovery
Summarize
Summary of Command Validation Tasks form for pattern-based discovery
The Command Validation Tasks form in ServiceNow Yokohama release enables you to create or modify tasks for testing pattern commands used in pattern-based discovery. This form helps verify if the commands execute correctly, addressing issues such as failed discovery commands. It is essential for ensuring reliable discovery operations and accurate configuration item (CI) identification.
Show less
Key Fields and Their Purpose
- Number: Automatically generated unique identifier for each validation task.
- MID Server Selection Method: Choose how to select the MID Server for the test:
- Specific MID Server: Manually select a MID Server.
- Automatic MID Selection: Use a MID Server assigned to the target IP range or network, requiring prior MID Server IP range configuration.
- Try All Eligible MID Servers: Test using any available MID Server for the IP range or network, also requiring prior configuration.
- MID Server: Appears if "Specific MID Server" is selected, allowing selection of the particular MID Server.
- Validate All Pattern Commands: Checkbox to validate all commands of a selected pattern simultaneously, simplifying bulk validation.
- OS Class: Specifies the CI class representing the servers on which the validation runs.
- Command Type: Defines the type of command based on server type, such as Shell Command, WMI Query, SNMP Query (Tabular/Scalar), SNMP Walk, or HTTP GET (with Basic Authentication only). This field is visible only if not validating all pattern commands.
- IP Addresses: List of target IP addresses, ranges, or networks for testing commands. Supports comma-separated IPs, hyphenated ranges, and slash notation for networks. Using ranges or networks requires the ParseIPRanges script include installed.
- Commands: Specific commands to test, typically those that previously failed during discovery. You can only select from available commands. This is visible only if not validating all pattern commands.
- Pattern: The name of the pattern whose commands are being validated, visible only when not validating all commands at once.
Practical Benefits for ServiceNow Customers
- Enables targeted testing of discovery pattern commands to troubleshoot and resolve command execution issues.
- Supports flexible MID Server selection methods to match your network and discovery architecture.
- Simplifies validation of all commands associated with a pattern or allows granular testing of specific commands.
- Facilitates command testing across multiple IP addresses, ranges, or networks with automated parsing support.
- Improves reliability and accuracy of pattern-based discovery by verifying command credentials and execution before running full discovery.
Command Validation Tasks form displays the fields that you must fill when you create or modify a task for testing a pattern command.
For more information about testing pattern commands, see Validate commands used in pattern-based discovery.
| Field | Description |
|---|---|
| Number | The task number is automatically created by the system. |
| MID Server Selection Method | Select the relevant method:
|
| MID Server | The MID Server name. This field appears only if Specific MID Server is selected from MID Server Selection Method. |
| Validate All Pattern Commands | The check box for validating all commands used by a specific pattern simultaneously. |
| OS Class | The CI class that represents the servers on which you run this validation task. |
| Command Type | The command type that depends on the kind of the server:
This field is available only when Validate Al Patterns Commands isn't selected. |
| IP Addresses | Any combination of IP v4 Addresses, IP Ranges, or IP networks. For example:
Note: To use IP range or IP network, ensure you have installed the ParseIPRanges script include. For more information, refer to KB1123625: Command Validation Tool. |
| Commands | The commands for which you want to test credentials. Typically, it's a command that discovery process failed to execute. For example, /api/v1/pods?limit=50 or sudo
dmidecode. You can select only commands from the list of available commands. This field is available only when Validate All Patterns Commands isn't selected. |
| Pattern | The name of the pattern for which you want to validate the commands. This field is available only when Validate All Patterns Commands isn't selected. |