Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

10.2.2 poffcli Power Off Command

Synopsis

poffcli HostName [/sd:ShutdownMode] [/ef]
      [/rc:nn /ri:nnnn]

Description

The poffcli command powers off the client that supports the Windows power-off mechanism. It enables a remote client to be turned off automatically.

Parameters

HostName

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

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

/sd:ShutdownMode

Specifies the mode to turn off the power. Select one of the following:

poff:

Turns off the system power.

reboot:

Reboots the system.

down:

Shuts down the system.

If omitted, the system is turned off as the poff mode is defaulted.

/ef

Specifies forced power off.

Specifying this parameter forces the running application to be terminated. At this time, the data used by those applications is not saved.

The active desktop on the client should be disabled. Otherwise, the active desktop recovery function may be started automatically the next time you start the OS.

/rc:nn

Specifies the retry count in case an error occurs in powering off clients.

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.

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.

This parameter is valid if 1 or a greater value is specified to nn in the /rc parameter.

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

The following example performs power off for the client "foo".

poffcli foo /sd:poff

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
[Client host name] HostName
[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.

If an error occurs before power off, a message is output in the following format:

[Process start time] MM-DD-YYYY HH:MM:SS
[Command error] Error message
[Process end time] MM-DD-YYYY HH:MM:SS

For details on the messages, see the Systemwalker Operation Manager Message Guide.

Cautions