Looking for list of commands/queries used by ACC for Discovery?

Suggy
Giga Sage

My customer is asking for a list of all commands/queries used by ACC for Discovery. Where can find that?

4 REPLIES 4

Harish Bainsla
Kilo Patron
Kilo Patron

@Harish Bainsla none of them details the list of ALL COMMANDS/QUERIES used by ACC 🙂

AJ-TechTrek
Giga Sage
Giga Sage

Hi @Suggy ,

 

Where to find the commands used by ACC Discovery?

 

As of now, ServiceNow does NOT publicly expose a full list of all exact shell/PowerShell/command-line queries used by ACC Discovery (for security, IP protection, and dynamic updates).


However, you can still get visibility into the commands used in the following ways:

 

1. Use ACC Command Viewer (Diagnostic Tool)
If you're using ServiceNow Cloud MID (Agent Client Collector), you can:
Navigate to:
Discovery > Agent Client Collector > Commands
There, you will find:
* Commands executed
* Target system details
* Return values
* Status of execution
This gives visibility into:
* Shell commands (Linux)
* PowerShell or WMI queries (Windows)
* SNMP/OIDs if network device

 

Useful for: auditing and troubleshooting Discovery behavior.

 

2. Analyze Pattern Steps (for ACC Patterns)
If you want to understand which commands ACC executes, review the Discovery Pattern being used.
Path:
Discovery > Patterns > Select CI Pattern
Then look for "Execute Command", "Parse Command Output", "Script Step" actions.
Each of these steps reflects:
* What ACC will execute (e.g., dmidecode, ifconfig, Get-WmiObject, etc.)
* The parsing logic for returned data.


Note: ACC-based patterns use different steps than legacy patterns, but command intent is similar.

 

3. Use Logs:
For detailed debugging:
Go to:
Agent Client Collector > Devices > [Your Device] > Discovery Logs
These logs often capture:
* Step-wise execution
* Errors, outputs
* Invoked commands (especially if debug is enabled)
Search for: CommandExecutor, ExecuteCommand, CommandOutput

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
 

Thank You
AJ - TechTrek with AJ - ITOM Trainer
LinkedIn:- https://www.linkedin.com/in/ajay-kumar-66a91385/
YouTube:- https://www.youtube.com/@learnitomwithaj
Topmate:- https://topmate.io/aj_techtrekwithaj (Connect for 1-1 Session)
ServiceNow Community MVP 2025

Pratiksha
Mega Sage
Mega Sage

Hi Check this out sa_mapping_ext_commands