You are hereExecute / Execute
Execute
Option to execute OS command in an Action Rule or a Correlated Event.
action rule to detect stopped Windows service and execute a "net start" quit working
I have an action rule that checks the status of a Windows service. If it's stopped, then the rule is supposed to email a notification run a "net start" on the problem computer against the measured object (the service name).
In the action rule, The Application is "Transaction", the Component is "Service", I have the computer selected, and have the Windows Service name as the measured object.
In the "Actions" section, I have "Execute" checked, and the command is "net start {Event.MeasuredObject}, and "execute on the problem computer" is checked
Execute a SQL Server 2005 statement in an action rule
Is there a way to configure an action rule to execute a stored procedure on a specific SQL Server, preferably with insertion of parameter values?
kb25: Public-key authentication for Execute OS command action
Public-key authentication is available for the Execute OS command in action rules and correlated events. To configure this:
- The statistics server used for the monitored computer will execute the OS Command - it will need to be configured to use the SSH key. See kb95: Configuring public-key authentication for SSH based collections for details on configuring the statistics server to work with SSH Keys.
- Enter the Login User and the key that has been configured for that user
kb23: DOS shell commands cannot be run directly from Longitude actions
DOS internal commands are loaded from command.com when the OS is booted, and stored in system memory. These internal commands (e.g. DIR, DATE, ECHO, COPY, DEL, etc.) cannot be executed directly from Longitude actions. To execute DOS internal commands from Longitude actions, either create a batch script or precede the command with cmd /C as in: cmd /C DIR