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 recognize an IpAddress or TimeTick type?

ipaddress recognize type
0
Posted

How do I recognize an IpAddress or TimeTick type?

0

Use MibTypeTags to distinguish them from the base INTEGER or OCTET STRING types. Both have APPLICATION type tags set, whereas the basic ASN.1 types only have a UNIVERSAL type tag. You can check the exact type tag present by first looking into either the RFC1155-SMI or SNMPv2-SMI MIB files to check which type tag is used for the type. Then use the MibType.hasTag() method to check the type in your code.

Related Questions

What is your question?

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

Experts123