Not able to fetch object status of virtual server
Hello , I am using below php script to fetch status of virtual servers but getting exception.
$location="https://$hostname/iControl/iControlPortal.cgi?"; $wsdl_VS="https://$hostname/iControl/iControlPortal.cgi?WSDL=LocalLB.VirtualServer"; $wsdl_V2="https://$hostname/iControl/iControlPortal.cgi?WSDL=LocalLB.VirtualAddressV2"; $client_VS = new SoapClient($wsdl_VS,array('location'=>$location,'login'=>$username,'password'=>$password)); $client_V2 = new SoapClient($wsdl_V2,array('location'=>$location,'login'=>$username,'password'=>$password));
$vs_list=$client_VS->get_list(); sort($vs_list);
$vsstatus=$client_V2->get_object_status($vs_list);
foreach ($vsstatus as $value) { print_r( $value); }
} catch (Exception $e) { echo "Error: " .$e->getMessage(); } ?>
I am getting below exception.I can print all virtual server list.
Error: Exception caught in LocalLB::urn:iControl:LocalLB/VirtualAddressV2::get_object_status() Exception: Common::OperationFailed primary_error_code : 16908342 (0x01020036) secondary_error_code : 0 error_string : 01020036:3: The requested virtual address (/Common/xxxxx) was not found.
Could you help me understand if I can do it differently? Thanks in advance.
br, rohan