Forum Discussion
Townsie_105233
Sep 04, 2012Historic F5 Account
Problem changing Partitions in Perl
I'm trying to list all the virtual servers in Test1. I'm trying a couple of different calls to try to get the partition (folder) to change to /Test1, but it doesn't seem to work.
...
Frank_J_104756
Nov 05, 2009Historic F5 Account
thx for mentioning the 0 index Aaron, I'd have been scratching my head over that !!
then I can use winner to retrieve the correct value of the array which is using the variables above as indexes
array set counterarray {
$server1lb$server1ip
$server2lb$server2ip
$server3lb$server3ip
$server4lb$server4ip
}
set winner [lindex [lsort -integer { $server1lb $server2lb $server3lb $server4lb }] 0]
LB::select $counterarray($winner)
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