You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

The "Token Notification Service" task periodically checks if tokens are about to reach their renewal time, and sends out notification messages to the users.

A token expiry notification may be sent based on the date of token creation and the value specified in the DeviceID policy setting "Token Lifetime (days):" (see below);

The task can be found by navigating to "Administration | Tasks", then scrolling down to the task "Token Notification Service";

Task Parameters

The task parameters are used by the task script to determine which tokens are to be deleted and are edited by left clicking on the context menu of the task and selecting "Parameters";

A new window titled "Task Parameters" will now open that lists the parameters making them available for editing, and the default parameters for this task are as follows

The "Token Notification Service" task uses the following parameters;





Specify the computer name of the server the task is to be run on,.


If you have multiple DualShield backend servers, then you need to specify the computer name of the server that will run this task

Select the parameter "Server" then click the  button, and a new window titled "Parameter - Edit" will open;

At the parameter "Default Value:" supply the name of the server the task is to run on., then click to update the parameter.


Editing and Scheduling the Task

Viewing and Editing the task

By default, the Token Notification task is not enabled, but may be enabled by left clicking on the context menu of the task and selecting "Edit";

A new window will now open titled "Task - Edit";




Enter the name to be assigned to the task within the management console.


Enter a description of what the task will do.


The version number of the task.


This field is used to specify when the task is scheduled to executed.


This field will determine if the task schedule is enabled (if enabled the task will execute at the scheduled time).


Specifies how many times the task should be repeated after the task is executed.



import com.deepnet.das.services.TokenNotificationService
import com.deepnet.das.util.Util

if(server && ! InetAddress.getLocalHost().getHostName().equalsIgnoreCase(server)){
            setEndMessage("Task execution has been bypassed")
            return;
        }

                Util.getBean("tokenNotificationService", TokenNotificationService.class).sendTokenNotification()


Scheduling the Task

Select the "Enable Schedule" checkbox to ensure the task schedule is activated, then use the pencil icon ("")  to specify the time and frequency settings for automated task execution.

  • Unable to render {include} The included page could not be found.

Manual Task Execution

The task can be run manually from the management console by left click on the context menu of the task, then selecting "Run";

A new window will open titled "Execute Task" will then open (the window will be populated with the default task property settings);

Ensure the parameter "Execute On Server" contains the computer name of the server the task is to be run on, then click the  button. 

  • Unable to render {include} The included page could not be found.
  • No labels