# SMNP bei Windows Clients

Hier ist die Übersicht der Restriktionen für SNMP Community Strings (v1 und v2c):

### 1. Maximale Länge

- **Theoretisch (RFC):** Laut SNMP-Standard ist der Community String ein "Octet String", der bis zu **255 Zeichen** lang sein kann.
- **Praktisch (Best Practice):** Viele ältere Geräte, Netzwerk-Monitoring-Tools oder spezifische Firmware-Versionen haben ein Hard-Limit bei **32 Zeichen**.
    
    
    - > **Empfehlung:** Bleibe unter **32 Zeichen**, um maximale Kompatibilität zwischen deinen Servern und Switches zu gewährleisten.

### 2. Erlaubte Zeichen &amp; "Verbotene" Zeichen

Grundsätzlich sind SNMP-Strings **Case-Sensitive** (Groß-/Kleinschreibung wird unterschieden).

Obwohl fast alle ASCII-Zeichen technisch möglich sind, solltest du bestimmte Sonderzeichen vermeiden. Da deine Terrascaler-Maschinen vermutlich über eine Linux-Shell oder Skripte verwaltet/überwacht werden, können Sonderzeichen hier die Syntax brechen.

<table data-path-to-node="8" id="bkmrk-status-zeichen-grund" style="margin-bottom: 32px; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><thead style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><tr style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">**Status**</td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">**Zeichen**</td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">**Grund / Warnung**</td></tr></thead><tbody style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><tr style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important; background-color: rgb(241, 196, 15);"><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,1,0,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">✅ **Sicher**</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,1,1,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">`A-Z`, `a-z`, `0-9`</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,1,2,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">Standard alphanumerisch. Immer sicher.</span></td></tr><tr style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,2,0,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">✅ **Meist sicher**</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,2,1,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">`-`, `_`, `.`</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,2,2,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">Bindestriche, Unterstriche und Punkte machen selten Probleme.</span></td></tr><tr style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,3,0,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">⚠️ **Problematisch**</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,3,1,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">`@`</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,3,2,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">Wird oft als Trennzeichen genutzt (z.B. `community@vlan`).</span></td></tr><tr style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,4,0,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">⛔ **Vermeiden**</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,4,1,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">`SPACE` (Leerzeichen)</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,4,2,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">Viele CLI-Tools interpretieren das Leerzeichen als Ende des Befehls.</span></td></tr><tr style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,5,0,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">⛔ **Vermeiden**</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,5,1,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">`$`, `?`, `!`, `&`, `*`, `#`, `\`, `'`, `"`</span></td><td style="border: 1px solid; font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;"><span data-path-to-node="8,5,2,0" style="font-family: 'Google Sans Text', sans-serif !important; line-height: 1.15 !important; margin-top: 0px !important;">Diese Zeichen haben in Shells (Bash, PowerShell) spezielle Bedeutungen. Sie müssen mühsam "escaped" werden (z.B. `\$`), was Fehlerquellen schafft.</span></td></tr></tbody></table>

### 3. Sicherheits-Restriktionen

Ein SNMP Community String ist technisch gesehen ein **Passwort**, das jedoch bei SNMPv1 und v2c im **Klartext** über das Netzwerk gesendet wird.

- **Standard-Namen:** Verwende niemals `public` (Read-Only) oder `private` (Read-Write). Diese werden von jedem Skript-Kiddie als Erstes getestet.
- **Komplexität:** Nutze eine Kombination aus Buchstaben und Zahlen (z.B. `KielCluster2025_RO`), aber vermeide echte Wörterbuch-Wörter.