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's pattern-based discovery enables you to create or modify tasks specifically designed to test pattern commands. This is essential for validating that discovery commands execute correctly during the discovery process, helping to troubleshoot and ensure accurate data collection from target servers.
Show less
Key Features
- Task Number: Automatically generated by the system for each validation task.
- MID Server Selection Method: Choose how the MID Server is selected for the test:
- Specific MID Server: Manually specify a MID Server.
- Automatic MID Selection: Uses a MID Server assigned to the IP range or network configured for discovery.
- Try All Eligible MID Servers: Attempts the test using any MID Server available for the IP range or network.
- MID Server: Selectable only if Specific MID Server is chosen, allowing precise control over the server used.
- Validate All Pattern Commands: Option to validate all commands for a specific pattern simultaneously, simplifying multi-command testing.
- OS Class: Specifies the Configuration Item (CI) class representing the target servers for the validation task.
- Command Type: Defines the type of command to run, based on server type, including Shell Command, WMI Query, SNMP Query (Tabular and Scalar), SNMP Walk, and HTTP GET (for Basic Authentication).
- IP Addresses: Accepts individual IPv4 addresses, ranges, or networks (e.g., 10.196.39.12, 1.1.1.1-1.1.1.100, 1.1.1.1/28). Requires the ParseIPRanges script include for range or network input.
- Commands: Lists specific commands to test credentials on target servers, useful when the discovery process fails to execute certain commands. This is selectable only when not validating all pattern commands.
- Pattern: The pattern name for which commands are validated, also applicable only when not validating all commands.
Practical Application for ServiceNow Customers
Using this form, ServiceNow customers can systematically test and validate discovery commands linked to their pattern-based discovery configurations. This ensures that credentials and commands function properly before running full discovery jobs, reducing troubleshooting time and improving discovery accuracy. Selecting the appropriate MID Server method and specifying IP addresses precisely helps tailor tests to the environment.
Additionally, the ability to validate all commands at once or select specific ones provides flexibility depending on testing needs. Understanding and correctly configuring these fields can lead to more reliable discovery results and smoother operations in managing IT infrastructure.
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. |