Last active
March 19, 2020 14:09
-
-
Save mark05e/b706a763ffb8b951840e98ab17d7e7ee to your computer and use it in GitHub Desktop.
VMware Toolbox CLI stat output for Windows machines. Useful to identify if reservations for VMs are done correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set timerwait=3 | |
set "VMwareToolboxCmd=C:\Program Files\VMware\VMware Tools\VMwareToolboxCmd.exe" | |
echo VMwareToolboxCmd Stat output - Mark 2020 & echo. | |
REM References: https://www.vmware.com/pdf/vmware-tools-cli.pdf | |
echo Running on %COMPUTERNAME% @ %DATE% %TIME% & echo. & echo. | |
echo memres - If you see 0 MB, then your Memory isn't reserved. | |
echo Display memory reservation information, in megabytes. | |
"%VMwareToolboxCmd%" stat memres | |
echo. | |
PING 127.0.0.1 -n %timerwait% > nul | |
echo cpures - If you see 0 MHz, then your CPU isn't reserved. | |
echo Display CPU reservation information, in MHz. | |
"%VMwareToolboxCmd%" stat cpures | |
echo. | |
PING 127.0.0.1 -n %timerwait% > nul | |
echo balloon - Memory reclaimed from VM | |
echo Display the amount of memory that is currently reclaimed from the virtual machine through ballooning, in megabytes. | |
"%VMwareToolboxCmd%" stat balloon | |
echo. | |
PING 127.0.0.1 -n %timerwait% > nul | |
echo memlimit - Memory limit | |
echo Display memory limit information, in megabytes. | |
"%VMwareToolboxCmd%" stat memlimit | |
echo. | |
PING 127.0.0.1 -n %timerwait% > nul | |
echo cpulimit - CPU Limit | |
echo Display CPU limit information, in MHz. | |
"%VMwareToolboxCmd%" stat cpulimit | |
echo. | |
PING 127.0.0.1 -n %timerwait% > nul | |
echo speed - CPU Speed | |
echo Display the CPU speed, in MHz. | |
"%VMwareToolboxCmd%" stat speed | |
echo. | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment