Inhaltsverzeichnis

std.net.snmp

SNMP (Simple Network Management Protocol) ist das Standard-Protokoll für das Monitoring und Management von Netzwerkgeräten. OIDs (Object Identifiers) adressieren einzelne Geräteparameter wie CPU-Last, Schnittstellenzähler, verfügbaren Speicher oder Temperaturwerte. Die Unit unterstützt SNMPv1 und v2c für GET- und GETNEXT-Anfragen.

Einsatzbereiche sind Netzwerküberwachung, Bandbreitenmonitoring, Gerätestatus-Abfragen (Router, Switches, USV, Server) und die Integration in SNMP-basierte Monitoring-Systeme wie Nagios oder Zabbix.


Imports


Konstanten

Name Typ Wert Sichtbarkeit
SNMP_PORT int64 161 pub
SNMP_V1 int64 0 pub
SNMP_V2C int64 1 pub
SNMP_ERR_NOERROR int64 0 pub
SNMP_ERR_TOOBIG int64 1 pub
SNMP_ERR_NOSUCHNAME int64 2 pub
SNMP_ERR_BADVALUE int64 3 pub
SNMP_ERR_READONLY int64 4 pub
SNMP_ERR_GENERR int64 5 pub

Typen

SNMPOID (struct)

Feld Typ

SNMPVarBind (struct)

Feld Typ

SNMPResponse (struct)

Feld Typ

Funktionen

Signatur Sichtbarkeit Beschreibung
SNMPNextRequestId(): int64 pub Liefert nächste eindeutige Request-ID
SNMPBuildGetRequest(version: int64, community: int64, oid: int64, oidLen: int64): int64 pub Erstellt SNMP-GET-Request-Paket
SNMPBuildGetNextRequest(version: int64, community: int64, oid: int64, oidLen: int64): int64 pub Erstellt SNMP-GETNEXT-Request-Paket
SNMPGet(host: int64, community: int64, oid: int64, oidLen: int64): SNMPResponse pub Fragt OID-Wert vom Gerät ab
SNMPResponseFree(resp: SNMPResponse) pub Gibt Speicher der SNMP-Antwort frei
SNMPCreateOID(len: int64): int64 pub Reserviert Speicher für OID-Array
SNMPSetOIDSubId(oid: int64, index: int64, value: int64) pub Setzt OID-Teilbezeichner an Position
SNMPResponseAsString(resp: SNMPResponse): int64 pub Gibt Antwortwert als String zurück
SNMPResponseAsInteger(resp: SNMPResponse): int64 pub Gibt Antwortwert als Integer zurück