Use the XML adapter command (-XML) to specify that the data being sent to the SNMP Adapter is in XML format.

The default message format is plain text.

The format of the XML message is as follows:

<String><![CDATA[ string data ]]></String>
<Integer>integer value</Integer>
<Binary>base64 encoded binary data</Binary>
<Priority>integer value [0-6]</Priority>

This format allows for binary data and an integer variable to be sent in the trap message. This enables an error code to be sent in addition to the data, and any other kind of data that the permitting binary data allows. If the XML format is not used, then only the text variable is sent in the trap.

A single MIB variable, the string or binary value, is limited to 64K due to a limitation in the SNMP protocol.