Forum Discussion
dkalashnikov_23
Nimbostratus
Oct 09, 2008iControlSnapin installation problem
Hello, I've tried installing iControlSnaping on Vista x64 and Server 2003 x64. I've tried both x64 and x86 versions of powershell (running as admin).
I am able to add iControlSnapIn, but whenever I try to run:
Get-iControlCommands
(or any other f5 commands for this snapin)
I get the following error:
---start---
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn\Help> Get-iControlCommands
The term 'Get-iControlCommands' is not recognized as a cmdlet, function, operable program, or script file. Verify the t
erm and try again.
At line:1 char:20
+ Get-iControlCommands <<<<
---stop---
Any ideas?
Thanks,
Dmitry Kalashnikov
BPOS Engineering Core (R&D)
Microsoft
19 Replies
- Kartik_Thakkar_
Nimbostratus
FYI
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> get-pssnapin -registered
Name : VMware.VimAutomation.Core
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains Windows PowerShell cmdle
ts used to manage VMware Infrastructure.
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> add-pssnapin -icontrolsnap
in
Add-PSSnapin : A parameter cannot be found that matches parameter name 'icontro
lsnapin'.
At line:1 char:29
+ add-pssnapin -icontrolsnapin <<<<
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> - Kartik_Thakkar_
Nimbostratus
Then i tried ,
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> Add-PSSnapin -Name iContro
lSnapin
Add-PSSnapin : Windows PowerShell snap-in iControlSnapin is not installed on th
e machine.
At line:1 char:13
+ Add-PSSnapin <<<< -Name iControlSnapin
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> - Since you are running on 64 bit windows, you need to use the .Net frameworks 64 bit installutil.exe. The script I posted to the codeshare should register it in both the 32 and 64 bit versions. Here's the manual command line that you can use to register it in 64bit.
c:\windows\Microsoft.Net\Framework64\v2.0.50727\installutil.exe iControlSnapin.dll /LogFile=
Run that script and you should see any errors that come up.
Let me know if this works for you or not.
-Joe - Kartik_Thakkar_
Nimbostratus
If possible can you elaborate more specifically what i need to do ?
c:\windows\Microsoft.Net\Framework64\v2.0.50727\installutil.exe iControlSnapin.dll /LogFile=
in above line what i need to mention ahead of LogFile=
Also i had copied the script in notepad , saved the file with .ps1 extension. Is these the only way to save the script.
regards,
kartik - Take the command line given and execute it from the directory where you have the iControl Snapin installed. You should be able to cut and paste it directly to the console. If it errors out, look for the installutil.exe in the c:\windows\microsoft.net\framework64 directory and use that one.
PS C:\...> c:\windows\Microsoft.Net\Framework64\v2.0.50727\installutil.exe iControlSnapin.dll /LogFile=
As for the script, just copying it to notepad should have been all you needed to do.
-Joe - Kartik_Thakkar_
Nimbostratus
Now i am able to add Icontrolsnapin.
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> Add-PSSnapIn -name iControlsnapIn
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> Get-PSSnapIn
Name : Microsoft.PowerShell.Core
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains Windows PowerShell management cmdlets used to manage components
of Windows PowerShell.
Name : Microsoft.PowerShell.Host
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains cmdlets used by the Windows PowerShell host.
Name : Microsoft.PowerShell.Management
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains management cmdlets used to manage Windows components.
Name : Microsoft.PowerShell.Security
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains cmdlets to manage Windows PowerShell security.
Name : Microsoft.PowerShell.Utility
PSVersion : 1.0
Description : This Windows PowerShell snap-in contains utility Cmdlets used to manipulate data.
Name : iControlsnapIn
PSVersion : 1.0
Description : iControl Snap-in for F5 Device Management
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> Initialize-iControl -Hostname 192.168.70.2 -Username admin -Passwo
rd admin
The term 'Initialize-iControl' is not recognized as a cmdlet, function, operable program, or script file. Verify the te
rm and try again.
At line:1 char:20
+ Initialize-iControl <<<< -Hostname 192.168.70.2 -Username admin -Password admin
PS C:\Program Files (x86)\F5 Networks\iControlSnapIn> ping 192.168.70.2
Pinging 192.168.70.2 with 32 bytes of data:
Reply from 192.168.70.2: bytes=32 time<1ms TTL=64
Reply from 192.168.70.2: bytes=32 time<1ms TTL=64
Reply from 192.168.70.2: bytes=32 time<1ms TTL=64
But unable to connect F5. in aove ocnfiguration 192.168.70.2 is f5 managment ip.
Please let me know ow should i resolve.
regards,
Kartik- All of the cmdlets are prefixed with "f5-" so the initialize cmdlet will be "Get-F5.iControl". You can do a "Get-Command *f5*" and that should give you the whole list.
- ryan_wiese
Nimbostratus
What was the fix for this?
- You can use the Get-F5.Commands cmdlet to list out all the iControl cmdlets. I've written a bunch of tech tips and samples with PowerShell and can find a list of most of them in the PowerShell topic in the iControl wiki.
http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShell.html
Hope that helps!
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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