Skip to content

Commit

Permalink
fixed status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
dav3860 committed Aug 11, 2014
1 parent 5dd4058 commit e1bd19a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 12 additions & 2 deletions src/java/net/djarvur/vmbix/VmBix.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit e1bd19a

Please sign in to comment.