Working With Scripts

The Scripts window provides the means to add predefined scripts to a queue. Scripts in a queue run against the device the next time it checks in via it's daily (a.k.a. periodic) inform.

In anticipation of your management needs, Adtran has provided several commonly used scripts included with your ACS.

  • Mgmt Change Management URL
  • Mgmt Change Management Passwords
  • Mgmt Sync STUN
  • TR-069 Reboot Device
  • TR-069 Default Device
  • TR-069 Download Default Config File
  • TR-069 Get All Parameters
  • TR-069 Update Firmware
  • TR-069 Update Protected Firmware
  • TR-069 Schedule Inform
  • TR-069 Set Inform Interval
  • DNS Set DNS Server
  • NAT Enable NAT (Internet On)
  • NAT Disable NAT (Internet Off)
  • WiFi Change Wireless Power Level
  • WiFi Disable Auto Channel
  • Stats Collect Device Statistics

For more information about defining additional scripts of your own, see Managing Scripts and our complete, online Scripting Guide.

This article reflects the enhanced Script Log user interface as seen in v10.7.0.0. Earlier versions of the Mosaic Device Manager script log do not not separate queued from completed/logged in the display.

 

Adding a Script

Scripts define actions to be taken for a device. Device Manager supplies some scripts, and system administrators can write additional scripts. The scripts can address any parameters in the data model. For example, there is an included script to set the inform interval. When you work with scripts in the context of an account, you select a script from a menu. You might need to specify parameters that the script requires to run. The script is placed in a queue, and it executes the next time the device checks in. You can also view past script results from the Scripts window.

Add a Script To The Queue

  1. Search for the subscriber / device for which you want to queue a script.
  2. From the left navigation bar, expand the Expert drop-down menu and select Scripts.
  3. In the Scripts window, choose a script from the Select Script menu.
  4. Select Add Script to Queue.
  5. If requested, specify script parameters.
  6. Select OK.
  7. If needed, add more scripts to the queue.
  8. Select Save to commit your changes.

Script Log

The Script Log displays...

Pending scripts under the Scripts Queued List.

  • Pending scripts are indicated by a blue clock icon. Select this icon cancel the pending script.

Completed scripts are listed under the Scripts Log List.

  • Successful script completions are indicated by a green check mark.

  • Failures are indicated by a yellow warning triangle.

  • Canceled scripts are indicated by a gray clock icon.

 

Viewing Script Results

To view detailed script results, select a script in the Scripts Log window > Activity column. Activities that are complete are shown in blue text. The Script Log Detail window shows the results of the action.

 

RELATED ARTICLES:

Managing Scripts

Scripting Guide