SSHCommand parameters
Several parameters are available for the SSHCommand probe.
For instructions on configuring probe parameters, see Set probe parameters.
| Parameter | Description |
|---|---|
| allow_unsupported_shells | Allows a probe designer to attempt to run a command on a device that does not
have a supported shell. With no shell, the following is true:
For example, you may design a probe to display the version of a Cisco
switch running NX-OS. The command that the switch understands is This parameter is only effective for
|
| source | [Required] Specifies the initial host to connect to.
|
| port | Specifies the target port to connect to.
|
| debug | Specifies whether to write SSH debug information to the log file. The
parameter usage depends on whether the ServiceNow SSH client is
enabled. When the ServiceNow SSH client is
enabled, this parameter functions as follows:
When the ServiceNow SSH client is
disabled, this parameter enables or disables SSH debug information in the log
file:
|
| debug_ssh | Specifies whether the legacy SSH client writes debug information into the
agent/logs/agent.log log file. 注:
This
log file can grow quickly and should be disabled when not needed. The
ServiceNow SSH client does not use this parameter.
|
| timeout | Sets the socket connection timeout for the legacy SSH client. The ServiceNow SSH client does
not use this parameter.
|
| path_override | Specifies how to change the default paths set before executing a command.
Type one or more override paths delimited by a colon (:). The default path is
/usr/sbin: /usr/bin: /bin: /sbin. The ServiceNow SSH client
accepts the following prefixes in front of the path_overide value:
|
| keyboard_interactive | Determines whether to enforce keyboard_interactive SSH login mode.
|
| must_sudo | Determines whether SSH commands run through sudo. 注:
must_sudo probe
parameter affects all patterns. On Unix or Linux hosts, pattern execution can
run many different commands, some should not have sudo appended.
|
| run_in_terminal | Determines whether SSH commands run in an SSH terminal.
|
| set_path | Determines whether the probe is allowed to alter the session's PATH variable
or not. By default, during session setup, the PATH variable is set to
/usr/sbin:/usr/bin:/bin:/sbin.
|
| rm_override | Overrides the default remove command (/bin/rm -f) with the
provided value.
|
| use_snc_ssh | Enables the ServiceNow
SSH client. The ServiceNow
SSH client is active by default on new instances. Enabling the ServiceNow SSH client
disables the legacy SSH client.
|
| command_timeout_ms | Number of milliseconds an SSH command is allowed to run before timing out
(default is configurable per MID server). The legacy SSH client does not use
this parameter.
|
| channel_timeout_ms | Specifies the amount of time, in milliseconds, that a MID Server waits for
activity during processing of an SSH command. If the MID Server does not detect
activity in the specified timeout window, this parameter kills the command.
|
| preserve_sudo_environment | Specifies whether to use sudo to preserve the environment for SSH. This
parameter is only effective if the sudo environment on the host being probed
supports the -E switch.
|
| credentials_debug | Displays a <credentials_debug> section in the ECC queue, which can help you troubleshoot credentials. If you set this property to true, credential troubleshooting information is output to the ECC queue, even if the credentials succeed. See Credentials Troubleshooting for more information. |