Server Enabling
You can adaptive-enable the resource by using the Server Enabling interfaces.
The Server Enabling function has four interfaces that are described below:
· getServerAttr
Field |
Description |
Interface Name |
getServerAttr |
Function |
This interface is to retrieve the resource attribute values. |
Parameter |
The parameters of the interface are: · serverName (String): The resource name as shown in the Resource view of the ACC. · attrName (String): The attribute name. The attribute name must be one of these server attributes and are case sensitive: CPUCache, CPURate, IPAddress, MachineType, NumberOfCPU, OpSys, OpSysBits, OpSysRelease, PerformanceInSAPS, and PhysicalRAMinMB. |
Return |
Return the attribute value. |
· setServerAttr
Field |
Description |
Interface Name |
setServerAttr |
Function |
This interface is used to set the resource attributes. |
Parameter |
The parameters of the interface are: · serverName (String): The resource name as displayed in the Resource view of the ACC. · attrName (String): The attribute name. The attribute name must be one of these server attributes and are case sensitive: CPUCache, CPURate, IPAddress, MachineType, NumberOfCPU, OpSys, OpSysBits, OpSysRelease, PerformanceInSAPS, and PhysicalRAMinMB. · attrName (String): The attribute value. |
Return |
Return true or false: · true: Set the resource attribute successfully. · false: Set the resource attribute failed. |
· detachServer
Field |
Description |
Interface Name |
detachServer |
Function |
This interface is used to adaptive-disable the resource. |
Parameter |
The parameters of the interface are: · serverName (String): Adaptive-enabled resource name. · pool (String): Pool name that the resource belongs to. · interfaceName (String): Physical interface of the network. · networkName (String): Network name that the resource belongs to. |
Return |
Return true or false: · true: Adaptive-disable the resource successfully. · false: Adaptive-disable the resource failed. |
· attachServer
Field |
Description |
Interface Name |
attachServer |
Function |
This interface is to adaptive enable the server. |
Parameter |
The parameters of the interface are: · serverName (String): Resource name as displayed in the Resource view of the ACC. · pool (String): Pool name that the resource belongs to. · interfaceName (String): Physical interface of the network. · networkName (String): Network name that the resource belongs to. |
Return |
Return true or false: · true: Adaptive-enable the resource successfully. · false: Adaptive-enable the resource failed. |