Top
Systemwalker Operation Manager V17.0.1 Reference Guide

10.2.1 poncli Power On Command

Synopsis

poncli HostName
     [/ip:IPAddress /mac:MACAddress /snm:SubnetMask]
     [/wt:WaitTime] [/rc:nn /ri:nnnn]

Description

The poncli command powers on the client that supports a Wakeup on LAN feature, which enables a remote client to be booted automatically.

This command also allows you to power on the client on another subnet if in a TCP/IP environment.

This command is not supported in IPv6 environments. Use this command in IPv4 environments or in environments where dual stack is supported.

Parameters

HostName

Specifies a host name of the client to be powered on.

Specify the host name in HostName within 15 alphanumeric characters. If HostName contains a space character, enclose it in double quotation marks.

/ip:IPAddress

Specifies an IP address of the client to be powered on. The IP address is specified in a decimal string, which is something similar to "133.161.222.110".

If omitted, the command reads the host information definition file to retrieve the IP address of the target client.

/mac:MACAddress

Specifies a MAC address of the client to be powered on. The MAC address is specified in a hexadecimal string, which is similar to "00-00-0e-9d-2c-38". If omitted, the command reads the host information definition file to retrieve the MAC address of the target client.

/snm:SubnetMask

Specifies a subnet mask of the client to be powered on. The subnet mask is specified in a decimal string, which is something similar to "255.255.255.0".

If omitted, the command reads the host information definition file to retrieve the subnet mask of the target client.

/wt:WaitTime

Specifies the wait time to ensure the client is powered on. Specify an integer value between 1 and 999 for WaitTime in seconds.

If omitted, waiting is not performed.

If this parameter is specified, a check to see whether the power is on is performed after the specified wait time elapses. That is, even if the power has been turned on before the wait time, the command still waits for the specified time to elapse.

If it is confirmed that the power is on after the wait time elapses, the command terminates normally. If not, it terminates abnormally.

/rc:nn

Specifies the retry count in case an error occurs in powering on the client.

Specify an integer value between 0 and 99 for nn. Setting any other value results in an error. If omitted, no retry is performed.

/ri:nnnn

Specifies the retry interval in case an error occurs. This parameter is valid if 1 or a greater value is specified to nn in the /rc parameter.

Specify an integer value between 0 and 9999 (in seconds) for nnnn. Setting any other value results in an error. The default value is 0.

Return Values

Return value

Meaning

0

Completed

Value other than 0

Abended

Command Location

Solaris

/opt/FJSVsnjss/bin

HP-UX

/opt/FHPsnjss/bin

AIX

/opt/FAIXsnjss/bin

Linux

/opt/FJSVsnjss/bin

Example

In this example, the client "foo" is powered on.

MAC address:

00-00-0e-9d-2c-38

IP address:

133.161.222.110

Subnet mask:

255.255.255.0

poncli foo /mac:00-00-0e-9d-2c-38 /ip:133.161.222.110 /snm:255.255.255.0

Execution Results/Output Format

After the command has been through processing, the information at command completion is output to the standard output. The contents to be output are shown below:

[Process start time] MM-DD-YYYY HH:MM:SS
[Host name] HostName
[MAC address] MAC address
[IP address] IP address
[Subnet mask] Subnet mask
[Retry count] Number of retries performed
[Error] Error message
[Process end time] MM-DD-YYYY HH:MM:SS

In [Error], "None" is output if the command completed successfully. A message is output if the command is canceled or failed. For details on the messages, see the Systemwalker Operation Manager Message Guide.

Cautions