Tech Tips on DevCentral
   
You are here: Tutorials > Tech Tips

Current Articles | Categories | Search | Syndication

PowerShell - Getting Started

by Joe - 13139 views Article Rating
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

posted @ Monday, July 02, 2007 2:38 PM by Joe   

The WMV should be working now. Please let me know if anyone is having problems with it.

posted @ Tuesday, July 03, 2007 11:45 AM by Erik Giesa   

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.

posted @ Friday, January 23, 2009 1:16 PM by Scott Larson   

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

posted @ Tuesday, February 02, 2010 11:50 AM by Jim Goltz   

When I download from the PowerShell page, I get a zip file, not an installer, and it does not contain a setup script.

posted @ Wednesday, February 03, 2010 2:33 PM by Chris   

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?

posted @ Wednesday, February 03, 2010 3:06 PM by Joe   

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

posted @ Thursday, February 04, 2010 6:45 AM by Jim Goltz   

"Add-PSSnapin -iControlSnapIn" does not work. "Add-PSSnapin iControlSnapIn" (no hyphen) does.

posted @ Thursday, March 18, 2010 3:59 AM by juergen.binder.ext   

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?

posted @ Friday, March 19, 2010 8:02 AM by Joe   

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...

posted @ Friday, March 19, 2010 8:41 AM by juergen.binder.ext   

Works!

Thank you.

posted @ Wednesday, October 20, 2010 4:21 AM by Omer   

I am missing some cmdlets
like Set-F5.LtmPoolMemberRatio or Get-F5.LtmPoolMemberRatio

please assist

posted @ Thursday, June 16, 2011 5:21 PM by lijtch   

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.

posted @ Thursday, September 15, 2011 2:51 PM by Pawan   

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

posted @ Thursday, September 15, 2011 3:32 PM by Joe   

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.
  
Subscriptions: Video  |  Audio  |  Tutorials  |  Tech Tips  |  Features  | 

More...

 

 

Essentials Quick Start Guides
iRules Wiki | iControl SDK | WebAccelerator Wiki iRules | iControl
FirePass Wiki | Advanced Design & Config Wiki WebAccelerator | FirePass

 

Videos

  

Audio

Cache in with LTM and iRules
Can iRules fix my cert mismatch errors?
Concurrent iControl Programming Explained
Cookie LoJack vi iRules
Creating An iControl PowerShell Monitoring Dashboard With Google Charts
Custom SNMP Traps
Exchange Persistence Duality and iRules
FTPS Offload via iRules
Getting Started with pyControl
iControl 101 - #19 - Time Conversions
iControl 101 - #20 - Port Lockdown
iControl 101 - #21 - Rate Classes
iControl 101 - #22 - GTM Data Centers
iControl Apps - #04 - Graceful Server Shutdown
iControl Apps - #05 - Rate Based Statistics
iControl Apps - #06 - Configuration Archiving
iControl Apps - #07 - System Http Statistics
iControl Apps - #08 - System IP Statistics
iControl Apps - #09 - TMM Statistics
iControl Apps - #10 - Bigpipe List
iControl Apps - #11 - Global GTM Statistics
iControl Apps - #12 - Global SSL Statistics
iControl Apps - #13 - System PVA Statistics
iControl Apps - #14 - Global Statistics
iControl Apps - #18 - Virtual Server Reverse Lookup
Investigating the LTM TCP Profile: Acknowledgements
Investigating the LTM TCP Profile: Congestion Control Algorithms
Investigating the LTM TCP Profile: ECN &amp; LTR
Investigating the LTM TCP Profile: Max Syn Retransmissions &amp; Idle Timeout
Investigating the LTM TCP Profile: Nagle’s Algorithm
Investigating the LTM TCP Profile: The Finish Line
Investigating the LTM TCP Profile: Windows &amp; Buffers
iRules 101 - #13 - TCL String Commands Part 1
iRules 101 - #14 - TCL String Commands Part 2
iRules 101 - #15 - TCL List Handling Commands
iRules Event Order
Managing The System Boot Location with iControl
Persisting SSL Connections
Replacing the WebSphere Apache Plugin with iRules
Ruby meets iControl: Creating VIPs
Ruby meets iControl: Making Wide IPs
Ruby Meets iControl: Switching Policies
Ten Steps to iRules Optimization
Unbind your LDAP servers with iRules
v.10 - A new iRules Namespace
v.10 - FastHTTP and Cookie Persistence
v.10 - iRules and the after command
v.10 - New class features in iRules
v.10 - Remote Authorization via TACACS&#43;
v10.1 - Configuring GTM's DNS Security Extensions

  

Features

  

Tutorials

  

iControl

  

iRules

  

Monitoring & Management

  

Advanced Design & Config

  

93,050 Members in 191 Countries and Growing!

Join DevCentral Today!

About DevCentral

F5 DevCentral is your source for the best technical documentation, discussion forums, blogs, media and more related to application delivery networking.

So dive in, meet your peers, and get familiar with DevCentral. We hope it makes your job easier and helps you get more from your F5 investment. If new to DevCentral, check out the Getting Started section. And if you have any problems, or think something could be easier to use, let us know.

Got It !

We've received your comment and transmitted it directly to DevCentral HQ.

Thanks for taking time to let us know what's on your mind. At DevCentral | Community Matters!

Get In Touch With Us

Have questions, suggestions or just want to get something off your chest?

Use our handy form below to Direct Connect with DevCentral Mission Control.

Send Us Feedback      or