snmpset
(PHP3 >= 3.0.12 , PHP4 >= 4.0b2)
snmpset --- 設定SNMP物件
語法 :
bool snmpset(string hostname, string community, string object_id, string type, mixed value [, int timeout [, int retries]])說明 :
設定指定的SNMP物件值,成功則傳回true,錯誤則傳回false。
snmpset( )是用來設定object_id所指定的SNMP物件的值,SNMP代理人(agent)是由參數 hostname來指定,參數 community指定讀取公眾(read community)。