|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
SNMP Tools GPW log2sql SNMP query (C#) Sniffer (C#) PING / Trace (C#) |
|
SNMP Tools can be controlled from command-line. Executable contains modules. Each module has its own switches. SNMP Query module for requesting data from SNMP devicesRun snmptools.exe using "Command Prompt". Following command-line options can be used to control query module:
Use following example to Extract everything from SNMP device and store it into csv-file:
snmptools.exe /query /h:server /c:public /o:1.3 /s /x:server.csv
CSV-files can be easily opened with Excel. Use /v switch if you need to use query results in cmd-files. For example, if you for some reason should need to enumerate storage devices in cmd-file:
@echo off
for /f "delims=" %%x in ('snmptools.exe /query /h:localhost /o:1.3.6.1.2.1.25.2.3.1.3 /s /v') do ( echo %%x ) pause If you have enterprise-specific device (most systems are) then you'll need to add more MIBs. For example if you see MIB paths containing like ...enterprises.318... then you'll need to add MIBs for enterprise number 318 (318 is APC). Download MIBs to new folder and add them to your MIB cache using /m switch:
snmptools.exe /query /h:server /c:public /o:1.3 /s /x:server.csv /m:c:\mymibs\318
You'll need use /m switch only once. Once cached loaded MIBs are always available. One good MIB collection is available from ByteSphere at this location: RFC2MIB module for downloading RFCs and extract MIBsFollowing command-line options can be used to control rfc2mib module:
Tool downloads RFCs to ...\rfc\ sub-directory and extracts MIBs to ...\mib\ sub-directory. By default all RFCs between 1 and 5000 get downloaded and analyzed. If RFC already exists then download skips it. To download only specific RFCs use /min and /max switches. To (re)extract MIBs from RFCs use /extract switch. MIB CacheSNMP Tools uses MIB Cache to speed up loading large number of MIBs. Once cached it takes only second or two for few thousand MIBs to load. MIB data is cached in mibcache.txt. If cache gets corrupted replace mibcache.txt file with original mibcache.txt from installation package. You can rebuild it by yourself by running the following command to re-cache all MIBs:
snmptools.exe /query /r /w
SNMP Monitor module for monitoring SNMP devicesAll monitoring tasks should run automatically. Command-line switches are provided for trouble-shooting and for advanced users. All configured devices and monitored data is stored in Microsoft SQL Server 2005 database. Following command-line options can be used to control monitor module:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 2003-2007 Digi Grupp OÜ
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||