Send Command
AI-generatedOverview
This node sends a specified command to a network device via SSH and retrieves the response. It is useful for network administrators who need to automate device management tasks such as querying device status, running diagnostics, or executing configuration commands remotely. For example, sending the command "show version" to get device firmware details or running custom commands to check interface status.
Use Case Examples
- Sending 'show version' command to a Cisco router to retrieve firmware and hardware details.
- Executing diagnostic commands on multiple network devices to gather status reports automatically.
Properties
| Name | Meaning |
|---|---|
| Command | The command string to send to the network device for execution. |
| Advanced Options | Collection of optional settings to control connection behavior, retries, timeouts, and error handling. |
Output
JSON
success- Indicates if the command execution was successful.command- The command that was executed.output- The output or response returned from the device after executing the command.deviceType- Type of the network device.host- Hostname or IP address of the device.timestamp- Timestamp when the command was executed.executionTime- Time taken to execute the command in milliseconds.connectionRetries- Number of connection retry attempts made.commandRetries- Number of command retry attempts made.error- Error message if the command execution failed.
Dependencies
- An API key credential for authenticating with the network device.
Troubleshooting
- Connection failures due to incorrect host, port, or authentication details. Verify credentials and network accessibility.
- Command execution failures due to invalid commands or device restrictions. Check command syntax and device compatibility.
- Timeout errors if the device is slow to respond or network latency is high. Adjust connection and command timeout settings accordingly.
- Workflow failure if 'Fail on Error' is enabled and the command fails. Disable this option to continue workflow execution despite errors.