Previous Topic: VARIANT Statement—Specify Variant NameNext Topic: WAKEHOST Statement—Specify the Computer to Ping


WAITMODE Statement—Specify Whether to Monitor Conditions Immediately or Continuously

The WAITMODE statement specifies whether the job waits until the monitor conditions are met or tries to verify them immediately.

Supported Job Types

This statement is optional for the following job types:

Syntax

This statement has the following format:

WAITMODE NOW|WAIT
NOW

Checks for the conditions immediately. If the conditions are met, the job completes successfully. If the conditions are not met, the job fails.

WAIT

Waits for the conditions to occur. When the conditions are met, the job completes.

Notes:

Example: Monitor CPU Usage Until It Falls in a Range

This example monitors CPU usage. The job completes when at least 20 percent and at most 90 percent of the CPU is being used.

AGENT MONAGT
CPU FROM(020) TO(090) USED
WAITMODE WAIT

Example: Monitor Disk Space Usage Until It Falls in a Range

This example monitors disk space usage. The job completes when at least 60 percent of disk space is available on the C drive.

AGENT MONAGT
DISK C FORMAT(PERCENT) FROM(60) TO(100) AVAILABLE
WAITMODE WAIT