#! /bin/tcsh -f
#==============================================================
#
#  Abs: runs by a control room user to see list of disabled alarms
#
#  Name: listDISABLEDAlarms-SPEAR
#
#  Parameter: wildcard regex for PV name
#
#  Facility:  SLAC
#
#  Auth: 21-Jul-2010, Judy Rock         (JROCK)
#--------------------------------------------------------------
#
#  Mod:

setenv ACC_FACILITY SPEAR
setenv MAX_IOC_NUM 0
#setenv IOC_BASE_NAME soft-iocalh

if (-d /prod/epics) then
    setenv SPEAR_PRODUCTION
else
    unsetenv SPEAR_PRODUCTION
endif
if ($?SPEAR_PRODUCTION) then
  source /prod/epics/epicsReset
else
  source /afs/slac/g/spear/epics/epicsReset
endif

listAlarmsInState.pl FP $1 $2

