snmpget
snmpget
Fetch an SNMP object
mixed **snmpget** string $hostname string $community $object_id int $timeout int $retries
The function is used to read the
value of an object specified by the
.
snmpget``object_id
hostnameThe agent.
communityThe read community.
object_idThe object.
timeoutThe number of microseconds until the first timeout.
retriesThe number of times to retry if timeouts occur.
Returns object value on success or false on error.
**Voorbeeld: Using **
<?php
$syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0");
?>
snmpset