Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I get the OID from a MibSymbol?

mibsymbol OID
0
Posted

How do I get the OID from a MibSymbol?

0

An OID is stored in the ObjectIdentifierValue class. Only MibValueSymbols have a value and even then not all values are OID:s. The proper way to get the OID is to first check for a MibValueSymbol and then for an ObjectIdentiferValue with the instanceof operator. See the extractOid() method in the brief introduction for a source code example.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123