Scheduling Security Synchronizer

You may want to implement a scheduling strategy if you make frequent changes to the Windows security configuration that will affect the iFIX security configuration.

The Security Synchronizer application does not have a self-scheduling function, but you can use scheduling software or a third-party scheduling tool to run the application at specified times or intervals.

iFIX offers a scheduling tool, called the Scheduler, that helps you easily run the Security Synchronizer at designated times. Refer to the Mastering iFIX manual for details on using this tool.

You may want to consider using the Scheduled Task Wizard located on the Control Panel to schedule the Security Synchronizer.

Using the Task Scheduler Service

You can use this service to schedule programs at designated times and intervals.

To use the Windows Task Scheduler:

  1. Log in to Windows as a member of the local Administrator group. Only members of this group can schedule tasks for execution.
  2. Ensure that the Task Scheduler service is running by checking the Services dialog box from Control Panel. The Task Scheduler service displays in the list.
  3. Open a command prompt window and type the At command, followed by the appropriate parameters to indicate the name of the task and the time of execution. Refer to Windows Help for more information about the At command and command line parameters used by the Task Scheduler.
  4. View the task you scheduled by typing "at" at the command line. Do not supply any parameters. The list of scheduled tasks displays.

Examples

To schedule the SecuritySynchronizer.exe program to run on a local computer every Monday and Thursday at 3:00 a.m., you should enter the following command:

at 3:00 /every:M,Th SecuritySynchronizer.exe command line parameters

where <command line parameters> represents the command line parameters to be passed to SecuritySynchronizer.exe, such as /L and /R. Refer to Using the Command Line for more information on command line parameters.

To schedule the SecuritySynchronizer.exe program to run on the 25th day of each month at 6:00 p.m. on a computer named View3, you should enter the following command:

at\\View3 18:00/next:25 SecuritySynchronizer.exe <command line parameters>

Using an iFIX Database Program Block

You can use an iFIX database Program block to schedule the run time for Security Synchronizer. Due to the limit on the length of command lines in Program blocks, you must create a Windows command file that executes from the Program block.

A Windows command file is a text file that contains the command line to run, including the program name and any command line parameters. The command file must end with the .CMD file extension.

The Windows command file you use must reside in the iFIX root directory (C:\Program Files (x86)\Proficy\iFIX) if no path is specified on the Program block command line, or you must specify the full path to the file in the Program block command line.

An example of the text of a command file used to run the Security Synchronizer:

SecuritySynchronizer.exe /DPlantA /L /T /R

NOTE: This command file is saved as SecSync.cmd.

An example of a Program block command line that runs the above command file using the Program block's RUNTASK command if the SecSync.cmd file is in the iFIX base path:

RUNTASK SecSync.cmd

An example of a Program block command line that runs the above command file using the Program block's RUNTASK command if the SecSync.cmd file is in the C:\ directory:

RUNTASK C:\SecSync.cmd

See Also

How Do I...