Forum Discussion
iControl Monitor Info
How does one use iControl to identify whether a pool member is using an inherited monitor or a member specific monitor?
"Charles" had responded to my question before the new site - can't find the reference here on the new dev/central - so I'll re-ask.
Response from Charles:
If you query the /tm/ltm/pool/<members> or /tm/ltm/pool/<members>/ resource, look for the inheritProfile and monitor values. If the former is "enabled" and the latter is "default", the monitor for that member was inherited from the pool's setting.
The following code was loaded and debug turned on. The commented out lines compiled but failed. None of the structures that were retrieved contained info called "inheritProfile":
String[] poolList = interfaces.LocalLBPool.get_list();
CommonAddressPort[][] commonAddressPorts = interfaces.LocalLBPool.get_member_v2(poolList);
CommonEnabledState[][] commonEnabledStates = interfaces.LocalLBPool.get_member_inherit_profile_state(poolList, commonAddressPorts);
LocalLBMonitorInstanceState [] [] monitorInstanceState = interfaces.LocalLBPool.get_monitor_instance(poolList);
LocalLBPoolMonitorAssociation [] monitorAssociations = interfaces.LocalLBPool.get_monitor_association(poolList);
String[][] metadata = interfaces.LocalLBPool.get_metadata(poolList); //returns nothing
CommonPoolProfileAttribute[][] poolProfiles = interfaces.LocalLBPool.get_profile(poolList); // returns nothing
// String[][][] memberMetadata = interfaces.LocalLBPool.get_member_metadata(poolList, commonAddressPorts); - fails
// LocalLBMonitorInstanceState[][]memberMonitorAssociations = interfaces.LocalLBPool.get_member_monitor_instance(poolList,commonAddressPorts); - fails
// LocalLBMonitorRule[][] monitorRules = interfaces.LocalLBPool.get_member_monitor_rule(poolList, commonAddressPorts); -fails
// CommonPoolProfileAttribute[][][] commonPoolProfileAttributes = interfaces.LocalLBPool.get_member_profile(poolList, commonAddressPorts); - fails
Not sure why the commented lines (obviously when un-commented and run) failed. In which structure would one expect the inheritedProfile information to reside?
Recent Discussions
Related Content
* 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