CLI Scripts

The CLI Scripts page is available in the Gateways and Plans tabs in Quantum Spark Management.

Use CLI scripts to execute one or more Gaia Clish commands on a Gateway. The Gateway fetches and runs the commands once, and again after every script update. CLI scripts enable advanced features and modify local configurations across multiple Gateways.

Best Practice - Use Quantum Spark Management for configuration management whenever possible. Use CLI scripts only when necessary.

Notes:

  • Any script change triggers execution of the entire script, including commands that previously ran.

  • For supported Gaia Clish commands, refer to the Quantum Spark Appliances CLI Reference Guide for your version (2000 models, 1900 models, 1800 models, 1600 models, 1500 models).

  • When you execute a script, each Gateway's CLI Script page displays the output in the Last Script Result section.

  • You can configure up to five different scripts. The Gateway executes them sequentially: Script1, then Script2, and so on.

Using a CLI Script in a Plan object:

  1. In the left navigation tree, click Plans.

  2. Click the plan name.

    The Plan Edit page opens.

  3. Click CLI Scripts > CLI Script 1 - 5.

  4. Click Manage in SMP.

  5. Enter the Gaia Clish commands.

  6. To disable the CLI script, clear Manage in SMP.

  7. Click Save.

Using a CLI Script in a Gateway object:

  1. In the left navigation tree, click Gateways.

  2. Click the Gateway name.

    The Gateway Edit page opens.

  3. Click CLI Scripts > CLI Script 1 - 5.

  4. Click Manage in SMP.

  5. Enter the Gaia Clish commands.

  6. To disable the CLI script, clear Manage in SMP.

  7. Click Save.