SmartProcessMonitor Command Line Options

Syntax

[Path]SmartProcessMonitor Find=<processname>   AlertList=<AlertListName>  Message=<message> CommandLine=<commandline>   WorkingDir=<workingdirectory>  Priority<priorityvalue>  ProcessAction=<actionvalue>

Important:  Any parameter that has spaces in it must be enclosed in double-quotes.  

[path]

SmartProcessMonitor is a program that is installed when you install SmartAppLets. You need to specify the full path to the program to run it successfully or have it in your search path.

Example:

c:\Program Files\SmartBatch\bin\SmartProcessMonitor

AlertList

The name of an existing SmartBatch alert list.

CommandLine

The command line and any parameters that are required to start a program. For example, to start notepad with a specific filename, the command line is:

CommandLine="notepad.exe c:\myfiles\myfile.txt"

Note: The value for the CommandLine is inclosed with quotes. Any SmartAppLet parameter that has spaces as part of the value must be enclosed in quotes.

Find

Specifies a process that you want SmartProcessMonitor to look for. If you precede the Find value with the "+" plus sign, this means you expect the process to be running. If it is not running, it will be started if the CommandLine value is present or a notification event will be create if the database and alert list values are present. If you precede the Find value with a "-" hyphen character, this means you expect the process will not be running. If it is running a notification event will be generated. You can also specify a Process action to terminate the process using the ProcessAction command line argument described below.

Message

The text to be sent in a notification event.

Priority

Indicates the priority for the process to be started. The valid values are:

NORMAL

IDLE

HIGH

REAL

If the priority is not specified, the value of NORMAL is assumed.

ObjectName

Indicates the name of a SmartBatch object that is used when an action occurs. The Object Name combined with Object Type is used to execute on demand the object. The Object Name and Type must exist in the SmartBatch database. If the Object Name or Object Type are not specified no object will be executed on demand.

ObjectType

Indicates the type of a SmartBatch object that is used when an action occurs. The Object Type combined with Object Name is used to execute on demand the object. The Object Type must be one of: Operation, Step or Job.

ProcessAction

You can stop a process by specifying a ProcessAction value of STOP. This will cause the program to be terminated immediately. If it is possible that the process is in the middle of processing that could cause an inconsistent state in a database or any other partial results if it is stopped, you may not want to stop the process in this way.

WorkingDir

Specifies the working directory for the program to start in CommandLine. The working directory is necessary for many programs that look in a specific directory for files. If this value is not specified, the working directory for the SmartProcessMonitor program is used.