SSHCommand probe
A probe using the ECC queue topic name SSHCommand executes a shell command on the target host, and returns the resulting output to the sensor.
Discovery supports Bourne Shell (sh) and Bourne-again Shell (bash) commands. Enter shell script commands in the probe's ECC queue name field. The shell script can use variables and file operations supported by the target UNIX shell.
- The SSH engine is active by default on new instances.
- Customers on upgraded instances can manually enable ServiceNow SSH for a particular probe by setting the use_snc_ssh parameter to true. Alternatively, enable it for all probes on the MID Server by setting the MID Server parameter mid.ssh.use_snc to true.
Note: To discover network devices, such as routers and switches, use SNMP credentials credentials, not SSH credentials.
- SSHCommand parameters
Several parameters are available for the SSHCommand probe. - SSHCommand path
The SSHCommand probe computes the default path from the following sources. - Shell script options
The SSHCommand probe supports the following scripting options in the ECC queue name field. - Non-privileged SSH commands during probe-based discovery
These tables display the SSH commands run by Discovery probes on target devices during horizontal discovery. These SSH commands don’t require elevated privileges to run. - SSH commands requiring a privileged user during probe-based discovery
These tables display the SSH commands run by Discovery probes during horizontal discovery. These SSH commands require elevated privileges to run.
Parent Topic:List of Discovery probes