(PHP 4, PHP 5, PHP 7)
snmpget — Ein SNMP Objekt holen
$hostname
, string $community
, string $object_id
[, int $timeout = 1000000
[, int $retries = 5
]] ) : string
Die snmpget() Funktion wird verwendet um den Wert eines
SNMP Objekts zu ermitteln, das mit object_id näher
bestimmt ist.
hostnameDer SNMP-Agent.
communityDie "read community".
object_idDas SNMP-Objekt.
timeoutDie Zahl der Mikrosekunden bis zum ersten Timeout.
retriesDie Anzahl der Wiederholungsversuche, wenn Timeouts auftreten.
Gibt im Erfolgsfall den Wert eines SNMP-Objekts zurück,
oder FALSE im Fehlerfall.
Beispiel #1 Verwendung von snmpget()
<?php
$syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0");
?>