presAlarmTest

Last Updated : Nov 16, 2018 |
Prolog information
Run this script on Avaya Breeze® platform to trigger or clear Presence Services alarms.
You must log in as a root user to run this command.

Syntax

presAlarmTest [-l] [-r] [-c] [-h]
Options:
  • -l: Lists all available alarms.
  • -r [alarm-event-code]: Raises a given alarm or omits the alarm-event-code to raise all alarms.
  • -c [alarm-event-code]: Clears a given alarm or omits the alarm-event-code to clear all alarms.
  • -h: Prints the help.

Sample output 1

# cd /opt/Avaya/snap_in/ps/bin/
# ./presAlarmTest.sh

Test Tool for raising/clearing all Presence Services alarms.
Usage: presAlarmTest -l|-r|-c
  Options: -l list all available alarms
           -r [alarm-event-code], raise a given alarm or leave alarm-event-code blank to raise all alarms
           -c [alarm-event-code], clear a given alarm or leave alarm-event-code blank to clear all alarms
           -h Prints this help

Sample output 2

# ./presAlarmTest.sh -l
Available alarms:
  MESSAGE_ARCHIVE_UPLOAD_FAILURE_ALARM_CODE_MAJOR       IMArc_01
  MESSAGE_ARCHIVE_UPLOAD_FAILURE_ALARM_CODE_CRITICAL    IMArc_02
  GEO_REMOTE_DATACENTER_FAILURE_ALARM_CODE_CRITICAL     GR_01
  GEO_CONFIG_ALARM_CODE_MAJOR   GR_02
  HEALTH_MONITOR_CLUSTER_ALARM_MAJOR    HLTH_01
  HEALTH_MONITOR_SERVER_ALARM_MAJOR     HLTH_02
  HEALTH_MONITOR_CLUSTER_ALARM_CRITICAL HLTH_03

Sample output 3

# ./presAlarmTest.sh -r IMArc_01

Sample output 4

# ./presAlarmTest.sh -c IMArc_01