JRM
Nimbostratus
Nov 22, 2010C# iControl WideIP to LTM Pool
We have GTM devices in several datacenters and when trying to find out where a website is active it sometimes takes a few clicks to get the data - and it isn't in one view. So I was trying to make a little web page to show GTM WIP --> GTM Pool --> Server Name / Datacenter --> LTM Virtual Server --> LTM Pool. Eventually I would like to have the ratio at the GTM level if I am split between datacenters instead of 100% traffic to one datacenter.
I have some working code, but I am sure there is a much more efficient way to do what I am trying to do, so I am just looking for a better way to get information for a specific Wide IP pool - specifically searching for just one instead of iterating through all of them and can I get back the "Server Name" and "Data Center" fields. Also the same applies at the pool level.
My output (pre-formatting) is like this:
Info: datacenter1-external-ltm1 datacenter1-internal-ltm1 gtm_pool gtm_datacenter ltm_pool_the_VS_points_To
Thanks
Code attached: