Binary functions

Binary functions

The following binary functions return a text representation of the given binary data retrieved using discovery.snmpGet or discovery.snmpGetTable. They return none if the value is invalid, for example the wrong size for an IP address, or is not a binary value.

  • binary.toHexStringReturns the given binary value as a hex string, that is, two hex digits per byte.
  • binary.toIPv4Returns the given binary value as the text representation of an IPv4 address.
  • binary.toIPv4zReturns the given binary value as the text representation of an IPv4 address with a zone index.
  • binary.toIPv6Returns the given binary value as the text representation of a canonical IPv6 address.
  • binary.toIPv6zReturns the given binary value as the text representation of a canonical IPv6 address with zone index.
  • binary.toMACAddressReturns the given binary value as the text representation of a MAC address.
  • binary.toValueConverts the given binary value into the specified format.
  • binary.toWWNReturns the given binary value as the text representation of a WWN value.
Was this page helpful? Yes No Submitting... Thank you

Comments