|
Posted by Christian Hammers on 10/19/05 11:48
Hello
How can I do the following command with PHP?
$ snmpwalk -Ir -On myhost \
'ASCEND-MIBINET-MIB::internetProfile-Active."cir-1-26"'
..1.3.6.1.4.1.529.23.1.1.1.2.8.99.105.114.45.49.45.50.54 = INTEGER: yes(2)
snmpget() does not like the string index and give "Invalid object identifier",
it seems that something like the "-Ir" flag is missing in PHP as other
entries of this mib can be translated correctly.
Funnily, snmpwalk() does return the string representation itself:
array (
'ASCEND-MIBINET-MIB::internetProfile-Station."bras-1-2"'
=> 'STRING: "bras-1-2"',
...
Does anybody know the trick or do I have write my own OID converter which
would not be hard though as the appended oid numbers are just the strlen()
and the ascii values of the string.
bye,
-christian-
Navigation:
[Reply to this message]
|