| Die Datei devices.txt Jeder Eintrag besteht aus IP-Adresse, Name, Communitystring, OID-Tabelle, die durch Semikolon getrennt werden (OID-Tabelle ist eine Referenz auf snmpview.cfg) configuration file devices.txt syntax: ipadress;name;communitystring;OIDtable; (OIDtable reference to snmpview.cfg) 10.110.10.10;SWITCH;public;0; 10.110.10.10;SWITCH;public;1; 10.110.10.10;SWITCH;public;2; 10.110.10.10;SWITCH;public;3; 10.110.10.10;SWITCH;public;4; 10.110.10.10;SWITCH;public;5; 10.110.10.10;SWITCH;public;6; 10.110.10.10;SWITCH;public;7; 10.110.10.10;SWITCH;public;8; 10.110.10.10;SWITCH;public;9; 10.110.10.10;SWITCH;public;10; 10.110.10.10;SWITCH;public;11; 10.110.10.10;SWITCH;public;12;
10.110.10.10;SWITCH;public;13; 10.110.10.10;SWITCH;public;14; 10.110.10.10;SWITCH;public;15; 10.110.10.10;SWITCH;public;16; 10.110.10.10;SWITCH;public;17;
Die Datei snmpview.cfg Zeilen mit ‘#’ am Anfang sind Kommentare configuration file snmpview.cfg lines begins with ‘#’ are comments
[Misc] # Anzahl der Spalten # Number of Columns to display; if you add more entries below, increment this number #also! Columns=8
# SNMP-Port, optional, default 161
SNMPMsgPort=161
# Verzögerung zwischen 2 Abfragen in Millisekunden # This is the delay between querying successive managed nodes in milliseconds Delay=50
# Zeit bis Timeout in Millisekunden # Delay before timeout of a node query in milliseconds # If queries do not return data on slow links, try increasing this value Timeout=2000
# Zeit zwischen zwei Durchläufen in Millisekunden
# time between two complete poll sequences for the device list in milliseconds Pause=100
# Logfile schreiben an oder aus # set write to logfile on (1) or off (0) Logging=1
# Name und Pfad für Logfile # this is the name and complete path for the logfile Logfile=snmpview.log
#This is the file with monitored addresses; optional, default is .\devices.txt
#Datei mit Liste der abzufragenden Adressen, optional, default .\devices.txt devices=.\devices.txt
#This is the file with monitored extreme values; optional, default is .\extremes.txt #Datei mit den abgespeicherten Extremwerten, optional, default .\extremes.txt extremes=.\extremes.txt
# Beschriftung der Spaltenköpfe Syntax: Index=Überschrift # trägt eine Spalte den Namen 'uptime', werden die über die SNMP-OID ermittelten # Timeticks in die Anzeige days, hours, minutes, seconds umgewandelt. # These are the column headers
# have one column the header 'uptime', the software translate timeticks to a human # readable form like days, hours, minutes, seconds [Header] 0=location 1=System 2=Name 3=uptime 4=Interface 5=Art 6=Speed 7=Link
#7=OID des Oper-Status
# Einträge ohne führende 1.3.6.1. ,am Ende 0 oder die Instanz (bei Tabellen) nicht
#vergessen!! # This are the SNMP OID's, which polled frequently # please use without 1.3.6.1, don't forgot a zero or the number of the instance (if you use #tables) at the end
#OID-Tabelle 0 #OID table 0 #ohne führende 1.3.6.1. !! #use without 1.3.6.1!! [OID0] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.1 5=2.1.2.2.1.2.1 6=2.1.2.2.1.5.1
7=2.1.2.2.1.8.1
#OID-Tabelle 1 #OID table 1 #ohne führende 1.3.6.1. ! #use without 1.3.6.1!!! [OID1] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.2 5=2.1.2.2.1.2.2 6=2.1.2.2.1.5.2 7=2.1.2.2.1.8.2
#weiter für jeden Port eine OID-Tabelle
[OID2] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.3 5=2.1.2.2.1.2.3 6=2.1.2.2.1.5.3 7=2.1.2.2.1.8.3
[OID3] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.4 5=2.1.2.2.1.2.4 6=2.1.2.2.1.5.4 7=2.1.2.2.1.8.4
[OID4] 1=2.1.1.1.0
2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.5 5=2.1.2.2.1.2.5 6=2.1.2.2.1.5.5 7=2.1.2.2.1.8.5
[OID5] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.6 5=2.1.2.2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=2.1.1.3.0 4=2.1.2.2.1.1.16 5=2.1.2.2.1.2.16 6=2.1.2.2.1.5.16 7=2.1.2.2.1.8.16
[OID16] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.17 5=2.1.2.2.1.2.17 6=2.1.2.2.1.5.17 7=2.1.2.2.1.8.17
[OID17] 1=2.1.1.1.0 2=2.1.1.5.0 3=2.1.1.3.0 4=2.1.2.2.1.1.18 5=2.1.2.2.1.2.18 6=2.1.2.2.1.5.18 7=2.1.2.2.1.8.18 #Substitution, ersetzt die empfangenen Werte für die angegebene OID #substitute values for OID in brackets
#Colors färbt Felder entsprechend dem ausgegebenen Text red, green, yellow oder blue #colorized values with matched text red, green, yellow or blue [2.1.2.2.1.5.1] 10000000=10 Mhz 100000000=100 Mhz
1000000000=1 GHz [2.1.2.2.1.8.1] 2=down 1=up
[2.1.2.2.1.5.2] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.2] 2=down 1=up
[2.1.2.2.1.5.3] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.3] 2=down 1=up
[2.1.2.2.1.5.4] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.4] 2=down 1=up
[2.1.2.2.1.5.5] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz
[2.1.2.2.1.8.5] 2=down 1=up
[2.1.2.2.1.5.6] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.6] 2=down 1=up
[2.1.2.2.1.5.7] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.7] 2=down 1=up
[2.1.2.2.1.5.8] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.8] 2=down 1=up
[2.1.2.2.1.5.9] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz
[2.1.2.2.1.8.9] 2=down 1=up
[2.1.2.2.1.5.10] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.10] 2=down 1=up
[2.1.2.2.1.5.11] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.11] 2=down 1=up
[2.1.2.2.1.5.12] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.12] 2=down 1=up
[2.1.2.2.1.5.13] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz
[2.1.2.2.1.8.13] 2=down 1=up
[2.1.2.2.1.5.14] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.14] 2=down 1=up
[2.1.2.2.1.5.15] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.15] 2=down 1=up
[2.1.2.2.1.5.16] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.16] 2=down 1=up
[2.1.2.2.1.5.17] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz
[2.1.2.2.1.8.17] 2=down 1=up
[2.1.2.2.1.5.18] 10000000=10 Mhz 100000000=100 Mhz 1000000000=1 GHz [2.1.2.2.1.8.18] 2=down 1=up
[Colors] down=red up=green
#Position nicht ändern, wird vom Programm verwendet!! #do not change tis values, they are used by program itself (window position and size) [Position] ColWidth0=48 ColWidth1=343 ColWidth2=75 ColWidth3=115 Width=912 Height=378 Left=42 Top=61 ColWidth4=59 ColWidth5=133 ColWidth6=76 ColWidth7=68 ColWidth8=64 | |