Use the Raise Event tool to trigger RBA rules from another computer.
The rule set that you want to trigger must exist and must contain a Remote Trigger root event.
RaiseEvent.exe
) by following these steps:C:\Program Files (x86)\Kodak\RBA\bin
folder, and copy the RaiseEvent.exe
file to the remote computer.RaiseEvent.exe
file on the remote computer.RaiseEvent.exe
file, and type: raiseevent <ruleset> [<strings>] [-host <hostname>] [-port <portnumber>] [-context <context>] [-files <paths>] [-dirs <paths>] [-ip <ipaddress>] [-wait <timeout> [-waitport <waitport>]]
Replace the variables in the command using the following guidelines:Variable | Description |
---|---|
ruleset | The full path of the rule set that you want to trigger, starting with the directory where it is located and ending with the rule set's name. Separate groups with a / symbol (forward slash). The path is case-sensitive. If the path contains a space, enclose the path in quotation marks. |
strings | (Optional) Up to twelve strings (alphanumerical data), numbered from 0 to 11. This is useful if you want to communicate text data to the recipient rule set. |
-host <hostname> | (Optional) The name of the Prinergy primary server. Omit this parameter if you are on the primary server. |
-port <portnumber> | The port on the primary server for the command to connect to RBA—for example, |
-context <context> | The context or environment where the rule set is enabled. If it is enabled in a job context, enter the job name or GUID (the globally unique identifier for the job). The System context is the default context if no context parameter is specified. |
-files <paths> | (Optional) One or more file paths, separated by semicolons. This is useful if you want to communicate file paths to the recipient rule set. |
-dirs <paths> | (Optional) One or more directory paths, separated by semi-colons. This is useful if you want to communicate directory paths to the recipient rule set. |
-ip <ipaddress> | The IP address shown to the primary server. This parameter applies only to computers with more than one network card. |
-wait <timeout> | How long to wait before triggering the rule set.
|
-waitport <waitport> | The port that the Raise Event software should monitor to receive the message from the server to stop waiting. If unspecified, any available port is used. |
For example, raiseevent "Remote Trigger Create Job" -host MyServer -port 61235 -context Customer123
ECHO ON
REM This batch file sends a command to a specific server and the RaiseEvent tool,
REM which triggers a specific rule set and passes it up to six strings.
REM
REM Notes
REM - EXEPATH must use a drive letter, not a UNC name. The default location of
REM RaiseEvent.exe is drive C.
REM - RULEPATH is the path of the rule set groups. It is case sensitive. If spaces exist,
REM surround it in quote marks
REM - JOB is the job name (for a job rule set) or "SYSTEM" (for a system rule set).
REM
SET EXEPATH="C:\Program Files\Kodak\RBA\bin\RaiseEvent.exe"
SET RULEPATH=Test/RaiseEvent/RemoteTrigger_WriteText
SET STR1="String1"
SET STR2="String2"
SET STR3="String3"
SET STR4="String4"
SET STR5="String5"
SET STR6="String6"
SET PORT=61235
SET SERVER=Test
SET JOB=Test
SET CMD=%EXEPATH% %RULEPATH% %STR1% %STR2% %STR3% %STR4% %STR5% %STR6% -host %SERVER% -port %PORT% -context %JOB%
REM
%CMD%
Pause