OpenClovis Logo

API Usage Examples
Chassis Management

Code Examples. More...

Code Examples.

The following code snippet requests the cold reset of a blade in physical slot 6 in chassis 0. Before the actual call, it first verifies the version of the client library. The code relies on an imaginary handleCriticalError() function for reporting exceptions.

ClRcT rc = CL_OK;
rc = clCmVersionVerify(&version);
if (CL_OK != rc) {
/* We simply bail out if we detect a version mismatch */
handleCriticalError(rc, "CM service version mismatch");
}
if (CL_OK != rc) {
handleCriticalError(rc, "Blade reset failed");
}

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen