Execute CLI Show Command (Devices)

While in the HPE Networking Apstra Data Center Director environment, you may need device information that's obtained via CLI commands. Traditionally, you need to log in to a machine with access to the device management network, open a terminal, find device IP addresses, SSH to each of them, then run the required CLI commands. You can bypass these steps and run show commands for Juniper devices directly from the Apstra DC Director GUI. You can execute CLI commands from within the staged or active blueprint, or from the Managed Devices page. The steps below are for the devices page.

To execute the CLI Show Command on Junos devices in the Apstra DC Director GUI:

  1. From the left navigation menu, navigate to Devices > Managed Devices and click the management IP for the device.
    Juniper Apstra UI showing Managed Devices section with a table listing network devices, their management IPs, hostnames, OS, state, and more.
  2. On the device detail page that appears, click the Execute CLI Command button.
    User interface for device management with tabs: Device, Agent, Pristine Config, Telemetry. Icons on right: Execute CLI Command, Edit, Delete.
  3. In the dialog that opens type show, then press the space bar. Available commands appear that you can scroll through to select, or you can start typing the command and it will auto-fill. In our example we're looking for BGP neighbors. We typed show, space, then b, which filtered the commands to only include those with the letter b. We selected bgp, then pressed the space bar to show available arguments for bgp. We typed n to show commands including the letter n. We'll select neighbor to complete the command.
    User interface for executing CLI commands with auto-complete feature, output format selection, and execute button. Device info: S/N 525400DE0AE4, IP 10.28.135.15, hostname leaf3.
  4. From the drop-down list, select how you want to view the results: text, XML or JSON.
  5. Click Execute to return show command results. We used Text Mode for our example.
    Output of "show bgp neighbor" command on device leaf3 with management IP 10.28.135.15, showing BGP peer 10.0.0.3 in AS 64512 with state Established.