Start a Conversation

Unsolved

This post is more than 5 years old

1219

September 9th, 2011 09:00

Audio Adapter for Ionix Global Console

Hi,

I'm using the following audio script to play a sound whenever a "Down" event is received in the Global Console.  I would like to modify it so that a sound will also play whenever a "Critical" or "Major" event is received.  Does anyone know what the % attribute value is for Severity?  I'm running Ionix 8.1.

@echo off
rem # sample-audio.cmd
rem #
rem
@echo off
rem This script is to be used as a starting point for the action invoked
rem by the "script" notification adapter

REM Argument %1  = Timestamp
REM Argument %2  = DisplayType (of notification)
REM Argument %3  = SourceDomainName
REM Argument %4  = ClassDisplayName
REM Argument %5  = InstanceDisplayName
REM Argument %6  = EventDisplayName
REM Argument %7  = Certainty
REM Argument %8  = Description
REM Argument %9  = SystemName
REM Argument %10 = SystemType
REM Argument %11 = SystemDescription
REM ===========================================================================
REM @echo on

REM **** If the Event is a CLEAR Event
if %2 == "CLEAR" ( goto :EOF )

REM **** If it is not a Down Event
if not %6 == "Down" ( goto :EOF )

REM **** If the EventDisplayName is "DOWN"
if %6 == "Down" ( call :Event_Down )

goto :EOF


REM -------------TAKE ACTIONS---------------------------------------------------
:Event_Down
  mplay32.exe /play /close c:\WINDOWS\Media\Windows XP Logon Sound.wav
       goto :EOF

:EOF

pause

No Responses!
No Events found!

Top