Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Apstra-CLI Commands

The Apstra-CLI utility comes with a built-in feature that auto-completes commands. Use the TAB key to learn about this tool, its functionality, and available commands. See below for just a few of the available commands. For assistance with using Apstra-CLI, contact Juniper Support .

.

change-device-password

scenario change-device-password --blueprint <bp_id> --system <sys_id> --old-password <old_password> --new-password <new_password>

As of Apstra version 4.1.2, you can change device credentials for device system agents using apstra-cli. The new scenario command is a category of apstra-cli commands that include multiple tasks. scenario change-device-password is a collection of eleven tasks as follows:

  • Check old password by ssh connection

  • State creation of configlet for password

  • Commit blueprint

  • Check new password by ssh connection

  • Change system agent password

  • Check system agent status

  • Update device pristine config
  • State deletion of configlet used for password change

  • Commit blueprint

  • Check new password by ssh connection

  • Check system agent status

config-syntax-check (Juniper only)

Command Syntax for Datacenter blueprints:

blueprint --blueprint <bp_id> config-syntax-check --system <sys_id> --username <device_username> --password <device_password>

Command Syntax for Freeform blueprints:

blueprint --blueprint <bp_id> freeform-system config-syntax-check --system <sys_id> --username <device_username> --password <device_password>

With the config-syntax-check command, you can verify configuration syntax on your Juniper devices before committing your blueprint (as of Apstra version 4.1.2). This check is useful when working with configlets in Datacenter blueprints and when working with config templates in Freeform blueprints.

This command works only with hierarchical configuration to verify whether configuration syntax is correct. It doesn't work for set commands.