Job Management Partner 1/Software Distribution Setup Guide

[Contents][Glossary][Index][Back][Next]

10.7.5 Task setup procedure

This subsection 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
(2) Changing a task schedule
(3) Deleting a task
(4) Task execution results

(1) Enabling a task

A task for Asset Information Manager Subset that has been created in Windows Task Scheduler is disabled by default. To use the task, you must enable it.

Also, for details about running tasks in a 64-bit OS, see 10.11(2) Notes on executing commands and tasks on a 64-bit OS.

To enable or disable a task registered in Task Scheduler:

  1. On Windows Control Panel, double-click the Scheduled Tasks icon.
    The Scheduled Tasks window appears.
  2. Select the task that you want to enable (or disable) and display its properties.
    The selected task's Properties dialog box appears.
  3. On the Task page, select the Enabled [scheduled task runs at specified time] check box.
    To disable the task, clear this check box.
  4. If you are using Windows Server 2003(x64), you need to change the file specified in Run.
  5. 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, 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.

In the table, AIM indicates the Asset Information Manager Subset installation folder.

Table 10-9 Run setting for each task

Task name Run setting
Data maintenance "AIM\exe\jamscript.exe" -f "AIM\scriptbatch\DataMaintenance.txt"
Delete change log "AIM\exe\jamscript.exe" -f "AIM\scriptbatch\RemoveRecord.txt" -s TARGET=A -s MONTH=6
Take inventory "AIM\exe\jamTakeDMInventory.bat"
Acquiring directory information "AIM\exe\jamscript.exe" -f "AIM\scriptbatch\DMDirectory.txt"

(2) Changing a task schedule

You can change a task's execution date and time. You can also add a schedule.

(3) Deleting a task

To delete an unneeded task:

  1. On the Windows Control Panel, double-click the Scheduled Tasks icon.
    The Scheduled Tasks window appears.
  2. Select the task you wish to delete, and then from the File menu, choose 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 the Scheduled Tasks icon is double-clicked.

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.

The following table describes the return values.

Return value Description
0x0 Normal end.
0x1 No corresponding data was found.
0x2 or greater Terminated with some other error.