Forum Discussion
Powershell iControlCommands
is there a reference manual? I have not been able to get the state of a given pool member i.e. get the pool, get the members, find out which ones are disable or not working
Have tried Get-F5.LTMPoolMemberState gives me nothing back. No error, but no data.
Anyone have any suggestions for a way to turn F5 pool member off/on? and then check at end to make sure they are all back on.
- Brad_Parker_139Nacreous
Get-Command -Module iControlSnapIn and get-help may be useful. I don't know that there is any manual as the module is created and published by devcentral. https://devcentral.f5.com/d/microsoft-powershell-with-icontrol
- Ken_50697NimbostratusThanks. the get command just gives you a list of command. the get-help is slight more useful, but again it is just a list of parameters with no explanation. e.g. LTMPoolMemberItem or
- Brad_ParkerCirrus
Get-Command -Module iControlSnapIn and get-help may be useful. I don't know that there is any manual as the module is created and published by devcentral. https://devcentral.f5.com/d/microsoft-powershell-with-icontrol
- Ken_50697NimbostratusThanks. the get command just gives you a list of command. the get-help is slight more useful, but again it is just a list of parameters with no explanation. e.g. LTMPoolMemberItem or
- Ken_50697NimbostratusDisable-F5.LTMPoolMember -Pool "/common/" -member ":" fails with "requested pool member (/common/ /common/ ) was not found. is there a manual some where?
Try calling into the core API. The Get-F5.iControl cmdlet will return the lower level iControl API objects. Here's an example to get you started:
https://devcentral.f5.com/wiki/iControl.PowerShellPoolMemberAvailability.ashx
There are a lot of PowerShell examples I've written over the years in the PowerShell section of the iControl wiki at:
https://devcentral.f5.com/wiki/iControl.PowerShell.ashx
Hope this helps...
-Joe
Recent Discussions
Related Content
* 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