note 108223 added to function.snmp2-walk
| From: | Adam | Date: | Mon, 09 Apr 2012 15:27:01 +0000 |
| Subject: | note 108223 added to function.snmp2-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187025@lists.php.net to get a copy of this message | ||
After some testing, I have found that SNMPWalk is considerably slower than multiple SNMPGet.
I was aiming to retrieve 6 Objects from a MIB; the device being polled was attached via a 100mbps
network link.
I decided to run SNMPGet within a loop to retrieve each Object from the specified OID's.
As these OID's were within the same tree, I then thought about using walk as this would
consolidate the data into a single request. I then walked the tree to get the same result.
I subsequently testing the time it took to retrieve this information via microtime().
As a result, you can retrieve 1 walk containing 6 OID's within the same time as requesting 18
OIDs via get.
I hope this helps someone whom is looking to speed up their SNMP requests.
----
Server IP: 69.147.83.197
Probable Submitter: 95.145.208.109
----
Manual Page -- http://www.php.net/manual/en/function.snmp2-walk.php
Edit -- https://master.php.net/note/edit/108223
Del: integrated -- https://master.php.net/note/delete/108223/integrated
Del: useless -- https://master.php.net/note/delete/108223/useless
Del: bad code -- https://master.php.net/note/delete/108223/bad+code
Del: spam -- https://master.php.net/note/delete/108223/spam
Del: non-english -- https://master.php.net/note/delete/108223/non-english
Del: in docs -- https://master.php.net/note/delete/108223/in+docs
Del: other reasons-- https://master.php.net/note/delete/108223
Reject -- https://master.php.net/note/reject/108223
Search -- https://master.php.net/manage/user-notes.php