You are here: snmp: string index in OID is considered invalid :-( « PHP Programming Language « IT news, forums, messages
snmp: string index in OID is considered invalid :-(

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация