FreeDSx / SNMP

A Pure PHP SNMP Library.
MIT License
57 stars 13 forks source link

send string value #18

Closed gabodl15 closed 1 year ago

gabodl15 commented 2 years ago

Hi, happy afternoon friend. i am trying to get the name of a computer. using a snmp search engine, it tells me that its oid is <>, but when i put that value like that i never get the result.

How can I get the value by passing that string?

ChadSikorra commented 1 year ago

Unfortunately this library has no official MIB support (string value OID support). MIB support would require MIB parsing, which is actually quite complex due to being a subset of ASN1. This would technically be part of an earlier request:

https://github.com/FreeDSx/SNMP/issues/9

I'm closing that in favor of keeping that other one open. However, it's probably unlikely I get to this due to constraints of time in my personal life. It would be an interesting project for someone to undertake in PHP though. I had an attempt to add ASN1 parsing a couple years ago now and it was quite the mess because the ASN1 data structure format is so flexible and contains many concepts. If someone focused on just the MIB portion of ASN1 parsing, they could potentially hack together a solution that ignores many other aspects of ASN1 structures in general, but it would likely be an ugly adventure in parsing.