Skip to main content
OnCommand Unified Manager 9.5
A newer release of this product is available.

Testing script execution

Contributors netapp-adityaw

You can verify that your script is executed correctly when an alert is generated for a storage object.

Before you begin

  • You must have the OnCommand Administrator or Storage Administrator role.

  • You must have uploaded a script in the supported file format to Unified Manager.

Steps

  1. In the toolbar, click clusterpage settings icon, and then click Scripts in the left Management menu.

  2. In the Management/Scripts page page, add your test script.

  3. In the Configuration/Alerting page, perform one of the following actions:

    To…​ Do this…​

    Add an alert

    1. In the Configuration/Alerting page, click Add.

    2. In the Actions section, associate the alert with your test script.

    Edit an alert

    1. In the Configuration/Alerting page, select an alert, and then click Edit.

    2. In the Actions section, associate the alert with your test script.

  4. Click Save.

  5. In the Configuration/Alerting page, select the alert that you added or modified, and then click Test.

    The script is executed with the “-test” argument, and a notification alert is sent to the email addresses that were specified when the alert was created.