Using Task Scripts
- Last Updated: December 11, 2024
- 1 minute read
- WhatsUp Gold
- Version 2024
The Configuration Management Task Script Library (SETTINGS > Configuration Management > Task Script Library) displays all scripts available to be called with Run Now or called and run within Configuration Management tasks.
Task scripts sign-on as authenticated users to devices through SSH or Telnet and run command-line interface (CLI) commands on devices. These tasks can perform a number of operations, such as restoring or backing up a running or startup configuration, or changing an application password.
Configuration Management Task Script Library enables you to:
- Create and edit custom scripts you can embed in tasks.
- Run Now. Run scripts stand-alone (without a scheduled task) on a device or device group, check failure/success and run failed scripts in debugger.
- Debug. Run a script in the debugger, view credential and CLI settings, step through commands, and see log, trace, and results.
- Import and export Task Scripts.
- Use built-in scripts to backup device configuration.
Script examples
Configuration Management comes with two pre-configured task scripts. You can also configure your own custom task scripts using the Custom Script Language Guide.
Example
This script example shows the current running configuration of the selected device.
@login
@enable
[running-config] show run
[-] exit