mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-11-07 02:06:32 +00:00
32 lines
689 B
Batchfile
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
|
|
|