Share Pastebin
Guest
Public paste!

buster

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 1.61 KB | Hits: 50 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. $wsdl="https://iadtempf5.appriver.com/iControl/iControlPortal.cgi?WSDL=LocalLB.VirtualServer";
  2. $wsdl2="https://iadtempf5.appriver.com/iControl/iControlPortal.cgi?WSDL=Management.Partition";
  3. $wsdl3="https://iadtempf5.appriver.com/iControl/iControlPortal.cgi?WSDL=LocalLB.VirtualServer";
  4.  
  5. $location="https://iadtempf5.appriver.com/iControl/iControlPortal.cgi?";
  6.  
  7.  
  8.  
  9. try {
  10. $client = new SoapClient($wsdl,array('location'=>$location,'login'=>$username,'password'=>$password));
  11. $client2 = new SoapClient($wsdl2,array('location'=>$location,'login'=>$username,'password'=>$password));
  12. $client3 = new SoapClient($wsdl3,array('location'=>$location,'login'=>$username,'password'=>$password));
  13.  
  14. $client2->set_active_partition('AppRiverAccess');
  15. $virtual_list=$client->get_list();
  16. //$stat_list=$client->get_statistics('dns_servers ');
  17.  
  18. foreach ($virtual_list as $index=>$vs)
  19. {
  20.         print $vs . "<br>";
  21.  
  22. }
  23.  
  24. $stats_list=$client->get_statistics('POD_116_117');
  25. var_dump ($stats_list);
  26. print "<br>";
  27. $my_stats=$stats_list->statistics;
  28. var_dump ($my_stats);
  29.  
  30. --
  31.  
  32. VIP_116-117
  33. VIP_116-117-2nd
  34. VIP_21-22
  35. VIP_21-22-2nd
  36. VIP_24-25
  37. VIP_24-25-2nd
  38. VIP_28-29
  39. VIP_28-29-2nd
  40. VIP_41-42
  41. VIP_41-42-2nd
  42. VIP_43-44
  43. VIP_43-44-2nd
  44. VIP_46-47
  45. VIP_58-59
  46. VIP_58-59-2nd
  47. VIP_68
  48. VIP_73-74
  49. VIP_73-74-2nd
  50. VIP_84-85
  51. VIP_84-85-2nd
  52. VIP_88-89-90-91
  53. VIP_88-89-90-91-2nd
  54. VIP_92-93
  55. VIP_92-93-2nd
  56. VIP_94-95
  57. VIP_94-95-2nd
  58. object(stdClass)#4 (2) { ["statistics"]=> array(0) { } ["time_stamp"]=> object(stdClass)#5 (6) { ["year"]=> int(2010) ["month"]=> int(2) ["day"]=> int(9) ["hour"]=> int(22) ["minute"]=> int(0) ["second"]=> int(45) } }
  59. array(0) { }