Aruba CX icon

Aruba CX

Interact with Aruba CX Switch REST API

CLI → Execute Command

AI-generated

Summary

Execute a CLI command on an Aruba CX switch

Inputs

  • hostOverride — Optional: Override the hostname from credentials (useful for loops with multiple switches)
  • domain (required) — Domain of the Aruba CX API
  • cliCommand (required) — CLI show command to execute (e.g., "show vlan", "show interface")

Output shape

a list of items

Returned items depend on the selected resource; typically an array of objects, may be empty; errors are handled via continueOnFail and returned as {error: message}.

Examples

Example 1: List VLANs on a switch

Domain set to System, CLI Command set to "show vlan", Host Override left blank

Example 2: Run a custom show command on a specific host

Host Override: 192.168.1.10, Domain: System, CLI Command: "show interface", Note left blank

Example 3: Execute a command with overridden host for multiple switches

Host Override provided, Domain: System, CLI Command: "show lldp", Note left blank

Discussion