27.02.2013 Views

ExpressCluster X 2.0 for Windows Reference Guide - Nec

ExpressCluster X 2.0 for Windows Reference Guide - Nec

ExpressCluster X 2.0 for Windows Reference Guide - Nec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 <strong>ExpressCluster</strong> command reference<br />

Shutdown hook configuration command<br />

328<br />

clphookctrl<br />

Command line:<br />

clphookctrl -s [-m mode]<br />

clphookctrl -m mode<br />

clphookctrl -t<br />

The clphookctrl command configures the shutdown hook function.<br />

Description This command configures the function which hooks the OS shutdown<br />

process to execute node shutdown or restart of <strong>ExpressCluster</strong>. By using this<br />

function, OS shutdown or restart can be per<strong>for</strong>med after successfully<br />

terminating or moving the operating failover group when OS shutdown is<br />

per<strong>for</strong>med by other than <strong>ExpressCluster</strong>.<br />

Option -s Enables the shutdown hook function.<br />

-t Disables the shutdown hook function.<br />

-m mode Configures the process to be executed after the OS<br />

shutdown hook. Specify either of the following <strong>for</strong><br />

mode:<br />

SHUTDOWN Server shutdown (preset value)<br />

REBOOT Server restart<br />

Return<br />

Value<br />

0 Completed successfully.<br />

Other than 0 Terminated due to a failure.<br />

Notes This command must be executed by a user with the administrator<br />

privilege.<br />

The configuration by the -s option is enabled when the <strong>ExpressCluster</strong><br />

Server service is started next time. Configuration by other options are<br />

enabled immediately.<br />

Shutdown hook function cannot be used in <strong>Windows</strong> Server 2008.<br />

Examples If there is a possibility that OS shutdown is executed by the application<br />

or middleware other than <strong>ExpressCluster</strong>, you can cancel the OS<br />

shutdown to per<strong>for</strong>m <strong>ExpressCluster</strong> server shutdown by executing the<br />

following command in each cluster server.<br />

# clphookctrl -s<br />

Note that in this case although OS restart is executed, it is shut down so<br />

that the server is not restarted. Upon restarting the OS, it is required to<br />

execute the following command to change the operation settings in<br />

advance.<br />

<strong>ExpressCluster</strong> X <strong>2.0</strong> <strong>for</strong> <strong>Windows</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!