Forum Discussion
Anthony_Gerace_
Aug 12, 2004Historic F5 Account
How to get monitor information ?
I have a customer that is currently using BIG-IP version 4.2, with plans "some day" to go to version 4.5 . Are there any methods available to get detailed information about a specific monitor. I've ...
Oct 18, 2004
The signature for the get_template_string_property is as follows:
String get_template_string_property(
in String template_name,
in StrPropertyType property_type
);
It states that the returned value is a string. In your code you are casting it to an array.
This piece of code looks to be the culprit:
$mont2_response = $mont2->get_template_string_property(
SOAP::Data->name(template_name => $names[0]),
SOAP::Data->name(property_type => 1) );
if ($mont2_response->fault) {
print $mont2_response->faultcode, " ", $mont2_response->faultstring, "\n";
exit();
} if display fault
@sendStr = @{$mont2_response->result};
print "Send String is: @sendStr\n";
I would change it to the following and see if it works:
$mont2_response = $mont2->get_template_string_property(
SOAP::Data->name(template_name => $names[0]),
SOAP::Data->name(property_type => 1) );
if ($mont2_response->fault) {
print $mont2_response->faultcode, " ", $mont2_response->faultstring, "\n";
exit();
} if display fault
$sendStr = $mont2_response->result;
print "Send String is: $sendStr\n";
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects