Bug #10397 Updated: Cannot get, set or walk on different subtree than .iso.3.6.1.2.1
| From: | rasmus@php.net | Date: | Fri, 13 Jul 2001 04:27:55 +0000 |
| Subject: | Bug #10397 Updated: Cannot get, set or walk on different subtree than .iso.3.6.1.2.1 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59913@lists.php.net to get a copy of this message | ||
ID: 10397
Updated by: rasmus
Reported By: tlechat@ccf.com
Status: Open
Bug Type: SNMP related
Operating System: W2000
PHP Version: 4.0.4
New Comment:
Start your OID with a .
ie. snmpget("myhost","public",".1.3.6.1.2.3.1191.1.2")
Previous Comments:
------------------------------------------------------------------------
[2001-04-19 14:16:29] tlechat@ccf.com
PRECISION :
In my previous mail I wrote that
snmpget("myhost","public","1.3.6.1.2.3.1191.1.2")
will fails with warning ".iso.3.6.1.2.1.1.3.6.1.2.3.1191.1.2" doesn't exists
But the exact warning is :
Warning: Invalid object identifier: 1.3.6.1.2.3.1191.1.2
So it could be really an incorrect object identifier, but a simple
snmpwalkoid on same machine can show you that it starts always on iso.3.6.1.2.1. if you specify no
OID, and it fails if you specify OID (for example try with .1 or .iso)
Please note that my correct email is tlechat@ccf.fr (sorry)
Regards
------------------------------------------------------------------------
[2001-04-19 07:09:31] tlechat@ccf.com
If seems that a default OID (.iso.3.6.1.2.1) is always added to OID parameter when I call snmpget
or snmpwalk.
Example, If I try :
snmpget("myhost","public","1.3.6.1.2.3.1191.1.2"),
it will try to get .iso.3.6.1.2.1.1.3.6.1.2.3.1191.1.2
so it fails....
with warning ".iso.3.6.1.2.1.1.3.6.1.2.3.1191.1.2" doesn't exists
I modify php_snmp.dll when I saw with an dll editor the string .1.3.6.1.2.1 inside and I replace
first of his char by \0, from now, it works fine, I can get different OID.
Bonus Question : What is snmprealwalk() function ? There is no information in documentation. It
seems that it does same function that snmpwalkoid. Right ?
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10397&edit=1