Previous Topic: WAKEPASSWORD Statement—Specify the Wake on LAN PasswordNext Topic: WEBPOSTING Statement—Specify Whether to Post the SAP Job Log and Spool on the Web


WAKEPORTS Statement—Specify the Ports to Ping

The WAKEPORTS statement specifies the ports to ping after the Wake on LAN (WOL) signal is sent. You can specify the WAKEPORTS statement, together with the WAKEHOST and TIMEOUT statements, to confirm that the computer is awake. If at least one of the specified ports is available, the job completes successfully; otherwise, it fails.

Note: If you specify the WAKEHOST statement and do not specify the WAKEPORTS statement, the following ports are pinged by default: 21, 22, 23, 80, 111, 135, 139, and 445.

Supported Job Type

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

Syntax

This statement has the following format:

WAKEPORTS port|'port,port,...'
port

Specifies a port to ping after the agent sends the Wake on LAN (WOL) signal.

Notes:

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