PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<snmp_set_valueretrievalsnmpgetnext>
Last updated: Mon, 16 Jul 2012

snmpget

(PHP 3, PHP 4, PHP 5)

snmpget -- 获取一个 SNMP 对象

描述

string snmpget ( string hostname, string community, string object_id [, int timeout [, int retries]] )

成功则返回 SNMP 的对象值,失败则返回 FALSE

函数 snmpget() 用于读取由 object_id 指定的 SNMP 对象值。hostname 指定 SNMP 代理,而 community 参数指定具有读权限的域的名字。

<?php
$syscontact
= snmpget("127.0.0.1", "public", "system.SysContact.0");
?>




<snmp_set_valueretrievalsnmpgetnext>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST