Snmpwalkoid---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Access to the Web entity tree data
Syntax: Array snmpwalkoid (string hostname, string community, String object_id [, int timeout [, int retries]]
Description:
Returns an array variable and object IDs, and their respective object values start at object_id, and the error returns false.
Snmpwalkoid () is the SNMP agent specified from hostname to read all object IDs and their respective values. Parameter community Specifies to read the public (read community), a null object_id is the root directory that obtains the tree-like SNMP object, and returns an array of all objects that are in this root directory. If there is a specified object_id, all objects under this object_id are returned.
The existence and Snmpwalk () of snmpwalkoid () have historical reasons, and these two functions are prepared for later compatibility.
Example:
<?php
$a = snmpwalkoid ("127.0.0.1", "Public", "");
?>
The example above will return all SNMP objects from the SNMP agent executing in localhost, and we can use the loop to get its value
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.