Command Execution

You can execute a command, add a new snippet or perform periodic command execution.

Executing a Command

To run or execute Thunder commands on the device follow the below steps:

  1. Click Utilities > Device CLI.

    _images/troubleshoot_new.png
  2. Click Run Command in the top-panel.

    _images/troubleshoot_command.png
  3. Type the Thunder command to execute the commands on the device in the Command editor panel. For example, you can execute commands such as show disk, show ip and show version, etc.

    _images/response.png
  4. Click Run Now and select the cluster partition for a device or multiple devices and click Run Now again.

    The commands can be executed without saving the snippet.

    _images/troubleshoot_device.png

    You can check the response of the command executed.

    _images/response.png
  5. To save a snippet, click Save Snippet, and you can execute the commands by clicking Run Now.

  6. Click Schedule Snippet for periodic snippet execution.

  7. Click Edit to edit the snippet.

  8. Click Delete to delete the snippet.

  9. The commands history shows the commands that are executed instantaneously.

    _images/troubleshoot_history.png

Note

Any failure causes all subsequent commands not to be executed. User will have to remove the failed commands and re-execute the commands, if needed.

Adding a New Snippet

To add a new snippet follow the below steps:

  1. Click Utilities > Device CLI.

    _images/troubleshoot_new.png
  2. Click CLI Snippets in the top-panel.

    _images/cli_snippet.png
  3. Click New Snippet and new Snippet slider opens.

    _images/new_snippet.png
  4. Enter the snippet name and Thunder command.

  5. Click Save.

Periodic Command Execution

The CLI snippets can be scheduled to run at some given point in time on selected target devices. Every time a CLI schedule is created a related schedule job is also created in the scheduler.

  1. Click Utilities > Device CLI.

    _images/troubleshoot_new.png
  2. Select the Scheduled Tasks from the top-panel and click New Schedule.

  3. Enter the new schedule command task name, select the device partition for a device or multiple devices, enter the Thunder CLI command.

    _images/troubleshoot_schedule.png
  4. Select the frequency, date and time to execute the command.

  5. Click Schedule.

  6. You can check the scheduled tasks in the scheduled table.

    _images/troubleshoot_log.png
  7. To edit the scheduled troubleshooting task, select image_reference and click Edit.

  8. To delete the scheduled troubleshooting task, select image_reference and click Delete.

Note

Whenever a scheduled task is deleted, the related job is also deleted.