Forum Discussion

Matt_83266's avatar
Matt_83266
Icon for Nimbostratus rankNimbostratus
Apr 27, 2016

iControl LocalLBProfileType issue

Hi,

 

I have an iControl script which has been in use for the last 5 years for some SSL certificate stuff.

 

In this script I use the LocalLB::VirtualServer::get_profile method, which takes a String[] array of virtual servers and returns a VirtualServerProfileAttribute[][] array.

 

Method call: https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__get_profile.ashx

 

Object returned: https://devcentral.f5.com/wiki/iControl.LocalLB__VirtualServer__VirtualServerProfileAttribute.ashx

 

Recently the script has failed, and looking into the exception that is thrown I have this:

 

Error: 0xC0047062 at Main Task, Script Component [46]: System.InvalidOperationException: There is an error in XML document (26, 77). ---> System.InvalidOperationException: Instance validation error: 'PROFILE_TYPE_ANALYTICS' is not a valid value for LocalLBProfileType. at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderLocalLBVirtualServer.Read28_LocalLBProfileType()

 

I have checked the API reference and it seems PROFILE_TYPE_ANALYTICS is indeed not a valid LocalLBProfileType: https://devcentral.f5.com/wiki/iControl.LocalLB__ProfileType.ashx

 

I am wondering if anyone has any suggestions?

 

I am hoping there is something obvious I am missing to be able to exclude this profile type. I can't just catch the exception, because this is on the get_profile method itself so if I catch the exception and continue on in my script, then while it will work I will be excluding all VIPs/SSL profiles in the partition where the offending VIP resides.

 

If there is an alternate way of retrieving the client SSL profile on a VIP (to then retrieve the SSL certificate used on this particular VIP) aside from this method I'm all ears, but I haven't found anything as yet.

 

1 Reply

  • What version of BIG-IP are you using and what client library are you using? I believe the documentation is a little out of date for that API and am planning on getting everything sync'd up for 12.1 in the next 30 days or so. PROFILE_TYPE_ANALYTICS is an profile type in 12.0. First thing I would recommend is updating to the latest client library that is at least the version of the BIG-IP you are connecting to. 12.0's iControl .Net and Java libraries should be available on the downloads section. For PowerShell, you'll need a 12.1.0 build that I can send you and early link to if that's what you are using.

     

    -Joe