snmpset

(PHP 4, PHP 5, PHP 7, PHP 8)

snmpset設置一個 SNMP 對象

說明

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

設置指定的 SNMP 對象的值,成功返回 true,錯誤則返回 false。

函數(shù) snmpset() 用于設置由 object_id 指定的 SNMP 對象的值。hostname 指定 SNMP 代理,而 community 參數(shù)指定具有讀權限的域。