Forum Discussion
Hank_Stallings
Nimbostratus
Jun 11, 2010PS iControl Dashboard Question
Hey from Nashville!!
I have a question regarding the PowerShell script (http://devcentral.f5.com/wiki/defau...board.html).
It's very cool, however in my environment we have a zilli...
Jun 11, 2010
Ask and you shall receive. I've updated the iControlDashboard codeshare entry with an additional input parameter for the pool and changed the line you referred to as
$PoolList = (Get-F5.iControl).LocalLBPool.get_list() |
Where-Object { $_.ToLower().IndexOf($Pool.ToLower()) -ne -1 } | Sort-Object;IndexOf will return a non-negative number if the substring is contained in the specified string. This essentially does a regular expression match to "*value*" without the overhead of a regular expression. If you only want to match to the beginning of the string, you could change the "IndexOf" to "StartsWith" or some other string function of your choice.
Hope this helps...
-Joe
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
