Skip to content

Instantly share code, notes, and snippets.

@joel74
joel74 / Get-iRule.ps1
Last active May 31, 2023 16:52
Get-iRule - for debugging
Function Get-iRule {
<#
.SYNOPSIS
Retrieve specified iRule(s)
.NOTES
iRule names are case-specific.
#>
[cmdletBinding()]
param(
$F5Session=$Script:F5Session,
@joel74
joel74 / Sample iRule creation.txt
Created July 17, 2019 21:38
Sample iRule creation
#_sys_APM_ExchangeSupport_helper iRule
$String1 = @"
# Copyright 2003-2006, 2012-2013, 2016. F5 Networks, Inc. See End User License Agreement ("EULA")
# for license terms. Notwithstanding anything to the contrary in the EULA,
# Licensee may copy and modify this software product for its internal business
# purposes. Further, Licensee may upload, publish and distribute the modified
# version of the software product on devcentral.f5.com.
#
# The purpose of this iRule is for help the main virtual for the timing of the HTTP request retry
# during the SSO process for OutlookAnywhere protocol request which has a Content-Length value of 1GB.
@joel74
joel74 / Get-F5SyncStatus.ps1
Created September 15, 2017 03:13
Get-F5SyncStatus
Function Get-F5SyncStatus{
<#
.SYNOPSIS
Retrieve the sync status details for the specific BIG-IP device
#>
[cmdletBinding()]
param (
$F5Session=$Script:F5Session
)
@joel74
joel74 / Install-F5-LTM.ps1
Created March 1, 2017 19:08
PowerShell script to install F5-LTM module
# This script will download the latest version of the F5-LTM PowerShell module from github and install it for the current user.
# Thanks to DarkOperator for doing all the heavy lifting for this snippet
# https://gist.github.com/darkoperator/3f9da4b780b5a0206bca
# Make sure the module is not loaded
Remove-Module F5-LTM -ErrorAction SilentlyContinue
# Download latest version
$webclient = New-Object System.Net.WebClient
$url = "https://github.com/joel74/POSH-LTM-Rest/archive/master.zip"