Reference
SNMP Trap Data File
This file stores traps recorded from trap senders. You can edit it after recording or create it from scratch.
The simulator sends all traps in this file after it starts.
Root Node
<SnmpSimulatorTrapData trapTimestampOffset="0">
trapTimestampOffset: offset applied to sysUpTime.
Traps Section
This section contains one or more Trap nodes. The simulator sends each trap at the time specified by its time value. For example, a node with time="1000" is sent 10000 milliseconds after the simulator starts. Trap nodes do not need to be ordered by time.
Trap Node
SNMPv1 Trap
<Trap
generic="linkDown"
specific="0"
time="200"
count="3"
ipaddress="192.168.1.101"
/>
SNMPv2 Trap
<Trap
snmpTrapOID=".1.3.6.1.2.1.1.1.15511"
time="200"
count="3"
/>
generic | generic-trap field; accepts a numeric or string value. |
specific | SNMPv3 engineID of this agent. If empty, the first IP address resolved for the host name is used. |
enterpriseOID | enterprise OID of an SNMPv1 trap. |
snmpTrapOID | object identifier of the snmpTrapOID object (SNMPv2/v3 traps). |
time | time to send this trap, in centiseconds (1/100 second). |
count | number of traps to send. |
ipAddress | IP address field in an SNMPv1 trap. |
port | port number of the trap receiver. |
Variable Node
Variable nodes are children of a Trap node. They define its variable bindings.
Sample:
<Variable
oid=".1.3.6.1.2.1.1.1.0"
valueType="OctetString"
>
<![CDATA[111etest faf a]]>
</Variable>
oid | Object identifier of this variable. |
valueType | Data type of value. |
CDATA | Value of this variable. |