How to configure Spectrum to automatically start the SpectroSERVER and Archive Manager when the system is restarted.
search cancel

How to configure Spectrum to automatically start the SpectroSERVER and Archive Manager when the system is restarted.

book

Article ID: 51946

calendar_today

Updated On:

Products

Spectrum Network Observability

Issue/Introduction

How to configure Spectrum to automatically start the SpectroSERVER and Archive Manager when the system is restarted.

How can the SS and ArchMgr be autostarted after reboot?

Environment

All supported Network Observability NetOps Spectrum SpectroSERVER releases

Resolution

This can be accomplished by modifying the $SPECROOT/lib/SDPM/partslist/SS.idb and ARCHMGR.idb files.

We will need to take the following steps:

  • Windows: Uncomment the AUTOBOOTSTART parameter. Set the value to "y".
  • Linux: Two changes are required:
    • Uncomment the AUTOBOOTSTART parameter. Set the value to "y".
    • Uncomment the TICKETUSER parameter. Set the value to the Spectrum install owner.

ARCHMGR.idb file configuration example. Necessary fields are highlighted with red text. Uses default 'spectrum' user as install owner.

# Processd Install Ticket for SPECTRUM Archive Manager.
PARTNAME;ARCHMGR;
APPNAME;SPECTRUM Archive Manager;
WORKPATH;$SPECROOT/SS/DDM;
LOGNAMEPATH;$WORKPATH/ARCHMGR.OUT;
LOGBACKUPMAX;10;
ADMINPRIVS;y;
#AUTORESTART;N;
AUTOBOOTSTART;Y;
#STATEBASED;N;
NUMPROCS;1; // one per host
RETRYTIMEOUT;0; // seconds
TICKETUSER;spectrum;
RETRYMAX;0;     // retries
STARTPRIORITY;30;
SERVERPROCESS;Y;
#SERVICE;N;
#ENV;<var>=<value>;
ARGV;$SPECROOT/SS/DDM/ArchMgr<CSEXE>; //

NOTE: Do not change AUTORESTART;N; in the SS.idb or ARCHMGR.idb files to "y". The reason being is if the SS or ArchMgr crash, it will not remove the .VNMDB.LOCK or .DDMDB.LOCK files preventing the SS and ArchMgr from starting. Always assume database corruption in the event of a crash.

After making the change to the idb files, you will need to restart processd to pick up the change.

  1. Shutdown the SpectroSERVER and ArchMgr gracefully before restarting processd:
    1. Log into the system as the user that owns the Spectrum installation
      • If on Windows, start a bash shell by running "bash -login"
    2. cd to the $SPECROOT/bin directory and enter the following command to shutdown the SpectroSERVER and ArchMgr:
      • ./stopSS.pl
    3. Then stop processd:
      • systemctl stop processd
    4. Restart processd:
      • systemctl start processd

The SS and ArchMgr will automatically start now since the AUTBOOTSTART was changed to Y

Additional Information

Please reference the Install Tickets Files section of the Setting Up a Distributed SpectroSERVER Environment documentation for more information.

If you are using Linux you will need to uncomment TICKETUSER parameter.

  • TICKETUSER: Defines the username of the user who is authorized to run the process when the AUTOBOOTSTART and/or AUTORESTART fields are set. This field is only required when those fields are included in the install ticket. This field is not applicable on Windows because all processes run as the processd install user.