Adding scripts
You can add scripts in Unified Manager, and associate the scripts with alerts. These scripts are executed automatically when an alert is generated, and enable you to obtain information about storage objects for which the event is generated.
- You must have created and saved the scripts that you want to add to the Unified Manager server.
- The supported file formats for scripts are Perl, Shell, PowerShell, and .bat files.
Platform on which Unified Manager is installed Supported languages VMware Perl and Shell scripts Linux Perl and Shell scripts Windows PowerShell, Perl, and .bat scripts - For Perl scripts, Perl must be installed on the Unified Manager server. If Perl was installed after Unified Manager, you must restart the Unified Manager server.
- For PowerShell scripts, the appropriate PowerShell execution policy must be set on the server so that the scripts can be executed.
ImportantIf your script creates log files to track the alert script progress, you must make sure that the log files are not created anywhere within theUnified Manager installation folder. - You must have the Application Administrator or Storage Administrator role.
You can upload custom scripts and gather event details about the alert.
Note
If you do not see this capability available in the user interface it is because the functionality has been disabled by your administrator. If required, you can enable this functionality from .
- In the left navigation pane, click .
- In the Scripts page, click Add.
- In the Add Script dialog box, click Browse to select your script file.
- Enter a description for the script that you select.
- Click Add.
Give documentation feedback