Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Debugging a Cross Provisioning Platform Script

 

In releases prior to Cross Provisioning Platform Release 14.3R1, you can identify script-related issues only after you create a service. You cannot preview the XML configuration that is being pushed to the device.

With Cross Provisioning Platform Release 14.3R1, you can debug both the configuration script and the GUI script while you are still creating a service. This enables you to identify and rectify all script-related issues before you create a service. You can debug both Juniper Networks and Nokia scripts.

You can debug a Cross Provisioning Platform script by performing the following tasks:

Modifying a Cross Provisioning Platform Script

In releases prior to Cross Provisioning Platform Release 14.3R1, you need to upload the modified script from your local file system. In Cross Provisioning Platform Release 14.3R1, you can modify the script directly in the text area included in the Modify Script page. By default, the latest version of the script is populated in the text area.

To modify a Cross Provisioning Platform script, perform one of the following tasks:

  • Browse the local file system to upload the script that you have modified in your local file system.

    The uploaded script is displayed in the text area, included in the Modify Script page.

  • Modify the script directly in the text area.

    Note

    In the text area in the Modify Script page, you can also modify the script that you have uploaded from your local file system. For more information about modifying an existing script, see Modifying Scripts Created for Cross Provisioning Platform.

Use the Preview option in the Modify Script page to preview the script output. In the script output, use the Verify option to verify the script output.

Previewing a Cross Provisioning Platform Script

With Cross Provisioning Platform Release 14.3R1, you can preview the script output before you create a service.

To preview the output of a GUI script, perform one of the following tasks:

  • On the Scripts inventory page, right-click a script and select Preview.

  • In the Modify Script page, click the Preview option.

Verifying a Cross Provisioning Platform Script

Verify the script output to identify and troubleshoot issues, if any. The Cross Provisioning Platform application provides you with the option to specify real-time data while you preview the script output.

To verify the Cross Provisioning Platform script output:

  1. In the Modify Script page, click the Preview option.

    You can preview the script output.

  2. In the script output page, specify real-time data.

  3. Click Verify.

    Note

    For the Verify option to appear in the script output page and to generate the required XML output, you must append the GUI script with the newly created script utility function, scriptUtils.verifyForm(this,data).

    Following is the code snippet to add the Verify option:

All necessary information required for debugging the Cross Provisioning Platform script is displayed in a new page.