Forum Discussion
Cindy_127211
Nimbostratus
May 26, 2005Setting LocalLB.NodeAddress states
We would like to use the LocalLB method to LocalLB.NodeAddress get_session_status and set_session_enabled_state methods to get the status of a Node and then set the status of the node. Howeve...
mehdis_60232
Nimbostratus
Jun 19, 2008Hello,you have to know well this class , and i have i problem.
in NodeAdressmain.cs i can't use those two methods:
-get_object_status
-get_statistics
When i try to use it, i have the exeption :
exeption caught in LocalLB::urn:iControl:LocalLB/NodeAddress::get_statistics()
Eception : Common : OperationFailed
primary_error_code : 17238054
secondary_error_code : 0
error_string : 01070826:3: current Update Partition Error ...
I have the same thing for get_object status.
I just want to display the Node statistics.
methods in localLBAddress.cs(samples SDK):
///
[System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:iControl:LocalLB/NodeAddress",
RequestNamespace="urn:iControl:LocalLB/NodeAddress", ResponseNamespace="urn:iControl:LocalLB/NodeAddress")]
[return: System.Xml.Serialization.SoapElementAttribute("return")]
public LocalLBNodeAddressNodeAddressStatistics get_all_statistics()
{ object[] results = this.Invoke("get_all_statistics", new object[0]);
return ((LocalLBNodeAddressNodeAddressStatistics)(results[0]));
}
///
public System.IAsyncResult Beginget_all_statistics(System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("get_all_statistics", new object[0], callback, asyncState);
}
///
public LocalLBNodeAddressNodeAddressStatistics Endget_all_statistics(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((LocalLBNodeAddressNodeAddressStatistics)(results[0]));
}
In NodeAdressMain:
// Get Statistics
NodeAddress.LocalLBNodeAddressNodeAddressStatistics statistics =
NodeAddress.get_statistics(node_list);
NodeAddress.CommonStatistic[] statistic_list = statistics.statistics.statistics;
for (int j = 0; j < statistic_list.Length; j++)
{
Console.WriteLine(
statistic_list[j].type.ToString() + " : " + build64(statistic_list[j].value)
);
}
Plz i need some help and i'm a begginer in c
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
