Custom Alarm Notifier fails to launch with 'Unknown error:'

book

Article ID: 195128

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction


Set up a custom Alarm Notifier named HPOOAlarmNotifier and when trying to start it returns an Unknown error:

Launched using the launchinstdbapp method

cd $SPECROOT/bin
./launchinstdbapp localhost <PARTNAME> <auto restart y/n> <Log Name>

./launchinstdbapp localhost HPOOALARMNOTIFIER n HPOONOTIFIER.OUT

 

 

Cause


In this case, the .idb file (HPOOALARMNOTIFIER.idb) used by processd to start the process had an error
  in the path to the notifier binary.

# Processd Install Ticket for AlarmNotifier
PARTNAME;HPOOALARMNOTIFIER;
APPNAME;HPOOAlarmNotifier;
WORKPATH;$SPECROOT/Notifier/HPOO_notifier;
LOGNAMEPATH;$WORKPATH/HPOONOTIFIER.OUT;
ADMINPRIVS;N;
AUTORESTART;y;
AUTOBOOTSTART;y;
STATEBASED;Y;
NUMPROCS;1; // one per host
RETRYTIMEOUT;600; // 10 minutes
#TICKETUSER;$spectrum;
RETRYMAX;3;     // 3 retries allowed
STARTPRIORITY;30;
SERVERPROCESS;Y;
#ENV;<var>=<value>;
ARGV;$SPECROOT/Notifier/HPOO_notifier<CSEXE> -r .alarmrc2 -n HPOOALARMNOTIFIER;

The path to the binary is $SPECROOT/Notifier/HPOO_notifier and the binary name is HPOO_notifier.

 

Environment

Release : 10.x

Component : Spectrum Core / SpectroSERVER

Resolution

Corrected the path in the .idb file and restarted processd to pick up the changes

- Corrected the path in the ARGV line
    ARGV;$SPECROOT/Notifier/HPOO_notifier/HPOO_notifier<CSEXE> -r .alarmrc2 -n HPOOALARMNOTIFIER;

- saved the .idb file (HPOOALARMNOTIFIER.idb)

- restarted processd using processd.pl restart (processd will re-read the .idb files and pick up the change without affecting already running processes)
     $SPECROOT/lib/SDPM/processd.pl restart


The HPOO_notifier.exe was launched by processd on the restart (as the AUTOBOOTSTART was set to y in the .idb)

Additional Information

Starting in Spectrum 10.4.2.1, processd.pl script will now also stop the SpectroSERVER and Archive Manager

https://knowledge.broadcom.com/external/article?articleId=201598

Attachments