Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Promoting Scripts Overview

    The promote script feature of Junos Space Network Management Platform enables users to execute a script as an action from the shortcut menu, rather than from the Execute Scripts window. Scripts can be promoted to create actions for devices, physical interfaces, logical interfaces, and physical inventory components.

    In the absence of the promote scripts feature, to execute a script on a device, you must select the device on the Device Management page and select Device Operations > Execute Scripts from the Actions menu. You must then select the required script from the Execute Scripts window, provide parameters, and then execute the script. However, with script promotion, the script execution task is available as a right-click action. You can select the device and execute the script directly.

    Scripts can be promoted by including the @PROMOTE annotation with the value set to yes. /*@PROMOTE=”yes”*/

    A device script with the @PROMOTE annotation must be staged and enabled for execution on the device, to be available as a right-click action. In the case of device scripts, if the promoted script is not staged and enabled, it will appear as a disabled action. But for interfaces and physical inventory components, the promoted script will not appear on the menu at all if it is not staged and enabled.

    Local scripts can also be promoted and are not subject to these restrictions.

    Note: The promote script feature works only when the option “Advanced Xpath Processing” is enabled. You can enable this option by going to Administration > Applications > Modify Application Settings > CLIConfiglets. Only operation scripts can be promoted. You can promote up to 25 scripts, but you cannot execute multiple promoted scripts simultaneously.

     

    Related Documentation

     

    Modified: 2015-09-10