Submit a ticketCall us

Announcing NCM 7.7
With NCM 7.7, you can examine the rules that make up an access control list for a Cisco ASA device. Then you can apply filters to display only rules that meet the specified criteria, order the rules by line number or by the hit count, and much more.
See new features and improvements.

Home > Success Center > Server & Application Monitor (SAM) > Run PowerShell scripts on alerts

Run PowerShell scripts on alerts

Table of contents
Created by Aileen de Lara_ret, last modified by Matthew Johnsen on Jun 23, 2016

Views: 554 Votes: 0 Revisions: 4

Overview

This article provides steps to run a PowerShell Script on an alert.

Environment

All SAM versions

Steps

Example:  The following example will terminate all instances of notepad.exe on an alert status of Down using PowerShell:
 

  1. In the Trigger Action of the Advanced Alert, add a new action type of Execute an external program.
  2. In the program to execute, type in PowerShell and the rest of the command line arguments or the path to your PowerShell script.

Below is an example that terminates all running instances of notepad.exe. 
Note: You will need to enable impersonation through your PowerShell script or run the Advanced Alert Manager under a user account with elevated privileges.

 

 

 

Last modified
11:21, 23 Jun 2016

Tags

Classifications

Public