Document toolboxDocument toolbox

Perl/Python Scripting

As with CCS, you use Perl/Python for change automation and custom Issue analysis. Perl/Python scripting possesses far greater capabilities, providing access to all aspects of the Perl or Python programming language, including the Perl/Python API, at runtime. NetMRI’s Job Wizard also supports the use of Perl/Python scripts. You use your preferred text editor or IDE to write and debug the Perl or Python script before copying the text into the appropriate field in the Job Wizard.

Infoblox strongly recommends testing all Perl/Python scripts before running them in the appliance.

Note

When you save a Perl/Python script, NetMRI will test-compile the script. If the compile fails, the appliance will disallow saving of the script and display the compilation errors to the user.

You can leverage Perl/Python scripting for use in custom issues, change scripts, and analysis scripts.

The Job Management tab provides a collection of scripting-related functions:

  • The Scripts tab provides creation, copying, editing, scheduling, and running of automation scripts.
  • The Library tab provides a convenient location for storing and Perl/Python subroutines and modules.
  • The Config Templates tab lists any configuration template files. Config templates are text files that contain CLI commands for a specific vendor, device type, equipment model or network operating system version. Config templates can serve as the basis for a job (described in this chapter).
  • The Lists tab provides external lists of information to which jobs can refer when running scripts. For more information, see Defining Lists for ACM, Perl, Python, and CCS Script Reference.
  • The Scheduled Jobs tab is where you create and schedule jobs, which run scripts against devices at a specified frequency. For more information, see Creating and Scheduling Jobs.
  • The Triggered Jobs tab enables you to specify events that will trigger associated jobs. For more information, see Triggering Jobs Through Events.
  • The Job History tab lists jobs that have been scheduled (or run immediately), and shows their status. For more information, see Viewing the Job History and the Job Viewer.
  • The Custom Issues tab enables you to create and edit custom issues referenced by scripts.