update : 2015.11.03
php.shukuma.com검색:
|
snmpset(PHP 4, PHP 5) snmpset — Set the value of an SNMP object 설명
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 인수
반환값
성공 시 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". 예제Example #1 Using snmpset()
<?php Example #2 Using snmpset() for setting BITS SNMP object id
<?php |