MVP Systems Software  
email us now

Using SNMP Notifications With JAMS

Expand / Collapse
 

Using SNMP Notifications With JAMS


SNMP notifications can be used with JAMS to create alerts for the status of jobs and setups. An SNMP notification can be sent in the event that a job or setup completed successfully, failed, stalled, was short, or became runaway.

In order to use SNMP notifications with JAMS it is necessary to have an SNMP trap sender. An SNMP trap sender enables a JAMS notification job to send a notification across a network to the SNMP receiver.

A trap generator can be downloaded here:
http://www.ncomtech.com/trapgen.html

After installing this utility it is also necessary to download the JAMS MIB file. The MIB file allows a SNMP Trap receiver to understand the data context of the information being sent to it by the trap sender.

The JAMS MIB file can be downloaded here:
-You must be signed in to follow this link
http://www.jamssupport.com/Download50116.aspx

The next step is to open JAMS and create a new SNMP notification job. In this example we will create a new job definition and use PowerShell as the execution method. The following images will illustrate how to create the notification job:



You may have noticed that the job has three parameters defined at the top of the script. These parameters do not need to be defined in the parameter tab of the job definition, however they do need to be specified in the source tab as shown above. It is also important to notice that on lines 31-32 that I am navigating to the directory where I installed the trap sender. This file path will depend on the location where you installed the trap sender(TrapGen).

The first portion of the source is simply getting information about the job or setup that we want to create a notification for. The next image will show how to define the notifications that you want to send.



The source in the image above shows how to create a notification for a job that has failed, runaway, or was completed successfully. To get a better idea of what is going on in these notifications I will use the Failed notification as an example. Line 68 tells the trap generator where to send the notification on the network. This IP address should correspond to where you will have your SNMP trap receiver. Lines 68-77 reference objects from the JAMS MIB file and do not require any changes to get notifications working. Any of the lines that begin with "-v" can be re-ordered or removed to suit your notification requirements.

The last image shows the remaining source of the notification job and demonstrates how to create a few more notifications :



This job can now be specified as the notification job of any JAMS job or setup under the "Notify Names" tab of a job definition.

In order to receive notifications, you must specify the location of the JAMS MIB file in your SNMP Trap receiver. Your receiver should then be able to receive notifcations from JAMS.


Rate this Article:

Add Your Comments


Name: *
Email Address:
Web Address:
   
  
 
 
   
Verification Code:
*
 

Details
Last Modified:Friday, July 30, 2010

Last Modified By: phils

Type: HOWTO

Rated 5 stars based on 1 vote

Article has been viewed 375 times.

Options