F5 Sites
  • F5.com
  • LearnF5
  • NGINX
  • MyF5
  • Partner Central
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
Groups
EventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. CrowdSRC
  3. CodeShare

ASM Policy Report

Problem this snippet solves: PowerShell script using F5 iControls that produces an email report of all ASM policies and what websites they protect. If a policy is enabled at the HTTP Class, it will ...
Published Mar 07, 2015
Version 1.0
devops
iControl
microsoft powershell with icontrol
pjhhaas_109824's avatar
pjhhaas_109824
Icon for Nimbostratus rankNimbostratus
Joined October 14, 2011
View Profile
pjhhaas_109824's avatar
pjhhaas_109824
Icon for Nimbostratus rankNimbostratus
Joined October 14, 2011
View Profile
paul_dawson_258's avatar
paul_dawson_258
Icon for Nimbostratus rankNimbostratus
Oct 17, 2016

Hi, I am getting the following:

Exception calling "get_host_match_pattern" with "1" argument(s): "Exception 
caught in 
LocalLB::urn:iControl:LocalLB/ProfileHttpClass::get_host_match_pattern()
Common::NotImplemented
"
At C:\VM_shared\BIGIP\bigreport\4.2.1\asm_report.ps1:47 char:5
+     $PolicyPatterns = 
(Get-F5.iControl).LocalLBProfileHttpClass.get_host_match_p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SoapHeaderException

You cannot call a method on a null-valued expression.
At C:\VM_shared\BIGIP\bigreport\4.2.1\asm_report.ps1:48 char:12
+     Return $PolicyPatterns.trim()
+            ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull

Any Ideas?

ABOUT DEVCENTRAL

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

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesF5 CertificationLearnF5 Training

SUPPORT

Manage SubscriptionsProfessional ServicesProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

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