Forum Discussion
ltaylor510_5583
Nimbostratus
Sep 18, 2008Perl script to display All BigIP pool members
I have a Perl CGI application in apache that will need a perl script to display all the available elements in one script:
("poolname" "address" "port" "session_state" "priority_group")
preferably in a toggle script under the showPoolMembers() subroutine.
I see the get_priority() method is only listed as a java method. Is there a perl equivalent that could list all of these elements in one script?
thanks in advance for any help.
24 Replies
- Thomas_LE_GENTI
Nimbostratus
Hi !sub SOAP::Deserializer::typecast { my ($self, $value, $name, $attrs, $children, $type) = @_; my $retval = undef; if ( ($type ne undef) && ("{urn:iControl}Common.EnabledState" eq $type) )here is line 66 { $retval = $value; } return $retval; }
- hwidjaja_37598
Altostratus
Give this a try:sub SOAP::Deserializer::typecast { my ($self, $value, $name, $attrs, $children, $type) = @_; my $retval = undef; if ($type ne undef) { $retval = $value if ("{urn:iControl}Common.EnabledState" eq $type); } return $retval; }
- Thomas_LE_GENTI
Nimbostratus
in the continuity of my script, I still have the error :sub SOAP::Deserializer::typecast { my ($self, $value, $name, $attrs, $children, $type) = @_; my $retval = undef; if ( (defined $type) && ("{urn:iControl}LocalLB.MonitorStatus" eq $type) ) { $retval = $value; } if ( (defined $type) && ("{urn:iControl:System:Failover}FailoverState" eq $type) ) { $retval = $value; } return $retval; }
- I think you got this answered in the other thread. The unknown method error comes from the "uri" attribute of the SOAP object you create. You'll need a slash between "System" and "Failover", not a colon.
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