SHARE
TWEET

SNMPGet Wrapper

sweenig Jan 28th, 2015 (edited) 2,088 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. goto:start
  3. SNMP Discovery tool
  4. Written by Stuart Weenig (http://stuart.weenig.com)
  5. Used to test a device for SNMP access
  6. First parameter is the hostname/ip of the device you want to try to query
  7. Second parameter is the community string to use
  8. Third-Ninth (optional) parameters are additional parameters to pass to SNMPGet
  9. :start
  10. echo Host:%1 Community:%2
  11. snmpget.exe -r:%1 -c:%2 -v:2c -o:1.3.6.1.2.1.1.2.0 -q %3 %4 %5 %6 %7 %8 %9
  12. echo.
RAW Paste Data
Top