Previous Topic: WAITMODE Statement—Specify Whether to Monitor Conditions Immediately or ContinuouslyNext Topic: WAKEPASSWORD Statement—Specify the Wake on LAN Password


WAKEHOST Statement—Specify the Computer to Ping

The WAKEHOST statement specifies the computer to ping after the Wake on LAN (WOL) signal is sent. You can specify the WAKEHOST statement, together with the WAKEPORTS and TIMEOUT statements, to confirm that the computer is awake.

Note: If you do not provide any ping information, the job completes immediately after the WOL signal is sent without verifying whether the signal worked.

Supported Job Type

This statement is optional for the Wake on LAN job type.

Syntax

This statement has the following format:

WAKEHOST host
host

Specifies the host name or IP address of the computer to ping after the Wake on LAN (WOL) signal is sent.

Limits: Up to 100 characters; case-sensitive

Example: 172.24.36.107 (IPv4) or 0:0:0:0:0:FFFF:192.168.00.00 (IPv6)

Example: Broadcast the WOL Signal and Ping a Port

This example broadcasts the WOL signal to the server identified by the 172.16.00 IP address and the 00-1E-4F-C1-0F-FE MAC address. After the WOL signal is sent, the agent pings port 7 of the host computer to ensure it is available. If port 7 is available, the job completes successfully; otherwise, it fails. The job uses the default timeout for the ping.

AGENT AGENTNME
WAKEHOST host
WAKEPORTS 7
BROADCAST 172.16.0.0
MAC 00-1E-4F-C1-0F-FE