Administer > Create and manage alerts > Alert Actions > Execute an External Visual Basic Script

Execute an external Visual Basic script

In some situations, you may want to execute a Visual Basic (VB) script when a network event occurs to perform a specific action.

SolarWinds recommends that scripts and batch files be placed on the root of c:\ to simplify the path for the batch file.

  1. When editing or adding an alert, click Add Action in the Trigger or Reset Action section of the Alert Wizard.
  2. Select the Execute an External VB Script option, then click Configure Action.
  3. Under Execute an External VB Script settings:
    1. Select a VB Script Interpreter from the drop down list.
    2. Enter the Network path to the external VB Script in the field provided.
      For example: Use c:\test.vbs, where c:\ is the disk on your main Orion poller and test.vbs is your external VB Script to be executed.
    3. Select either Define User or No User Defined for Optional Windows Authentication.

      Enter users as domain\user.

  4. Schedule the action by selecting Time of Day > Use special Time of Day schedule for this action. This schedule only applies to the alert action you are editing.

    This is often used to prevent an action from occurring during specific windows.

  5. Select how frequently this action occurs for each triggered alert in Execution Settings.

  6. Click Add Action.

The action is added to the trigger or reset action list, and you can test the action using the Simulate button. When the trigger or reset conditions of the alert are met, the VB script runs.