|
snmpsetSet the value of an SNMP object Description
bool snmpset
( string
$host
, string $community
, string $object_id
, string $type
, mixed $value
[, int $timeout = 1000000
[, int $retries = 5
]] )
snmpset is used to set the value of an SNMP object
specified by the Parameters
Return Values
Returns If the SNMP host rejects the data type, an E_WARNING message like "Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." is shown. If an unknown or invalid OID is specified the warning probably reads "Could not add variable". ExamplesExample #1 Using snmpset
<?php Example #2 Using snmpset for setting BITS SNMP object id
<?php See Also
|