|
|
|
Friday, June 22, 2007 12:37 PM
by Joe - 13139 views
|
|
|
In this tutorial, Joe walks through downloading, installing, configuring, and using the iControl PowerShell Snapin. He walks through and demonstrates several of the available CmdLets. |
Rate This Article:
COMMENTS
The WMV should be working now. Please let me know if anyone is having problems with it.
Joe, this is fantastic stuff. I've spoken to several windows admins that are now planning to design and automate dynamic provisioning of new servers / apps, adding them to a pool, as well as gracefully taking others offline for maintenance, then adding them automatically post maintenance using powershell and iControl. This broadens the reach of app, server, and network administration significantly.
After installing Powershell, before it would let me run any scripts (such as .\setupSnapIn.ps1 - it complained, telling me to "get-help about_signing"), I had to set the Execution Policy like so:
PS C:\> Set-ExecutionPolicy Unrestricted
Only THEN would it allow me to do this:
PS C:\Program Files\F5 Networks\iControlSnapIn> . .\setupsnapin.ps1
When I download from the PowerShell page, I get a zip file, not an installer, and it does not contain a setup script.
After installing everything and correctly initializing the iControl snapin using" Add-PSSnapIn -iControlSnapIn", it still will not list your "Get-iControlCommands" help list - they are not there.
Error:
The term 'Get-iControlCommands' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At line:1 char:20
+ Get-iControlCommands <<<<
Ideas?
The cmdlet has changed since this video has been recorded. We now prefix "F5" before all our nouns in our Cmdlet names. So to get a list of all our Cmdlets, you can use "Get-Command *-f5.*" or use the builtin "Get-F5.iControlCommands".
Sorry for the confusion.
-Joe
"Add-PSSnapin -iControlSnapIn" does not work. "Add-PSSnapin iControlSnapIn" (no hyphen) does.
I installed the snap-in on Windows Server 2008 R2 Enterprise 64-bit with the following commanline: msiexec /i D:\Temp\iControlSnapInSetup.msi ALLUSERS=1 REBOOT=ReallySuppress /l*v d:\icontrolsnapin.log /qb
Then I started a new Powershell session and executed "Add-PSSnapin iControlSnapIn" and get the following error:
Add-PSSnapin : The Windows PowerShell snap-in 'iControlSnapIn' is not installed on this machine.
At line:1 char:13
+ Add-PSSnapin <<<< iControlSnapIn
+ CategoryInfo : InvalidArgument: (iControlSnapIn:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
Any ideas?
I really need to get that assembly updated. for 64 bit platforms, different installUtil.exe's need to be run. I just added an updated script to the iControl wiki
http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShellSetupSnapin.html
Hope this helps...
I am missing some cmdlets
like Set-F5.LtmPoolMemberRatio or Get-F5.LtmPoolMemberRatio
please assist
Hi Ive just installed on a windows server 2008 64 bits i ran the .\setupSnapIn.ps1 when a ran the Get-Command *-f5.* command & it doesnt display anything so I ran the PS1
http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShellSetupSnapin.html
And it displayed
icontrolsnapin already exists so i uninstalled with the icontrolsnapinsetup and reinstalled when i run again the code
http://devcentral.f5.com/wiki/default.aspx/iControl/PowerShellSetupSnapin.html
it says again that is alredy installed so I tried again to display all commands with Get-Command *-f5.* and they dont appear I also tryed with Get-F5.iControlCommands but it says that cmdlet doesnt exist, is there a way to make it works im running a 64 bits SO but when i tryed to run the patch it says it was already installed.
After following the process, when I run the Script iControlDashboard.ps1 BIG/IP IP UID Password
getting the errors:
Requesting Data....
Trapped: System.Management.Automation.PSInvalidCastException
Trapped:cannot convert value "5203233157" to type "System.Int32". Error: "Value was either too large or too small for an Int32."
Pl advice
I wrote that app on a somewhat idle system. I must have forgot to use a Int64 value for the generated statistic type. You can turn off the exception trap in the code to find out where the error is occurring and see if you can find the offending line.
-Joe
Only registered users may post comments.