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 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.
- 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;
- Hank_Stallings
Nimbostratus
Thanks Joe,PS c:\temp\iControlDashboard.ps1 BIGIP Username Password
PS c:\temp\iControlDashboard.ps1 BIGIP Username Password "*dev*"
- Hank_Stallings
Nimbostratus
If I change I make this change it works: - Hank_Stallings
Nimbostratus
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