Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php
  2.  
  3. require __DIR__.'/vendor/autoload.php';
  4. use SircampXenapiXen as Xen;
  5.  
  6. $ip='172.31.100.14';
  7. $username='root';
  8. $password='root@123';
  9. try{
  10. $xen = new Xen($ip,$username,$password);
  11. }catch(XenConnectionException $e){
  12. echo $e;
  13. }
  14.  
  15. // $vm = $xen->getVMByNameLabel("centos6.7");
  16. // echo $vm->getUUID()->getValue();
  17. //$vm->cleanShutdown();
  18. ?>
  19.  
  20. Fatal error: Uncaught exception 'GuzzleHttpRingExceptionRingException' with message 'Error creating resource: [message] URL is invalid: 172.31.100.14 [file] /var/www/htmt/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php [line] 403' in /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php:177 Stack trace: #0 /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php(412): GuzzleHttpRingClientStreamHandler->createResource(Object(Closure), Array, Array) #1 /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php(220): GuzzleHttpRingClientStreamHandler->createStreamResource('172.31.100.14', Array, Array, Resource id #5) #2 /var/www/html/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php(34): GuzzleHttpRingClientStreamHandler->createStream('172.31.100.14', Array) #3 /var/www/html/vendor/guzzlehttp/guzzle/src/RequestFsm.php(129): GuzzleHttpRingClientStreamHandler->__invoke(Array) #4 /var/www/html in /var/www/html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 51
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement