NCS_MaintenanceMode

Enables cluster maintenance mode functionality.

Platform:NetWare 6.5 only.

Syntax

 #include <ncssdk.h> 
  
 NCS_RETURN NCS_MaintenanceMode (
   NCS_HANDLE   Handle, 
   int         *setFlag, 
   int         *pMode);
 

Parameters

Handle

(IN) Specifies the maintenance mode application handle.

setFlag

(IN) Defines the use of pMode as defined:

Value

Description

0

pMode indicates the cluster’s maintenance mode status by returning a true or false.

true (!=0)

pMode is set to 0 to turn off or 1 to turn on maintenance mode.

pMode

(OUT) Defines the maintenance mode you want to specify for true in setFlag, and returns the current state if setFlag is false.

Return Values

Name

Description

SUCCESS

NCS_SUCCESS.

NCS_BAD_PARAMETER

See NDS Error Codes.

NCS_NOT_SUPPORTED

Message returned when NCS_ClusterIPAddress is called in a cluster running on a platform version less than NetWare 6.