Tweets from pichat
| Two songs from the year I created my first web sites. http://t.co/8eHrOA9K + http://t.co/AuWb2etI #video #retro About 23 hours, 6 mins ago from pichat (Mark Seuffert) |
Tweets from 600infos
| I HAVE NYANED FOR 888.4 SECONDS! http://t.co/JQYOZebv via @nyannyancat About 1 week, 5 days ago from 600infos (Wolf) |
Trace: » Diskussion Startseite » Bugs » allgemeine Informationen » Plugins, Bots and Extensions » Chat Server » SNMP Request
You are here: Pichat Wiki (en) » Snippets » SNMP Request
SNMP Request
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%" )