| 
 | snmp2_setSet the value of an SNMP object Description
   bool snmp2_set
    ( string  $host, string$community, string$object_id, string$type, string$value[, string$timeout= 1000000
   [, string$retries= 5
  ]] )
   snmp2_set 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 snmp2_set 
<?phpExample #2 Using snmp2_set for setting BITS SNMP object id 
<?phpSee Also
 
 |