|
snmpsetSNMP オブジェクトの値を設定する 説明
bool snmpset(
string $hostname ,string $community ,arraystring $object_id ,arraystring $type ,arraystring $value ,int $timeout = -1,int $retries = -1)
snmpset 関数は、
パラメータ
戻り値
成功した場合に SNMP ホストがデータ型を却下すると、"Warning: Error in packet. Reason: (badValue) The value given has the wrong type or length." のような’ E_WARNING メッセージが表示されます。未知の OID あるいは無効な OID を指定した場合は、おそらく "Could not add variable" のような警告となります。 例例1 snmpset の使用法
<?php 例2 BITS SNMP オブジェクト ID を設定した snmpset の使用法
<?php 参考
|