Files
yttrium-virtio-gpu/NetKVM/DebugTools/WMI/netkvm-wmi.cmd
T
2016-12-15 14:08:28 +11:00

32 lines
689 B
Batchfile

:: Example of accessing NetKvm internals via WMI commands:
@echo off
if "%1"=="" goto help
if /i "%1"=="debug" goto debug
if /i "%1"=="stat" goto stat
if /i "%1"=="reset" goto reset
goto help
:debug
call :dowmic netkvm_logging set level=%2
goto :eof
:stat
call :dowmic netkvm_statistics get
goto :eof
:reset
call :dowmic netkvm_statistics set rxChecksumOK=0
goto :eof
:dowmic
wmic /namespace:\\root\wmi path %*
goto :eof
:help
echo Example of WMI controls to NetKvm
echo %~nx0 command parameter
echo debug level Controls debug level (use level 0..5)
echo stat Retrieves internal statistics
echo reset Resets internal statistics
goto :eof