Execute CLI Show Command (Freeform Blueprint)

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 Freeform blueprints.

  1. From the blueprint, navigate to Staged > Physical > Topology (or Staged > Physical > Systems) and select a Juniper device node.
    Network management tool interface showing tabs for Dashboard, Analytics, Staged, Uncommitted, and Active. Physical tab is selected displaying a network topology with switches switch_1, switch_2, and switch_3 connected by lines.
  2. In the Device tab on the right that appears, click Execute CLI Command.
    Network management interface showing topology with switch_1 connected to sys_1 and switch_2. Device configuration panel for switch_1 shows deploy mode, junos_configuration template, and serial number 525400F935A6. Red arrow points to Execute CLI Command button.
  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 interfaces. We typed show, space, then i, which filtered the commands to only include those with the letter i. We'll select interfaces to complete the command.
    GUI for executing CLI commands on a network device. Shows S/N 525400F935A6, IP 10.28.64.8, hostname switch1, command input field, auto-complete dropdown, text mode selector, and execute button.
  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.
    Command-line output showing network interfaces: gr-0/0/0 GRE link up 800mbps, pfe-0/0/0 link up 800mbps. Management IP and hostname displayed.