Hank_Stallings
Jun 11, 2010Nimbostratus
PS 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 zillion pools...so the script takes forever to run. How can I change the script to allow for filtering based on pool name?
Line 152 of the code reads:
$PoolList = (Get-F5.iControl).LocalLBPool.get_list() | Sort-Object;
Can a variable be defined (like $filter=$null) that can be added to the console at runtime.
Like:
iControlDashboard.ps1 host uid pwd filter
So my command at runtime would look like:
PS iControlDashboard.ps1 MyBIGIP hank password dev
So that the dashboard would only show pools whose name contain "dev".
Any help is appreciated!
Hank
PS: Also when we configure nodes, we define the server name in the node record. On the node record the field is called "Name". Would like to pull that information into the dashboard as well.