title: what is the correct snmptrap command format?
body: <p>Which of the following is the correct format for <code>snmptrap</code> (net-snmp) command?</p>
  
  <pre><code>snmptrap -v 2c -c public host "" NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification \
         netSnmpExampleHeartbeatRate i 123456
  </code></pre>
  
  <p>or</p>
  
  <pre><code>snmptrap -v 2c -c public host "" NET-SNMP-EXAMPLES-MIB::netSnmpExampleHeartbeatNotification \
         netSnmpExampleHeartbeatRate.0 i 123456
  </code></pre>
  
  <p>i.e., with or without <code>.0</code> in the variable bindings?</p>
  
  <p>Actually both of these formats work, but which one is right or what is the difference? </p>