snmp2_get(3) php man page | unix.com

Man Page: snmp2_get

Operating Environment: php

Section: 3

SNMP2_GET(3)								 1							      SNMP2_GET(3)

snmp2_get - Fetch anSNMPobject

SYNOPSIS
string snmp2_get (string $host, string $community, string $object_id, [string $timeout = 1000000], [string $retries = 5])
DESCRIPTION
The snmp2_get(3) function is used to read the value of an SNMP object specified by the $object_id.
PARAMETERS
o $host - The SNMP agent. o $community - The read community. o $object_id - The SNMP object. o $timeout - The number of microseconds until the first timeout. o $retries - The number of times to retry if timeouts occur.
RETURN VALUES
Returns SNMP object value on success or FALSE on error.
EXAMPLES
Example #1 Using snmp2_get(3) <?php $syscontact = snmp2_get("127.0.0.1", "public", "system.SysContact.0"); ?>
SEE ALSO
snmp2_set(3). PHP Documentation Group SNMP2_GET(3)
Related Man Pages
snmpwalk(3) - php
snmpgetnext(3) - php
snmp3_real_walk(3) - php
snmp3_set(3) - php
snmp3_walk(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update