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, 2015One last question and a pertinent one for Shaggy 🙂
set entity [tmsh::list /ltm virtual-address "My VIP here"]
puts $entity
set ohaoha [tmsh::get_field_value $entity mask]
puts "nothing==$ohaoha"
}
The entity works and if I do puts it shows:
ltm virtual-address my-IP {
address my-IP
mask 255.255.255.255
route-advertisement enabled
traffic-group Redundant
unit 2
}
the ohaoha testing part did not work....tested with mask/route-advertisement/etc
Anything I might be missing out in the syntax ? The error given is:
can't eval proc: "script::run"
unexpected TCL object type
while executing
"tmsh::get_field_value $entity mask"
(procedure "script::run" line 22)
invoked from withinHelp 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