PowerShell

Microsoft Windows PowerShell command line shell and scripting language helps IT professionals achieve greater control and productivity. Using an admin-focused scripting language, more than 130 standard command line tools, and consistent syntax and utilities, Windows PowerShell allows IT professionals to more easily control system administration and accelerate automation. Windows PowerShell is easy to adopt, learn, and use, because it works with your existing IT infrastructure and existing script investments, and because it runs on Windows XP, Windows Vista, and Windows Server 2003. Windows PowerShell is installed as part of the Windows Management Framework. Windows Server 2008 and later come with Windows PowerShell already installed. Exchange Server (2007 and later), System Center Operations Manager (2007 and later), System Center Data Protection Manager V2, and System Center Virtual Machine Manager also leverage Windows PowerShell to improve administrator control, efficiency, and productivity. As of 2009, all Microsoft server products must support PowerShell.
Below are a list of PowerShell related resources here on DevCentral.

PowerShell Snapin

The iControl PowerShell Snapin is a set of Cmdlets for Windows PowerShell that give you the full power of the iControl API. They can be downloaded from the DevCentral PowerShell Labs Project

Tech Tips

The following technical articles have been written that provide examples implemented in Windows PowerShell.

Warning

The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.

CodeShare Samples

  • PowerShell App Automation - This is a Powershell iControl Sample illustrating how to automate the process of application pools and monitors for a given Application name and version.
  • PowerShell GTM Pool Member - This example illustrates how to query and set the state of GTM Pool Members.
  • PowerShell iApp Template Control - The following PowerShell script illustrates how to support the BIG-IP .tmpl file format for Application Templates.
  • PowerShell Management Folder - This example illustrates how to use the Folder methods to build a console shell allowing you to navigate and manage system Folders on BIG-IP v11 and above.
  • PowerShell Management Provision - This is a Powershell iControl Sample illustrating how to use the module resource provisioning methods to manage the partitioning of memory. disk. and cpu across the modules licensed to run o…
  • Powershell Menu Driven Queries - A menu-based PowerShell application to query information about your BIG-IP
  • PowerShell Pool Member Availability - This PowerShell script will query the status of the pool members for a specified poolname.
  • PowerShell PoolMember Ratio And Priority - This sample PowerShell script illustrates how to use the methods in the LocalLB::Pool interface to get and set the Ratio and Priority for a Pool Member.
  • PowerShell RAM Cache - This PowerShell example illustrates how to query for entries in the RAM Cache.
  • PowerShell Setup Snapin - This PowerShell script will register the iControl Snapin on 32 and 64 bit platforms.
  • PowerShell Software Status - This example illustrates how to use the get_all_software_status method in the System SoftwareManagement interface.
  • PowerShell System Audit - This is a PowerShell iControl Sample illustrating the return values for some system auditing information
  • Ps BIG-IP Interactive Shell - This sample application illustrates how to build an interactive shell to manage your BIG-IP.
  • Ps Bigip List Configuration - This PowerShell application will query the contents of a file in the /config directory on a BIG-IP. save the contents locally. and then display them to the console.
  • Ps Config Archiving - This PowerShell application performs archiving and restoring of your BIG-IP configuration.
  • Ps Get Bigip Routes - This Powershell application prints out the static TMM and Management routing table from the BIG-IP.
  • Ps Global Ssl Statistics - This application will explore the system level ssl statistics available in the System.Statistics interface.
  • Ps Global Statistics - This PowerShell script will query the global system statistics.
  • Ps Gtm Data Center - This sample will illustrate how to use the iControl API to manage Global Traffic Manager Data Centers.
  • Ps Icontrol Concurrency - This sample application will illustrate how to use the locking mechanisms in iControl to allow you to create a multi-threaded iControl application.
  • Ps Icontrol Dashboard - This Powershell application will use iControl and the Google Chart API to build a monitoring dashboard.
  • Ps Irule Dashboard - This Powershell application will use iControl and the Google Chart API to build a dashboard to monitor the usage of your iRules.
  • Ps Local Traffic Map - This application will replicate the network map functionality found in the BIG-IP management GUI with a PowerShell console implementation.
  • Ps Local Traffic Summary - This application will replicate the network status functionality found in the BIG-IP management GUI with a PowerShell console implementation.
  • Ps Object Meta Data - PowerShell library to create and access generic metadata for objects on your BIG-IP systems.
  • Ps Partition Access - This application illustrates how to get and set the users management partitions.
  • ps Pool Lookup - This PowerShell application will do a reverse lookup for pools given a pool member definition.
  • Ps Pool Member Control - This application allows for the graceful shutdown of a pool member. As an added bonus it also allows you to query pools. pool members. pool member status. and enable and disable the pool members.
  • Ps Provision VE For Local Dev - This PowerShell script will illustrate how to deploy an application.
  • Ps Rate Based Statistics - This sample application will illustrate how to take raw statistic counters and turn them into rates.
  • Ps Rate Class - This PowerShell example will illustrate how to create and manage rate classes with the iControl API.
  • Ps Self Ip Port Lockdown - This applications illustrates how to manage Self IP and Default Port Lockdown Access Lists.
  • Ps Server Control - This PowerShell application will get and set the infamous three-way-toggle state (enabled. disabled. offline) for server objects.
  • Ps System Boot Location - This sample will illustrate the usage of the system boot location iControl methods.
  • Ps System Gtm Stats - This PowerShell example will illustrate how to query the global GTM statistics.
  • Ps System Http Stats - This PowerShell application will illustrate how to pull out the rolled up Http Statistics taking from all of the Http Profiles.
  • Ps System Ip Stats - This PowerShell application will query the system wide IP based statistics and display them in columnar format.
  • Ps System Pva Stats - This example will illustrate how to examine the system level PVA statistics.
  • Ps TMM Statistics - this application will look into the insides of the TMOS processes on the system and dump out the available statistics exposed in the System.Statistics.get_tmm_statistics() method.
  • Ps Twitter Api - Here’s a set of PowerShell functions implementing the Twitter APIs.
  • Ps Virtual Server Lookup - This powershell script will allow you to do a wildcard reverse lookup for Virtual Servers.