Forum Discussion
mihai_178850
Nimbostratus
Apr 02, 2015Get route-advertisement state for a VIP
Hi guys,
I'm stumbling a bit on something that seems to be quite easy to find in the docs of iControl but not for iCall...
I have a TCL array of VIPs (name or IPs..I can do both) that I selected...
- Apr 02, 2015
Although it doesn't simply provide a true/false response, you can at least parse fewer lines with:
(tmos) list ltm virtual-address 1.1.1.1 route-advertisement ltm virtual-address 1.1.1.1 { route-advertisement enabled }
mihai_178850
Nimbostratus
Apr 02, 2015Found the answer by myself...seems sleep helps a lot:
foreach member [tmsh::get_config /ltm virtual-address ip-address]
{ set ola [tmsh::get_field_value $member route-advertisement]
puts "oha=$member"
puts $ola
}
like this it works so I can get my value.
Thanks to both Alex and Shaggy. I would give the answer checkbox to both if possible as I find both solutions interesting. Shaggy's saves a bit of processing time operation wise.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