ServerConductor/Blade Server Manager Description and Reference

### 6.4.2 Setting the program to be started automatically

Organization of this subsection
  (1) How to set
  (2) Example

#### (1) How to set

To set startup of a program when alerts occur:

1. Execute the environment settings utility at the server where the alert action service has been installed.
   For details about how to start the environment settings utility, see 3.2 Setting an environment.
2. Click the Alert Action Service tab.

   On this tabbed page, set the following information:

   Item | Setting
   --- | ---
   Program | Set the program to be started when alerts occur (specify an absolute path). You can specify only one program. To start multiple programs, create a batch program and specify the batch program's name.
   Macro | Specify data to be used by the program when the program starts. The available macros are described below. When a macro is specified, the applicable information concerning the alert is expanded so that it can be used by the program. %D Expands to the alert occurrence date (in the format mmddyyyy) %T Expands to the alert occurrence time (in the format HHMMSS) %M Expands to the name of the host where the alert occurred %L Expands to the character string indicating the alert level %I Expands to the ID of the alert (in the format 0 Xxxxx) %S Expands to the character string indicating the details of the alert %P Expands to the character string indicating the location of the alert

Check the specified settings, correct any problems if necessary, and then click the OK button. The specified program will be started the next time notification is received of an applicable alert.

#### (2) Example

As an example, this subsection registers the following batch file as the program to be started:

Program to be registered

      c:\alert.bat %I

  This example specifies that %I (alert ID) is to be added as a parameter when the program starts.

Contents of alert.bat

      echo off
      if %1==0x13B0 alert.wav

  This program activates a tone whenever notification is received of an alert whose ID is 0x13B0 (detection of OS hangup).

All Rights Reserved. Copyright (C) 2006, Hitachi, Ltd.