Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

How to get the MOR when directly connectet to the host?

$
0
0

Hi,


I am trying to reboot a host with the rebootHost_Task (MOR _this, boolean force). Therefor I need a MOR of he host.

But how do I get this, if I am directly connectet and not via vCenter?

I tried:

ManagedObjectReference mor = si.getServerConnection().getServiceInstance().getMOR();

si.getServerConnection().getVimService().rebootHost_Task(mor, true);

But this throws an error:

The request refers to an unexpected or unknown type.

 

Any help would be appreciated.

 

Chris


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>