Readme.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ============================================================
  2. <OID encoding steps for WIZnet SNMP Agent>
  3. ============================================================
  4. + Example OID for convert
  5. 1.3.6.1.4.1.19865.1.0
  6. (1) Convert Usage
  7. CMD>>oid 1.3.6.1.4.1.19865.1.0
  8. => 06 0A 2B 06 01 04 01 81 9B 19 01 00
  9. >> TLV(tag-length-value) Example OID
  10. (06) Tag
  11. (0A) Length
  12. [2B] 1(iso).3(identified-organization) (in ASN.1 BER encoding, i.e. 1*40+3 = 0x2b)
  13. [06] 6(dod)
  14. [01] 1(internet)
  15. [04] 4(private)
  16. [01] 1(enterprise)
  17. [81 9B 19] 19865(Vendor-Specific)
  18. ...
  19. (2) Add the entry to OID table in source code (DataEntryType, put the converted value to array)
  20. {0x0a, {0x2b, 0x06, 0x01, 0x04, 0x01, 0x81, 0x9b, 0x19, 0x01, 0x00},
  21. SNMPDTYPE_OCTET_STRING, 30, {"long-length OID Test"},
  22. NULL, NULL},
  23. ============================================================
  24. OID Converter: OID encoder/decoder
  25. v1.3 - Matthias Gaertner 1999/2001 - Freeware
  26. ============================================================
  27. The OID converter is a handy little tool to convert ASN.1 OIDs from readable dotted decimal notation to binary hexadecimal Distinguished Encoding Rules (DER) representation and vice versa.
  28. If you're into x.509 certificates, this may be useful to you, too.
  29. Usage:
  30. OID [-c|-C] [-o] {-i|1.2.3.4}
  31. converts dotted form to ASCII HEX DER output.
  32. OID -x [-o] {-i|hex-digits}
  33. decodes ASCII HEX DER and gives dotted form.
  34. If you need more information, please refer to Matthias Gaertner's page,
  35. http://www.rtner.de/software/oid.html
  36. ===============================================================================================