beautypg.com

Cpupower – Visara Master Console Center Scripting Guide User Manual

Page 89

background image

Chapter 5 Script Commands

Scripting Guide

89

CPUPOWER

Syntax:

CPUPOWER( %Port, %Operation)

Description:

Switches a CPU’s power ON or OFF.

Action:

The power to the CPU that is connected to the specified MCC power

unit port is turned ON or OFF.

Parameters:

%Port. Numeric expression. The assigned power port number to

which the CPU is connected. Refer to Ports on page 24 for more
information.
%Operation. Numeric expression. ON switches on the power and

OFF switches off the power.

Returns:

N/A.

Notes:

1. Refer to Manifest Constants on page 42 for the constants reference

list.

2. When powering off, first ensure that the operating systems are

shut down.

3. This function is not commonly used.

Example:

%Operation := OFF
CPUPOWER( 1, ON)
CPUPOWER( 1, %Operation)

See Also:

DIUNIT, DOUNIT, HUMID, TEMP