Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Server & Application Monitor (SAM) > SAM 6.4 Administrator Guide > Alert Actions for SAM > Execute an External Visual Basic Script for SAM

Execute an External Visual Basic Script for SAM

Table of contents
No headers

Updated: 12-1-2016

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.

 
Last modified

Tags

Classifications

Public