Skip to main content

CLI Command — Remote SSH Execution in ObserveOps

CLI Command lets you run SSH commands on network devices and servers directly from ObserveOps (formerly known as AIOps), without opening a terminal or PuTTY session. Execution runs from the assigned Collector using configured SSH credentials, and every command is audit logged automatically.

Prerequisites

  • You must have the Admin or NOC role. Viewer role cannot execute commands.
  • The target device must have SSH enabled.
  • A valid SSH credential profile must be configured in ObserveOps, or you can create one directly from this screen.
  • The Collector must have access to TCP port 22 on the target device.

How It Works

ObserveOps connects from the Collector to the target device over SSH using the stored credential profile. The CLI Command text area accepts the command you want to run. Raw command output returns to the platform. Sensitive data patterns (passwords, secrets, keys) are masked in the output. Every execution is written to the Audit Trail with username, device, command, timestamp, and result status.

Go to Main Menu > Settings > Utility > CLI Command.

CLI Command screen showing IP Address/Host Name, Credential Profile, and CLI Command text area

Running a CLI Command

FieldDescription
IP Address / Host NameEnter the IPv4 address, IPv6 address, or FQDN of the target device.
Credential ProfileSelect the SSH credential profile to use. Click Create Credential Profile to create one inline.
CLI CommandEnter the command to execute on the target device.

Click Test to execute the command. Click Reset to clear the form.

Creating a Credential Profile

Click Create Credential Profile to open the credential dialog without leaving the screen.

Create Credential Profile dialog for CLI Command showing SSH fields including enable options and config transfer settings

SSH Credentials

FieldDescription
Credential Profile NameEnter a unique name to identify this profile.
ProtocolSet to SSH automatically for CLI credentials.
User NameEnter the SSH username for the target device.
PasswordEnter the SSH password. Stored encrypted and never shown in output.
SSH KeyPaste the private SSH key if key-based authentication is used instead of a password.
PassphraseEnter the passphrase for the SSH private key, if the key is passphrase-protected.

CLI Options

Enable the CLI options checkbox to reveal additional fields for privileged mode and config transfer.

FieldDescription
Config Transfer ProtocolSelect the protocol to use for configuration file transfers (for example, TFTP or SCP).
Enable CommandEnter the command used to enter privileged mode on the device (for example, enable).
Enable User NameEnter the username required for enable mode, if the device prompts for one.
Enable PasswordEnter the enable password for privileged mode access. Stored encrypted and never shown in output.
Enable Password Prompt PatternEnter the password prompt text the device shows when you type enable to access privileged mode. If left blank, Password is used by default.
Enable PromptEnter the prompt string the device displays after entering enable mode (for example, #).
Config Mode CommandEnter the command used to enter configuration mode (for example, configure terminal).
Config PasswordEnter the password required to enter configuration mode, if applicable.
VRF NameEnter the VRF name if the SSH session must route through a specific VRF on the device.

Click Create Credentials Profile to save.

danger

All CLI executions are audit logged with username, device, command, timestamp, and result. Sensitive output patterns are automatically masked in the results display.

Example

A NOC engineer responds to a high CPU alert on a core router. They open Utility > CLI Command, select the router, enter show processes cpu, and click Test. The output returns in seconds, showing the top CPU consumers. The engineer identifies a runaway OSPF process and escalates to the network team — all without shared SSH credentials or a terminal session.

Troubleshooting

IssueCauseFix
Connection refusedSSH is not enabled on the device or the Collector cannot reach port 22.Confirm SSH is active on the device and check for firewall rules blocking port 22 from the Collector.
Authentication failedWrong username, password, or SSH key in the credential profile.Update the credential profile with the correct SSH credentials and retry.
Command times out with no outputThe device displayed a prompt (such as an enable password prompt) that was not handled.Set the Enable Password and Enable Password Prompt Pattern fields in the credential profile to match the device's prompt.
Output contains [MASKED]ObserveOps detected a sensitive pattern and masked it automatically.This is expected. Retrieve sensitive values directly from the device configuration.

Known Limitations

  • Interactive commands that require ongoing user input (such as device-side ping or traceroute) are not supported. Use the built-in Ping and Traceroute utilities instead.
  • SSH key-based authentication requires the private key to be stored in the credential profile.
  • Privilege escalation via sudo or su is not supported. Use the Enable Command and Enable Password fields for Cisco-style enable mode only.