Enabling mutually-aware support  Enabling encryption

Chapter 2: Using Coordination Modules

cm_get_value

Description

Because mutually-aware OpenSwitch servers do not currently support removing or adding Adaptive Servers to pools, before adding or removing a server, this API is used to retrieve the mutually-aware configuration value of of an OpenSwitch server.

If you select Use Mutual Aware Support? in the configuration GUI (MUTUAL_AWARE=1 in the OpenSwitch configuration file), servers can neither be added or removed from a pool.

Syntax

CS_RETCODE CS_PUBLIC cm_rp_set(cm, parm_name, parm_value)         cm_t *cm;         CS_CHAR *parm_name;         CS_CHAR *parm_value; 

Parameters

Example

If(cm_get_value( cm, "DEBUG",  parm_val ) !=CS_SUCCED)
{
     cm_error(“Unable to retrieve the value of the 'DEBUG' configuration
               parameter\n”); 
     return  CS_FAIL; 
}




Copyright © 2005. Sybase Inc. All rights reserved. Enabling encryption

View this book as PDF