{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":29523,"path":"it-operations-management/discovery/command-validation-reference.md","title":"Command Validation Tasks form for pattern-based discovery","bundle":null,"doc_type":null,"release":"australia","body":"\n# Command Validation Tasks form for pattern-based discovery\n\n**Command Validation Tasks** form displays the fields that you must fill when you create or modify a task for testing a pattern command.\n\nFor more information about testing pattern commands, see [Validate commands used in pattern-based discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/validate-discovery-commands.md) and [View command validation task results in pattern-based discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/view-command-validation-task-results.md).\n\n<table id=\"table_h5t_b2m_c5b\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nNumber\n\n</td><td>\n\nThe task number is automatically created by the system.\n\n</td></tr><tr><td>\n\nMID Server Selection Method\n\n</td><td>\n\nSelect the relevant method:-   **Specific MID Server** - To define the MID Server for this test.\n-   **Automatic MID Selection** - To use a MID Server that's assigned to the IP range or IP network that you want to use for the test. Select this method only if you have configured a MID Server with IP ranges or as a default MID Server for Discovery.\n-   **Try All Eligible MID Servers** - To use any MID Server available for the the IP range or IP network that you want to use for the test. Select this method only if you have configured a MID Server with IP ranges or as a default MID Server for Discovery.\n\n</td></tr><tr><td>\n\nMID Server\n\n</td><td>\n\nThe MID Server name.This field appears only if **Specific MID Server** is selected from **MID Server Selection Method**.\n\n</td></tr><tr><td>\n\nValidate All Pattern Commands\n\n</td><td>\n\nThe check box for validating all commands used by a specific pattern simultaneously.\n\n</td></tr><tr><td>\n\nOS Class\n\n</td><td>\n\nThe CI class that represents the servers on which you run this validation task.\n\n</td></tr><tr><td>\n\nCommand Type\n\n</td><td>\n\nThe command type that depends on the kind of the server:-   **Shell Command**\n-   **WMI Query**\n-   **SNMP Query** \\(Tabular and Scalar\\)\n-   **SNMP Walk**\n-   **HTTP GET** \\(for Basic Authentication credentials, not Token\\)\n\n This field is available only when **Validate Al Patterns Commands** isn't selected.\n\n</td></tr><tr><td>\n\nIP Addresses\n\n</td><td>\n\nAny combination of IP v4 Addresses, IP Ranges, or IP networks. For example:-   `10.196.39.12, 10.196.39.12` - Comma-separated IP addresses for a list of standalone addresses.\n-   `1.1.1.1-1.1.1.100` - Hyphen-separated IP addresses for an IP range.\n-   `1.1.1.1/28` - Slash notation for an IP network.\n\n **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](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1123625).\n\n</td></tr><tr><td>\n\nCommands\n\n</td><td>\n\nThe 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.\n\n This field is available only when **Validate All Patterns Commands** isn't selected.\n\n</td></tr><tr><td>\n\nPattern\n\n</td><td>\n\nThe 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.\n\n</td></tr></tbody>\n</table>**Parent Topic:**[Discovery reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/discovery-references.md)\n\n**Related topics**  \n\n\n[Command List form for pattern-based discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/commands-list-discovery.md)\n\n[Discovery commands for probes and patterns](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/discovery-command-probe-pattern.md)\n\n"}}