Purpose: | Monitor Windows job activity |
Format: | JOBMONITOR [/C [jobname]] |
JOBMONITOR jobname [* TIME PROCESS MEMORY] n command
jobname - The Windows job to monitor
* - Monitor all activity for the job
TIME - Monitor the end of job and process time notifications
PROCESS - Monitor the process notifications (process limit, new process, zero processes, end of process, abnormal process exit)
MEMORY - Monitor the job and process memory limit notifications
See also JOBS.
Usage:
JOBMONITOR will set four environment variables when a condition is triggered:
_jobaction - The type of notification, which will be one of these values:
EndOfJobTime
EndOfProcessTime
ActiveProcessLimit
ActiveProcessZero
NewProcess
ExitProcess
AbnormalExitProcess
ProcessMemoryLimit
JobMemoryLimit
_jobpid - The process PID
_jobprocessname - The name of the process
_jobtime - The time (hh:mm:ss.ms) the notification was received
Option: