Forum Discussion
Kevin_Randolph1
Jan 29, 2013Nimbostratus
I spoke too soon.
I was able to get the user-defined strings for a SNMP DCA template that was created via the GUI, and had some variables defined. The variables are stored as user-defined strings.
However, I am unable to set user-defined strings in such a monitor:
udsv = self.monitor.typefactory.create('LocalLB.Monitor.UserDefinedStringValue')
udsv.name = 'user_string_1'
udsv.value = 'user_test_string_1'
self.monitor.set_template_user_defined_string_property([template_name], [udsv])
---------
[...]
NotFoundError: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Monitor::set_template_user_defined_string_property()
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested monitor parameter (test_monitor_TTYPE_SNMP_DCA 1 user_string_1=) was not found.'
- Christopher_Wo2Jan 10, 2017Altocumulus
I'm having the same issue in 2016/01 using perl and SOAP::Lite against 11.5.4.
 
There doesn't seem to be a way to do this in the REST API either, so I suppose we're doing these by the GUI for now?
 
https://devcentral.f5.com/s/feed/0D51T00006i7a8tSAA