iControlSnapin 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

Yea, the installer is just for 32 bit platforms. Right now if you want to run it on a 64 bit platform, you’ll have to manually enter the registry keys to add it as a registered snapin. Here’s a forum post that has the registry keys.

http://devcentral.f5.com/Default.aspx?tabid=53&forumid=26&tpage=1&view=topic&postid=1708317083

Click here

-Joe

Maybe I need to get me one then… I’m using the PowerShell libraries to register the snapins so I’m going to have to do some digging to find out why it isn’t doing it properly on 64 bit systems. No immediate plans for a 64 bit specific version but if there is a high enough demand I can try to make that a priority. I guess I’ll need to get a 64 bit system to test on first though…

-Joe

Actually, it doesn’t seem to work on x86 Win2k R2, SP2 either:

---

PS C:\Documents and Settings\administrator.CCSVDEV06> 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:21

+ Get-iControlCommands <<<<

---

What version(s) of Windows have you tested it with?

Thanks,

-Dmitry

Please update the Readme.txt … your commandlet names are prefixed with “f5.” (thats why tab completion doesn’t work -- the dot is sort of reserved in this context)

Get-f5.iControlCommands

Sorry for the mixup. A while back we updated the cmdlets to include a prefix so there would not be a name collision when other snapins are loaded. All of the iControl cmdlets are in the form

VERB-F5.NOUN

-Joe

WARNING: The following errors occurred when loading console

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\iControlSnapIn.psc1:

Cannot load Windows PowerShell snap-in iControlSnapIn because of the following

error: Windows PowerShell snap-in iControlSnapIn is not installed on the

machine.

Windows PowerShell

Copyright (C) 2006 Microsoft Corporation. All rights reserved.

PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0>

Please help me to resolve at the earliest

There was no installation issue at all .

But i am unable to Add-PSSnapIn iControlSnapIn

Try this script and see if it works for registering the snapin. If so, I’ll get the download package to include it.

http://devcentral.f5.com/wiki/defau…napin.html

-Joe

Joe,

Since i am new to F5 , can you guide me how should i run the script , which you have mentioned .

I tried copying the scirpt in notepad , saving it with .ps1 , and tried executing but no luck.

Os ver is Windows 2008 64 bit .

Also can you help me out with manual registry entry for 64bit edition.

-kartik

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>

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

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

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

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

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.

What was the fix for this?