Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The "Token Notification Service" task periodically checks if tokens are about to reach their renewal expiration 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 Expiration Notice (days):" (see below);

Image RemovedImage Added

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";

Image Removed

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;

...

Column
width30

Image Removed

...

width70%

...

titleserver
Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

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 Image Removed button, and a new window titled "Parameter - Edit" will open;

Image Removed

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

...

titleClick here for more information on editing task parameters

...

Editing

...

Editing and Scheduling the Task

Viewing and Editing the task

...

Section


Column
width30


Column
width70%




Expand
titleName:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

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




Expand
titleDescription: (Optional)


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

Enter a description of what the task will do.




Expand
titleScript Version: (Optional)


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

The version number of the task.




Expand
titleSchedule:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

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




Expand
titleEnable Schedule:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

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




Expand
titleRepeat Count:


Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

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

Expand
titleScript:
Panel
borderColorgrey
bgColor#F8F8F8
borderStyledashed

import com.deepnet.das.services.TokenNotificationServiceimport 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.

...

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

Image Removed

Image Added

You can add a description, however, this is optional. Click Ensure the parameter "Execute On Server" contains the computer name of the server the task is to be run on, then click the  button. 

...

titleClick here for more information on manually executing tasks

...