PHP.nl

snmp2_get

snmp2_get

Fetch an SNMP object

mixed **snmp2_get** string $hostname string $community  $object_id int $timeout int $retries

The function is used to read the value of an object specified by the . snmp2_get``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 = snmp2_get("127.0.0.1", "public", "system.SysContact.0");
?>

snmp2_set