Moogsoft Docs

Update the Workflow Engine

Moogsoft periodically provides updates to the Workflow Engine for Moogsoft AIOps. This topic tells you how to replace the core workflow engine files and any supporting files.

Before you begin

Before you update the Workflow Engine:

  • Verify you have SSH access to to your Moogsoft AIOps machines. For distributed or Highly Available installations, update the Workflow Engine on all core role machines where you run Moogfarmd. See Server Roles.

  • Download the latest WorkflowEngine bundle and transfer them to the machines where you are performing the update. For information on the latest Workflow Engine, see Updates for Moogsoft AIOps v7.3.0.

  • Verify you know the operating system user that runs Moogfarmd and perform all steps as that same user.

Download the Workflow Engine

Install a Workflow Engine update

To install an update for the Workflow Engine, you replace the Workflow Engine Moobot and add or replace any supporting files for the Moobot to all machines running Moogfarmd.

  1. Create a backup of the original Workflow Engine Moobot on the instance. For example:

    cp $MOOGSOFT_HOME/bots/moobots/WorkflowEngine.js \
      $MOOGSOFT_HOME/bots/moobots/WorkflowEngine.ORIG.js
  2. Copy the new WorkflowEngine.js file to $MOOGSOFT_HOME/bots/moobots. For example from the directory where you extracted the bundle:

    cp moogsoft/bots/moobots/WorkflowEngine.73.js \
        $MOOGSOFT_HOME/bots/moobots/WorkflowEngine.js
  3. Make a backup of $MOOGSOFT_HOME/config. For example (change to tar check init):

    cp -r $MOOGSOFT_HOME/config \
        $MOOGSOFT_HOME/config.backup 
  4. Copy the files from the config directory to $MOOGSOFT_HOME/config. For example from the directory where you extracted the bundle:

    cp -r moogsoft/config/* $MOOGSOFT_HOME/config/
  5. Merge any configuration changes from your backup configuration to the new configuration. For example if you have edited SimilarSigConfig.conf to point to the UI on a separate host.

  6. For bundles with updates in the contrib directory, make a backup of $MOOGSOFT_HOME/contrib. For example:

    cp -r $MOOGSOFT_HOME/contrib $MOOGSOFT_HOME/contrib.backup 
  7. Copy the files from the contrib directory to the $MOOGSOFT_HOME/contrib directory. For example from the directory where you extracted the bundle:

    cp -r moogsoft/contrib/* $MOOGSOFT_HOME/contrib/
  8. Restart Moogfarmd.