Home > PHP > Function > SNMP > snmpset()

snmpset()

snmpset - Set an
SNMPobject

Syntax

bool snmpset (string $hostname, string $community, string $object_id, string $type, mixed $value, int $timeout, int $retries)

Arguments

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

Description

snmpset() is used to set the value of an SNMPobject specified by the object_id.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.