Forum Discussion
List of Powershell Commands available in iconnect in the version 11.4
We are trying to evaluate whether we should go with Powershell for automating the configuration tasks(like Create Virtual Server,Update Virtual Server,Create Load Balancing Pool,Update Load Balancing Pool, Add member to priority group, Configure Health Monitor, Create Data Group, Create iRules, Create SSL Profile, Create Persistence Profile) Can anybody tell us the list of Powershell Commands available in iconnect in the LTM version 11.4?
3 Replies
Have you been through this page already? https://devcentral.f5.com/wiki/icontrol.powershell.ashx
- Sudesh_tendulka
Nimbostratus
Yes, went throguh that page, Most of the commands are not listed there. Also we have the VMware VM which is trial version of LTM and its 10.x and i need the commands for 11.4 Thanks Sudesh
Waht do you mean by "iconnect"? Do you mean "iControl"? If so, then the iControl CmdLet for PowerShell in 11.4 contains the entire API library listed in the wiki (as of 11.4). https://devcentral.f5.com/wiki/iControl.APIReference.ashx
In PowerShell, I wrote a few special purpose cmdlets to do some very specific things but over time we found that they were to constraining for everyone as they didn't fit all use cases. I recommend using the special Get-F5.iControl cmdlet which will return an object that contains members for all of the core API interfaces. Those interface members then contain the methods in the API.
So, if you want to get to the LocalLB.Pool.get_list() method, you'd do this with powershell
PS> Initialize-F5.iControl -hostname bigip -username user -password pass PS> $pool_list = (Get-F5.iControl).LocalLBPool.get_list(); PS> $foreach ($pool in $pool_list) { Write-Host $pool; }The PowerShell link above contains a list of all our PowerShell related resources include a lot of articles and samples I've written over time.
So, to answer your question about which iControl commands it contains, the answer is "all of them". Keep in mind, that if you call an 11.4 method on a 11.3 device, you'll get a "method no found" exception. But, our methods are forward compatible so if you call a method introduced in 11.3, it will work on 11.4.
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
* 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