Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Download

Microsoft PowerShell with iControl

This download is secured and you do not have access. Please login or register to view downloads.
Comments on this Download
Comment made 16-Aug-2013 by Forrest Shields 0
I got an "installation failed" error when following the above instructions (my notes in ALL CAPS below): PS C:\> cd 'C:\Program Files\F5 Networks\iControlSnapIn' cd : Cannot find path 'C:\Program Files\F5 Networks\iControlSnapIn' because it does not exist. ***NOTE: IF YOU ARE ON A 64-BIT VERSION OF WINDOWS, THE PATH WILL USE "Program Files (x86)" PS C:\> cd 'C:\Program Files (x86)\F5 Networks\iControlSnapIn' PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> . .\setupSnapIn.ps1 Registering iControlSnapin.dll on platform '' Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5420 Copyright (c) Microsoft Corporation. All rights reserved. The installation failed, and the rollback has been performed. Registering iControlSnapin.dll on platform '64' Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5420 Copyright (c) Microsoft Corporation. All rights reserved. The installation failed, and the rollback has been performed. *** NOTE: INSTALLATION FAILED BECAUSE YOU NEED TO RUN AN ADMINISTRATIVE POWERSHELL PROMPT IF UAC IS ENABLED. FIND YOUR POWERSHELL PROMPT FROM THE START MENU (Start --> All Programs --> Accessories --> Windows PowerShell), RIGHT-CLICK ON THE "Windows Powershell" PROGRAM ICON AND CHOOSE "Run as administrator". THEN PERFORM THE INSTALLATION STEPS IN THE ARTICLE ABOVE.
6
Comment made 21-Aug-2013 by Damien Solodow 1
Are the cmdets able to work with resources in partitions other than common? For example, Get-F5.LTMPool only shows pools in the /Common partition and I didn't see a parameter for it or Initialize-F5.iControl to switch partitions.
7
Comment made 29-Aug-2014 by Luca 0
The cmdlet is great! work very well with our version of F5 10.4. Bu trying to use with our new device version 11.5.1, I'm not able to get any info. Is suppose to work with the 11.5.1 ? If yes there is anything that have to be enable or configured on the device? Thanks in advance
2
Comment made 22-Sep-2014 by Hank Stallings 10
Installed the Snap-in and I'm receiving this error: Add-PSSnapIn : Cannot load Windows PowerShell snap-in iControlSnapIn because of the following error: The Windows PowerShell snap-in module C:\Program Files (x86)\F5 Networks\iControlSnapIn\iControlSnapin.dll does not have the required Windows PowerShell snap-in strong name iControlSnapIn, Version=11.5.0.0, Culture=neutral, PublicKeyToken=null. At line:2 char:5 + Add-PSSnapIn iControlSnapIn + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (iControlSnapIn:String) [Add-PSSnapin], PSSnapInException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
1
Comment made 22-Sep-2014 by Hank Stallings 10
Disregard my previous comment, running the below command fixed my issue: C:\WINDOWS\system32>c:\windows\Microsoft.Net\Framework64\v2.0.50727\installutil.exe "C:\Program Files (x86)\F5 Networks\iControlSnapIn\iControlSnapin.dll" /LogFile=
1
Comment made 23-Sep-2014 by Dominic 0
Thanks for this. How would you obtain the IP address of a VIP leveraging PowerShell? Ultimately I would like to be able to pull not only the members of a VIP and their status, but also the IP address assigned to the VIP so I can have a single report. The next step of course would be to pull certificate information of the VIP. Also, how do you query the GTM? We have a few addresses on the GTM that then ties to two LTMs. It would be nice to pull that information as well. Thanks, Dominic
0
Comment made 24-Sep-2014 by Grayson 337
Do these commands allow us to completely automate a new load balanced VS? I want to be able to end the nodes, their names, pools and create the VIP.
0
Comment made 16-Oct-2014 by R_C_P 0
I installed and configured this in my environment. It works with version "BIG-IP 11.4.1 Build 608.0 Final" but when I run Initialize-F5.iControl against version "BIG-IP 11.6.0 Build 0.0.401 Final" it fails with the following error. Any help on this would be appreciated. Initialize-F5.iControl : Could not initialize connection with supplied information At line:1 char:5 + Initialize-F5.iControl -HostName 10.1.1.1 -Username user1 -Pas ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : PermissionDenied: (10.1.1.1:String) [Initialize-F5.iControl], Exception + FullyQualifiedErrorId : 2,iControlSnapIn.CmdLet.Global.InitializeiControl
0
Comment made 16-Oct-2014 by R_C_P 0
Just to add, the credentials I use with the command above works when I use the web interface and it is an administrator account.
0
Comment made 12-Mar-2015 by Colyn1337 2
Would you happen to have this in a non installer form?
0
Comment made 24-Mar-2015 by Ken 2
is source available? or documentation
1
Comment made 20-May-2015 by David Karakas
I believe the problem users are experiencing with v11.5 and higher is due to the fact that F5 moved from the iControl API to iControlREST API. I don't believe iControlREST has been integrated with PowerShell yet.
0
Comment made 29-May-2015 by James 176
I got the following error trying this command - Get-iControlCommands. PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> Get-iControlCommands Get-iControlCommands : The term 'Get-iControlCommands' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correc and try again. At line:1 char:1 + Get-iControlCommands + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Get-iControlCommands:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException I also looked and the icontrol is not listed in the cmdlet. I also tried Initialize-iControl command and got another error. Initialize-iControl : The term 'Initialize-iControl' is not recognized as the name of a cmdlet, function, script file or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Initialize-iControl -Hostname 172.18.7.245 -Credentials (Get-Credential) + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Initialize-iControl:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Any help would be greatly appreceiated. I am excited to use PS with our F5s
0
Comment made 04-Aug-2015 by AJ 01 245
Same problem here - Running as Administrative PowerShell. Server 2012 R2
0
Comment made 01-Sep-2015 by James 176
Update: I was able to get this to work using 11.4.1 and 11.6.0. Download the file and follow the steps. Thanks!
0
Comment made 19-Oct-2015 by Almassud 271
Hi, I got to work by supplying user name and password, but I would like for it to use currently logged in user name and password so that I don't have t type the password in clear text. is that possible? Thanks MJ
0
Comment made 22-Oct-2015 by Sam Hall 297
The SnapIn produces the wrong envelope for LocalLB.Class.set_string_class_member_data_value. When I specify an array like @("val1","val2","val3"), only the 1st member gets set to "val1" and the rest of the array is ignored. Looking at the envelope in the HTTP request, it's passing the values like this [["val1"],["val2"],["val3"]] (translated to json). If I manipulate the envelope and send it so the data is sent like this, it works... [["val1","val2","val3"]].
0
Comment made 16-Nov-2015 by Joe Pruitt
@Sam, the LocalLB.Class.set_string_member_data_value method looks likes this: set_string_class_member_data_value( in LocalLB__Class__StringClass [] class_members, in String [] [] values ); The second parameter is a 2-D array so you need to declare it as such with a double set of brackets. I'm assuming you were referring to the second parameter and not the first. As for the comments from others of moving from SOAP to REST, that is where we are going but as of today (v12) iControl SOAP is still being developed and having features added to it.
0
Comment made 09-Dec-2015 by cgaines22 3
@Joe, is there a way to get all of the partitions and not just the Common partition when using the get-f5.ltmpool?
0
Comment made 10-May-2016 by kamranicus 2
Just wanted to chime in saying BEFORE running the setup script to ensure you Unblock all the DLLs (Right-Click -> Properties -> Unblock). Also Unblock the script if it's failing to run. There is no MSI in the latest zip, so I manually extracted to a folder.
0
Comment made 15-May-2016 by Naumin Dave 256
Hi All, Need small info... can someone guide me while running following command what parameters i should change in command: PS > Initialize-F5.iControl -Hostname bigip_address -Credentials (Get-Credential) do i need to mention hostnames and bigip_address only.. if yes can you please give one example?
1
Comment made 08-Jun-2016 by Patrik Jonsson 2546
Needed to add .Net 2.0 in add/remove windows features. Then it worked in Windows 10. The installation script should be changed to throw and error if the installutil file does not exist instead of quitting silently.
0
Comment made 5 months ago by Ken B 392
The problem I had getting this working was that I had to right-click the downloaded .zip file, properties, and click the "unblock" button on the General tab. Then I had to copy the files from the .zip to a folder under c:\Program Files\f5\icontrol. Then I ran PS As Administrator, then ran .\setupSnapIn.ps1, then I was *finally* able to run the "Add-PSSnapIn iControlSnapIn" command to get things going.
0
Comment made 4 months ago by Satyanarayana Mylavarapu 0

please share the exe downlaod link..above one is not exe file

0
Comment made 4 months ago by Joe Pruitt

The download link above will give you a zip file you need to uncompress. It will contain the snapin dll that you load with the powershell runtime. There is no .exe included as the executable is powershell.exe provided by microsoft. The instructions for installation are in the Readme.txt file

0
Comment made 4 months ago by Optokapler 0

Installed PS C:\Program Files (x86)\F5 Networks> .\setupSnapin.ps1 but when I try to add it get this error:

PS C:\iControl> Add-PSSnapin iControlSnapIn Add-PSSnapin : Cannot load Windows PowerShell snap-in iControlSnapIn because of the following error: API restriction: The assembly 'file:///C:\iControl\iControlSnapin.dll' has already loaded from a different location. It cannot be loaded from a new location within the same appdomain. At line:1 char:1 + Add-PSSnapin iControlSnapIn + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (iControlSnapIn:String) [Add-PSSnapin], PSSnapInException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

0
Comment made 3 months ago by spencero 81

Any plans to make a native chocolatey package? It would greatly simplify deployments

0
Comment made 3 months ago by jonats 1

There is no MSI installer so I just extracted the files on the directory then unblocked the dlls and ps1. Is there a problem running this snap in with the new version of powershell? I get the following error below:

PS C:\program files\f5 networks\iControlSnapIn> . .\setupsnapin.ps1 Registering iControlSnapin.dll on platform '' Registering iControlSnapin.dll on platform '64'

PS C:\program files\f5 networks\iControlSnapIn> Add-PSSnapin iControlSnapin Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 4. At line:1 char:1 + Add-PSSnapin iControlSnapin + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (iControlSnapin:String) [Add-PSSnapin], PSArgumentException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

0
Comment made 2 months ago by Travis Roberts 3

Has anyone installed the snapin and found that some of the V2 interfaces and related attributes are missing? (i.e. GlobalLBPoolV2 or GlobalLBWideIPV2) I downloaded this about a week and a half ago and successfully installed it but seem to be missing some of the functionality. I'm running on Windows 7 (64bit) with PowerShell v3.0.

0
Comment made 2 weeks ago by timbo_8.2 0

Hi There, I have cpied the files to the Correct directory, run the SsetupSnapin.ps1 and when i try run Ass-PSSnapIn iControlSnapIn i get the below error: Add-PSSnapIn : Cannot load Windows PowerShell snap-in iControlSnapIn because of the following error: Could not load file or assembly 'file:///C:\Program Files (x86)\F5 Networks\iControlSnapIn\iControlSnapIn.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1 + Add-PSSnapIn iControlSnapIn + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (iControlSnapIn:String) [Add-PSSnapin], PSSnapInException + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

Please advise
0
Comment made 2 hours ago by saidshow 202

I have followed the instructions in the readme file however when I run "Add-PSSnapIn -iControlSnapIn" I get a error: Add-PSSnapin: A parameter cannot be found that matches parameter name 'iControlSnapIn'.

If I run Get-PSSnapIn -Registered, I can see the iControlSnapIn there.

0