F5 Sites
  • F5.com
  • F5 Labs
  • MyF5
  • NGINX
  • Partner Central
  • Education Services Portal (ESP)
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
GroupsEventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. CrowdSRC
  3. CodeShare

BigIP Report Old

Problem this snippet solves: This codeshare has been deprecated due to a hosting platform corruption. I have moved code and conversation to a new record (on the same original URL) https://devcentra...
Updated Dec 08, 2022
Version 2.0
application delivery
devops
iControl
LTM
microsoft powershell with icontrol
Patrik_Jonsson's avatar
Patrik_Jonsson
Icon for MVP rankMVP
Joined January 16, 2009
View Profile
Patrik_Jonsson's avatar
Patrik_Jonsson
Icon for MVP rankMVP
Mar 06, 2017

Paul, here's the snippet I'd like you to run. Please note the comments I've made in the output section at the bottom, there's a question mark in it for you to answer (if you can).

Configuration
$User = "user"
$Password = "password"
$BigIP = "10.10.10.10"

Allow TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Initialize Snapin
if ( (Get-PSSnapin | Where-Object { $_.Name -eq "iControlSnapIn"}) -eq $null ){
    Add-PSSnapIn iControlSnapIn
}

Connect to the BigIP
$Success = Initialize-F5.iControl -HostName $BigIP -Username $User -Password $Password

Get an iControl Handle
$F5 = Get-F5.iControl

$f5.LocalLBVirtualServer.get_profile("/Partition/VIP-name")

            profile_type             profile_context profile_name
            ------------             --------------- ------------
       PROFILE_TYPE_HTTP    PROFILE_CONTEXT_TYPE_ALL /Common/http
 PROFILE_TYPE_CLIENT_SSL PROFILE_CONTEXT_TYPE_CLIENT /Common/sslprofile
        PROFILE_TYPE_TCP    PROFILE_CONTEXT_TYPE_ALL /Common/tcp
PROFILE_TYPE_WEBSECURITY    PROFILE_CONTEXT_TYPE_ALL /Common/websecurity <-- Not sure where this comes from, but it seems like an indication that ASM is enabled?
    PROFILE_TYPE_UNKNOWN    PROFILE_CONTEXT_TYPE_ALL /Partition/ASM_test_policy <-- This policy's real name is "test_policy". "ASM_" as added by the API (or configuration). This caused me a lot of grief when the writing the new version. :)
  1. How does the profile names look to you? Is there a prefix?
  2. Do you also have a profile type called "PROFILE_TYPE_WEBSECURITY" for every VIP with an ASM policy?

/Patrik

Help guide the future of your DevCentral Community!

What tools do you use to collaborate? (1min - anonymous)

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesTraining & Certification

SUPPORT

Manage SubscriptionsProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

©2026 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information