Skip to main content

NIM

Create a license evaluation task

A license evaluation task requires multiple components to work properly. This article will guide you through creating the following items:

  • A scheduled task

  • An notification template

  • An event filter

  • An even action

Create the Scheduled Task
  1. Go to Scheduler > Overview.

  2. Click Add.

  3. In the Type dropdown, select License Evaluation. Click Save.

    license_eval_scheduler.jpg
  4. On the Schedule tab, enable the task and modify its schedule as you see fit.

  5. Save the task.

Create the Notification Template
  1. Follow the instructions to create an notification template.

  2. In the Notification Event dropdown, select the license notification task you created previously.

    license_eval_notification_event.jpg
  3. Fill out the From, To, and Subject fields as you see fit.

  4. In the body, paste the following text. You may customize its formatting, but the variable names should remain as-is.

    Time of Evaluation: {var.event.data.DateTimeEvaluation}
    License is Valid: {var.event.data.LicenseValid}
    License Expires: {var.event.data.LicenseExpirationDate}
    Days Remaining: {var.event.data.LicenseExpirationDaysLeft}
    License is on Grace Period: {var.event.data.LicenseUsingGracePeriod}
    Max Relations: {var.event.data.LicenseRelationSizeMax}
    Relations Used: {var.event.data.LicenseRelationSizeUsed}
    Relation Percentage: {var.event.data.LicenseRelationSizeUsedPercentage}
    Max Systems: {var.event.data.LicenseSystemCountMax}
    Systems Used: {var.event.data.LicenseSystemCountUsed}
    Systems Remaining: {var.event.data.LicenseSystemCountAvailable}
  5. Save the notification

Create the Event Filter

By default, the license evaluation will notify administrators of the license's current status every time it runs. Most of the time, however, this information is not necessary since there is nothing wrong with the license. In order to have NIM only send the notification when there is a problem, we need to create an event filter that will cause the notification to be sent only if the license is invalid.

  1. Follow the instructions to create an event filter.

  2. In the Event type dropdown, select license-evaluation, and select the name of the scheduled task you created previously in the Event name dropdown. Click Add.

    license_eval_event_filter.jpg
  3. Click Add. A new row is added to the filter.

  4. In the Property dropdown of the new row, select LicenseValid (data). In the Operation dropdown, select false.

    license_eval_event_filter_property.jpg
  5. Click Save.

Create the Event Action
  1. Follow the instructions to create an event action.

  2. In the Event type dropdown, select license-evaluation. In the Event name dropdown, select the name of the scheduled task you created previously. Click Add.

    license_eval_event_action.jpg
  3. In the Filter dropdown, select the name of the event filter you created. In the Template dropdown, select the name of the notification template you created.

    license_eval_event_action_config.jpg
  4. Click Save.