http://net-snmp.sourceforge.net/download.html
@echo off if not defined _server set _server=127.0.0.1 if not defined _community set _community=public if not defined _mibsdir set _mibsdir=./mibs cls echo. echo.Display SNMP Status echo.=================== echo. set /p _Server=Serveraddress [%_server%]: set /p _community=Community [%_community%]: ::show SNMP Status echo on snmpstatus.exe -v 1 -O n -M %_mibsdir% -c %_community% %_server% @echo off ::show timetics of SNMP Service uptime echo on snmpget.exe -v 1 -O n -M %_mibsdir% -c %_community% %_server% 1.3.6.1.2.1.1.3.0 @echo off ::show if the Sevice "SNMP Service" on a windows system is running set _sevice=SNMP Service echo on snmpwalk.exe -v 1 -O n -M %_mibsdir% -c %_community% %_server% 1.3.6.1.4.1.77.1.2.3.1.1 | ( @find /i "%_sevice%" ) && ( @echo off echo "%_sevice%" is running ) || ( @echo off echo not found "%_sevice%" ) @echo off ::show if the process "snmp.exe" on a windows system is running set _process=snmp.exe snmpwalk.exe -v 1 -O n -M %_mibsdir% -c %_community% %_server% 1.3.6.1.2.1.25.4.2.1.2 | ( find /i "%_process%" ) && ( echo "%_process%" is running ) || ( echo not found "%_process%" )