diff --git a/README.md b/README.md index 6e7292a..8bf0da8 100644 --- a/README.md +++ b/README.md @@ -240,6 +240,20 @@ static void methods() { ## Version history 1.1.8 * Use the toolsVersionStatus2 instead of toolsVersionStatus property to get the VM Tools version status of a virtual machine. Needs VSphere 5.x. +* The status codes now are : +``` +vm.guest.tools.version : +0 -> guestToolsNotInstalled +1 -> guestToolsCurrent +2 -> guestToolsNeedUpgrade +3 -> guestToolsUnmanaged +4 -> guestToolsBlacklisted +5 -> guestToolsSupportedNew +6 -> guestToolsSupportedOld +7 -> guestToolsTooNew +8 -> guestToolsTooOld +9 -> unknown +``` 1.1.7 * Improved the perf counter methods performance diff --git a/src/java/net/djarvur/vmbix/VmBix.java b/src/java/net/djarvur/vmbix/VmBix.java index f0add7e..75f4eda 100644 --- a/src/java/net/djarvur/vmbix/VmBix.java +++ b/src/java/net/djarvur/vmbix/VmBix.java @@ -2381,9 +2381,19 @@ private void getVmGuestToolsVersionStatus (String vmName, Pri } else if (guestToolsVersionStatus.equals("guestToolsNeedUpgrade")){ intStatus = 2; } else if (guestToolsVersionStatus.equals("guestToolsUnmanaged")){ - intStatus = 3; - } else { + intStatus = 3; + } else if (guestToolsVersionStatus.equals("guestToolsBlacklisted")){ intStatus = 4; + } else if (guestToolsVersionStatus.equals("guestToolsSupportedNew")){ + intStatus = 5; + } else if (guestToolsVersionStatus.equals("guestToolsSupportedOld")){ + intStatus = 6; + } else if (guestToolsVersionStatus.equals("guestToolsTooNew")){ + intStatus = 7; + } else if (guestToolsVersionStatus.equals("guestToolsTooOld")){ + intStatus = 8; + } else { + intStatus = 9; } long end = System.currentTimeMillis(); }