Document toolboxDocument toolbox

Using Perl Or Python Libraries

Note

Read/write operations on Perl or Python scripts in the Libraries page are limited to user accounts with the Scripts:Level 3 privilege. All other users are limited to read-only operations. Libraries also do not have an associated run level.

You store Perl or Python subroutines on NetMRI's dedicated Libraries page. LIbraries provides standard Copy, Export, Edit, and Delete options.

To import a new Perl or Python library file, do the following:

  1. On the Config Management > Job Management > Library page, click the Import icon on the top right.
  2. In the file requester, click Browse to navigate to the location of the file on the local appliance, select the file, and click Import.

To create a new Perl or Python Library file, do the following:

  1. On the Config Management   Job Management > Library page, click the New icon on the top right.
  2. Add a Name for the new script.
  3. Enter the desired Category for the new script. (The Category field allows you to define any category you wish; the Library of scripts is sortable by the Category column.)
  4. Enter a new Description for the script.
  5. Enter the new script in the large text field in the Add Script requester. A script previously written in a text editor can also be copied and pasted.
  6. Click Save or Save and Close to save your changes.
  7. Click Export to save your changes to n external file.
  8. Click Cancel to remove changes.

To copy an existing script: In the Actions column, click the icon and choose Copy from the menu. To edit an existing script: In the Actions column, click the icon and choose Edit from the menu.

To export an existing script: In the Actions column, click the icon and choose Export from the menu. The appliance exports a text file.

To delete an existing script: In the Actions column, click the icon and choose Delete from the menu.