Forum Discussion
fzaborowski_311
Nimbostratus
Apr 05, 2010iRule Javascript call?
Hi,
Quick question (I haven't seen this done/documented here):
I wish to call a .js file for users accessing certain pages. The script simply tags their page for us to m...
May 06, 2008
The method prototype is the following:
MemberObjectStatus [] [] GlobalLB.PoolMember.get_object_status(
in String [] pool_names,
in Common__IPPortDefinition [] [] members
);
You are passing in 1-d arrays for both paramters. You'll need to convert the second parameter into a 2-d array.
Something like this:
$members =
{
address => $address,
port => $port
};
push @List, $members;
push @Lists, @List
$soapResponse = $POOLMEMBER->get_object_status(
SOAP::Data->name(pool_names => [ @mpools ]),
SOAP::Data->name(members => [ @Lists ])
);
You'll just want to make sure that you do one push on the Lists array for each pool in your mpools array.
-Joe
HI Mohamed_Ahmed_Kansoh ,
If I would not use priority, would the "if" statement in the "when HTTP_REQUEST" block after the "if" statement in the "when CLIENT_ACCEPTED" has happened?
For example if I have a client 1.1.1.1 going to accessing server3.example.com:when CLIENT_ACCEPTED { if { [IP::addr [IP:: client_addr] equals 1.1.1.1 ] } { pool server1 } if ( [IP::addr [IP:: client_addr] equals 1.1.1.2 ] } { pool server2 } } when HTTP_REQUEST { if } HTTP::host equals "server3.example.com" } pool server3 if {HTTP::host equals "server4.example.com" } pool server4 } }
Will this go to server1 pool or the server3 prool?