5.9.2 Task setup procedure
This section describes the procedures for using Windows Task Scheduler to enable and disable tasks, change a task execution schedule, and delete tasks.
- Organization of this subsection
(1) Enabling a task
By default, all Asset Console tasks created in Windows Task Scheduler are disabled. To use a task, you must enable it. You can disable any task that you are not using.
In addition, to use a task in a 64-bit OS, see F.2 Notes on executing commands and tasks in a 64-bit OS.
To enable or disable a task registered in Task Scheduler in Windows Server 2003:
-
On Windows Control Panel, double-click the Scheduled Tasks icon.
The Scheduled Tasks window appears.
-
Select the task that you want to enable (or disable) and display its properties.
The selected task's Properties dialog box appears.
-
On the Task tab, select the Enabled [scheduled task runs at specified time] check box.
To disable the task, clear this check box.
-
Click the OK button.
The task is enabled (or disabled), and the task's Properties dialog box closes.
The results of task execution are confirmed from the Scheduled Tasks window, which is started by double clicking the Scheduled Tasks icon in the Windows control panel.
Switch the Scheduled Tasks window to detailed display, and then confirm the return value displayed for Last Result. For details, see the file ASTMESn.log.
The table below shows the Run setting for each task.
The notations WINDOWS and INSTALL in the table correspond to the following folders:
-
INSTALL: Asset Console installation folder
-
WINDOWS: Windows installation folder
Table 5‒12: Run setting for each task Task name
Run setting
Data maintenance (Asset Console)
"INSTALL\exe\jamscript.exe" -f "INSTALL\scriptbatch\DataMaintenance.txt"
Notification of invalid contract information (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamexpiration.vbs"
Notice of license excess (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamLicenseOver.vbs"
Totals number of licenses (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamSoftwareAddUp.vbs"
Notification of unauthorized install (Asset Console)
"WINDOWS\system32\cscript.exe" "INSTALL\exe\jamPermitInstall.vbs"
Delete change log (Asset Console)
"INSTALL\exe\jamscript.exe" -f "INSTALL\scriptbatch\RemoveRecord.txt" -s TARGET=A -s MONTH=6
Acquisition of ITDM2 - Manager management information (Asset Console)
"INSTALL\exe\jamTakeITDM2Info.exe"
(2) Changing a task schedule
You can change a task's execution date and time. You can also add a schedule.
-
Changing the execution date and time
To change a task execution date and time:
-
On the Windows Control Panel, double-click the Scheduled Tasks icon.
The Scheduled Tasks window appears.
-
Select the task whose execution date and time are to be changed and display its properties.
The selected task's Properties dialog box appears.
-
On the Schedule tab, change Schedule Task and Start time.
-
Click the OK button.
The task is modified to the specified schedule, and the task's Properties dialog box closes.
-
-
Adding an execution schedule
To add a task execution schedule:
-
On the Windows Control Panel, double-click the Scheduled Tasks icon.
The Scheduled Tasks window appears.
-
Select the task for which a schedule is to be added and display its properties.
The selected task's Properties dialog box appears.
-
On the Schedule tab, select the Show multiple schedules check box.
At the top of the Schedule tab, a drop-down menu of schedules and the New and Delete buttons appear.
-
Click the New button.
The schedule is added to the drop-down menu.
-
Set Schedule Task and Start time for the new schedule.
-
Click the OK button.
The new schedule is added to the task, and the task's Properties dialog box closes.
-
(3) Deleting a task
To delete an unneeded task:
-
On the Windows Control Panel, double-click the Scheduled Tasks icon.
The Scheduled Tasks window appears.
-
Select the task you wish to delete, and then from the File menu, select Delete.
The selected task is deleted.
(4) Task execution results
You can check the execution results of a task in the Scheduled Tasks window that is displayed when you double-click the Scheduled Tasks icon in the Windows control panel.
Set the Scheduled Tasks window to the detail view and check the return value that is displayed in Last Result. For details about the displayed information, see ASTMESn.log.
For the return values and their descriptions, see the description of each task in 5.9.1(1)Name and details of each task.