snmpset

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

snmpset設(shè)置一個 SNMP 對象

說明

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

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

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