Forum Discussion
Adam_Borders_10
Nimbostratus
May 28, 2008iControl and PowerGUI
I am trying to create a PowerPack for PowerGUI. It is a GUI for running Powershell scripts. I have an issue when trying to pull LTMPoolMember from iControl.
I can pull a list from LTMPool and if I select one I can use LTMPoolMember to get a list of members for that pool. I am trying to allow for multiple selections of pools. I want a sigle listing of all of the members from the selected pools. Right now if I select 5 pools I get a list with 5 copies of the last pool selected.
I am using Get-F5.LTMPool to pull the list of pools and this script to try and get the pool members.
$name = $null
$input | ForEach-Object {
if (-not $name) {
$name = $_.name
}
Get-F5.LTMPoolMember -pool $name }
Any help is appreciated.
Thanks,
Adam
1 Reply
- Adam_Borders_10
Nimbostratus
That works great as a script but in PowerGUI all I get is the "True" for the first part of the script. It does not actually list the pools.
I have attached the initial workings of my PowerPack. Replace the .txt extension with .powerpack to import into PowerGUI. You have to have iControl registered in PowerGUI to get it to work. I am working with the LTMPool node and the Test node.
I am interested in your thoughts on this.
Thanks,
Adam
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
