Examples of GuestInfo


Examples of com.vmware.vim25.GuestInfo

  public GuestInfo getVmGuestInfo() throws Exception {
    return (GuestInfo)getContext().getServiceUtil().getDynamicProperty(_mor, "guest");
  }
 
  public boolean isVMwareToolsRunning() throws Exception {
    GuestInfo guestInfo = getVmGuestInfo();
    if(guestInfo != null) {
      if("guestToolsRunning".equalsIgnoreCase(guestInfo.getToolsRunningStatus()))
        return true;
    }
    return false;
  }
View Full Code Here

Examples of com.vmware.vim25.GuestInfo

            return new Answer(cmd, false, msg);
        }
    }

    private boolean isVMWareToolsInstalled(VirtualMachineMO vmMo) throws Exception{
        GuestInfo guestInfo = vmMo.getVmGuestInfo();
        return (guestInfo != null && guestInfo.getGuestState() != null && guestInfo.getGuestState().equalsIgnoreCase("running"));
    }
View Full Code Here

Examples of com.vmware.vim25.GuestInfo

            if (!vmName.toLowerCase().contains(vmNamePrefix.toLowerCase())) {
                continue;
            }
            // XXX Assumption here is that VMware Tools are installed
            // and IP address is available
            GuestInfo guestInfo = vm.getGuest();
            if (guestInfo == null) {
                s_logger.info("dvPg: " + dvPgName + " host: " + hostName +
                        " vm:" + vmName + " GuestInfo - VMware Tools " +
                        " NOT installed");
                continue;
            }
            GuestNicInfo[] nicInfos = guestInfo.getNet();
            if (nicInfos == null) {
                s_logger.info("dvPg: " + dvPgName + " host: " + hostName +
                        " vm:" + vmName + " GuestNicInfo - VMware Tools " +
                        " NOT installed");
                continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.