JAMS 6.x Help
JAMS Alert Management Pack for ServiceNow

Overview

This guide provides assistance with the preparation, installation and configuration of the JAMS Alert Management Pack for ServiceNow.

Application Dependencies

Configuration Instructions

This section details how to install and configure your instance after installing the application.

Initial Setup Procedures

  1. Install the JAMS Alert Management application by ensuring the "JAMS Alert Management Pack for ServiceNow" is checked on the JAMS Installation Wizard.
  2. Deploy a MID Server in the same environment with the JAMS Scheduler.
  3. Create a user with permission to access the MID Server and then configure the MID Server config.xml according to the MID documentation.
  4. Add the following role to the user: x_mvpss_jams.jams_admin, mid_server.
  5. Start the MID Server and verify that it is has registered in the instance, then add the PowerShell capability to the MID Server.    
  6. Make sure to grant access to the JAMS Alert Management roles as needed and include the following roles:

x_mvpss_jams.jams_user: to allow access to all JAMS alert, definition, and agent records.

x_mvpss_jams.jams_admin: to access all JAMS components.

  1. The server that is running the MID server should also have the JAMS Client installed so it can execute the JAMS scripts requested from the ServiceNow instance.
  2. Open the JAMS Scheduler > Properties module. Set the Duration in minutes that JAMS Scheduler is configured to keep jobs in the monitor property to match the duration defined in JAMS. The default duration is 10 minutes.

Adding JAMS Schedulers

  1. Log in as a user with the x_mvpss_jams.jams_admin role.
  2. Open the JAMS Scheduler > JAMS Schedulers module to access the list of schedulers.
  3. Create a new scheduler record.

Initial Import of the JAMS Data

  1. From a scheduler form, click the Load Scheduler Data UI Action related link. This will create a JAMS Job to import agents, job definitions, calendars, and users from the scheduler. This may take a few minutes to complete.
  2. Once the imports are complete, you can review all agents and definitions in the Scheduler’s related lists.
  3. The scheduled Job "JAMS Get Scheduler Data" will automatically run every 12 hours to refresh this data.

Importing JAMS Job Failures

  1. A scheduled job is configured by default to query all JAMS Schedulers with “import data” enabled. This job imports all failed jobs from the scheduler every 2 minutes, converting them into the JAMS Alert record.
  2. From the JAMS console, run a test job that is configured to fail intentionally.
  3. Wait 2-3 minutes for the scheduled import to run and the MID server to process the import.
  4. Open the JAMS Scheduler–JAMS Alerts module to view the alert.

Restarting Failed Jobs from the Alert

  1. You can submit a JAMS job restart using the alert form. Click the Restart job UI Action related link. This action queues a request for the scheduler to restart the existing failed job in the monitor using the same JAMS entry ID.
  2. Once the job has completed, the updated status is imported into the JAMS alert. If the job completes successfully, it is entered into the comments and the alert closes. If the job fails again, the alert comments are updated with the result.
  3. If the job completion time goes beyond the time frame defined in the Duration in minutes that JAMS Scheduler is configured to keep jobs in the monitor property, then the restart cannot access the previous entry ID, so a new Job is submitted. In this case, the new Job will not be able to update an existing alert record.

Creating an Incident from an Alert

If you need to assign work based on a failed alert, you can use the Create Incident UI Action related link to generate a new incident record.

Manage Scheduled Jobs

Three scheduled jobs (described below) are configured by default and can be configured using the JAMS Scheduler > Scheduled Jobs module.

NOTE: Users upgrading from JAMS Incident Management App version 1 should delete or disable the following scheduled jobs from version 1 if they still exist, as they are no longer needed:

  • JAMS Get Scheduler Agents
  • JAMS Get Scheduler Definitions
  • JAMS Get Scheduler Failures

JAMS Alert Console

The JAMS Alert Console displays common alert and JAMS Request report gauges.

Understanding Workflow Components

Version 2 of the JAMS integration changes how all orchestration requests are created and processed. All user requests, as well as system scheduled data imports, are all handled through the new JAMS Job Request records. All workflows are defined on this table for the various request types.

The following workflows are included:

  1. JAMS Request – Create: Sample workflow to provision a new JAMS job from the request catalog record producer.
  2. JAMS Request – Edit: sample workflow to modify a JAMS job from the request catalog record producer.
  3. JAMS Request – Submit: Sample workflow to submit a JAMS job for executing from the request catalog record producer.
  4. JAMS Request Get Failed Jobs: Import failed jobs from a scheduler, request is automatically created from the “JAMS Get Failures” ServiceNow scheduled job.
  5. JAMS Request Get Scheduler Data: Import data from a scheduler, request is automatically created from the “JAMS Get Failures” ServiceNow scheduled job.

The following custom workflow activities are included; they can be used in your own workflows and are accessible from the Packs tab in the workflow designer canvas:

Service Catalog

Three record producer service catalogs are included with version 2 of this application. They are available to users with the JAMS User role, and can be found in the JAMS Scheduling category.

All record producers generate JAMS Job Request records and set the request type value so the correct workflow will be triggered.

  1. Create JAMS Job
  2. Edit JAMS Job
  3. Submit JAMS Job

External Systems Connection

All external connections to JAMS Schedulers are handled by the MID Server.

Testing the Configuration 

All communications with the JAMS Server are handled through the MID Server and ECC queue. Use the ECC queue records to monitor the transactions.

Troubleshooting

A first step to troubleshooting is to enable debug level logging using the JAMS Scheduler > Properties module. This action then forces additional logging through the System Logs > Application Logs module. Filter this list using the JAMS Alert Management App Scope.

To troubleshoot workflows, open the JAMS Scheduler > Workflow Contexts. Select the context in question and review the Workflow Log related list for possible error information.

 

 


Topic updated: 2/7/2017
©2017 MVP Systems Software, Inc. All Rights Reserved.

Send comments on this topic.