snmpwalk v2 unbekannter token (centos)

503
Sam

Ich habe Opennms auf Centos7 installiert, aber beim Versuch, Snmp zu aktivieren, erhalte ich immer wieder die unbekannten Token-Fehler. Wie comsec2, group, view, access.

Der Befehl, den ich ausführen möchte, lautet:

snmpwalk -v 2c -c 209ijvfwer0df92jd -O e 127.0.0.1 

Es zeigt die Fehler in der Datei /etc/snmp/snmp.conf für die Zeilen: 4, 5, 9, 10, 14, 15, 16, 20, 21, 127

Die vi-Datei wird unten gezeigt.

# Map 'idv90we3rnov90wer' community to the 'ConfigUser' # Map '209ijvfwer0df92jd' community to the 'AllUser' # sec.name source community com2sec ConfigUser default idv90we3rnov90wer com2sec AllUser default 209ijvfwer0df92jd # Map 'ConfigUser' to 'ConfigGroup' for SNMP Version 2c # Map 'AllUser' to 'AllGroup' for SNMP Version 2c # sec.model sec.name group notConfigGroup v2c notConfigUser group AllGroup v2c AllUser # Define 'SystemView', which includes everything under .1.3.6.1.2.1.1 (or .1.3.6.1.2.1.25.1) # Define 'AllView', which includes everything under .1 # incl/excl subtree view SystemView included .1.3.6.1.2.1.1 view SystemView included .1.3.6.1.2.1.25.1.1 view AllView included .1 # Give 'ConfigGroup' read access to objects in the view 'SystemView' # Give 'AllGroup' read access to objects in the view 'AllView' # context model level prefix read write notify access ConfigGroup "" any noauth exact SystemView none none access AllGroup "" any noauth exact AllView none none 
0

1 Antwort auf die Frage

0
grawity

Keine dieser Optionen gehört dazu snmp.conf. Alles in Ihrem Beispiel sind serverseitige Einstellungen, die stattdessen in den SNMP-Daemons eingefügt werden sollten./etc/snmp/snmpd.conf