Forum Discussion
Ray_Morris_7896
Nimbostratus
Aug 02, 2006get_member_statistics example
Hello,
The SDK gives good examples of how to use ITCMLocalLBPool, but there is no example for the gathering of statistics for pool members (it only shows pool stats and I can find no other r...
Ray_Morris_7896
Nimbostratus
Aug 03, 2006Thanks Joe,
I should have mentioned that I'm using C (your code looks a bit foreign...)
I was able to use your suggestion and come up with this piece (which is nested inside another loop):
Pool.ITCMLocalLBPoolMemberStatisticsEntry [] memstats = LocalLBPool.get_all_member_statistics(pool_name);
for(int j=0; j{
string memAddr = memstats[j].member_definition.address;
trow = new TableRow();
tcell = new TableCell();
tcell.Controls.Add(new LiteralControl(memAddr.ToString()));
trow.Cells.Add(tcell);
Table1.Rows.Add(trow);
}
This code will compile without error, but when I call it in the browser, I get an error that the "Object reference not set to an instance of an object." Any suggestions?
I'm much closer than I was. Thanks for your help.
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