SNMP
SNMP: Simple Network Management Protokol, Port 161 oder 162
Scan nach SMTP-Geräten mit einfachem Portscanner möglich.
- ESXi - SNMP konfigurieren per SSH/Shell:
esxcli system snmp set --communities public
esxcli system snmp set --enable true
esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true
esxcli network firewall ruleset set --ruleset-id snmp --enabled true
# SNMP-Dienst neu starten
/etc/init.d/snmpd restart
# prüfe SNMP-Einstellungen
esxcli system snmp get - vCenter - SNMP konfigurieren per SSH
# prüfe SNMP-Einstellungen
snmp.get
# setze Communiti(s)
snmp.set --communities MySnmpCommunity
# Allow a device to access the SNMP agent (192.168.10.10 = monitoring server)
snmp.set --targets 192.168.10.10@161/MySnmpCommunity,localhost@161/MySnmpCommunity
# Enable the SNMP Agent
snmp.enable
# Verify the SNMP Settings configured
snmp.get
# Test the working
snmp.test
SNMP OIDs des Lancom Router ermitteln
- WebConfig -> Extras -> SNMP-Geräte-MIB abrufen (enthält alle OIDs)
- SSH/Putty:
* zu gewünschtem Eintrag navigieren
* "dir -a" -gibt OIDs des Eintrages mit aus
Beispiel: * Status / WAN / Byte-Transport / VDSL-1 Traffic: SNMP (Benutzerdefinierte Tabelle) "1.3.6.1.4.1.2356.11.1.4.1"
SNMP Debug Tool von PRTG: https://www.paessler.com/de/tools/snmptester
• SNMP testen unter Linux: sudo apt install snmp
snmpset / snmpget
• ioBroker: EXEC-Block: snmpset -v1 -c private 172.16.100.2 .1.3.6.1.4.1.19865.1.2.2.1.0 i 0