Home > PHP > Function > SNMP > snmpget()

snmpget()

snmpget - Fetch an
SNMPobject

Syntax

string snmpget (string $hostname, string $community, string $object_id, int $timeout, int $retries)

Arguments

  • hostname - The SNMPagent.
  • community - The read community.
  • object_id - The SNMPobject.
  • timeout - The number of microseconds until the first timeout.
  • retries

Description

The snmpget() function is used to read the value of an SNMPobject specified by the object_id.

Version

PHP 4, 5

Return value

Returns SNMPobject value on success or FALSE on error.