Trap alert variables
This topic applies to the following products if you are NOT using the Orion Log Viewer to monitor SNMP traps.
IPAM — NAM — NCM — NPM — NTA — SAM — SRM — VNQM
The following variables can be used in trap alert messages with the Orion Trap Server. Each variable must begin with a dollar sign and be enclosed in curly braces as, for example, ${VariableName}
.
Trap alerts may also use any valid node variable.
Trap date and time variables
Trap Date/Time Variable |
Description |
---|---|
${AbbreviatedDOW} |
Current day of the week. Three character abbreviation. |
${AbbreviatedMonth} |
Current month of the year. Three character abbreviation. |
${AMPM} |
AM or PM corresponding to current time (before or after noon) |
${D} |
Current day of the month |
${DD} |
Current day of the month (two digit number, zero padded) |
${Date} |
Current date. (MM/DD/YYYY format) |
${DateTime} |
Current date and time. (MM/DD/YYYY HH:MM format) |
${Day} |
Current day of the month |
${DayOfWeek} |
Current day of the week. |
${DayOfYear} |
Numeric day of the year |
${H} |
Current hour |
${HH} |
Current hour. Two digit format, zero padded. |
${Hour} |
Current hour. 24-hour format |
${LocalDOW} |
Current day of the week. Localized language format. |
${LongDate} |
Current date. (DAY NAME, MONTH DAY, YEAR format) |
${LongTime} |
Current Time. (HH:MM:SS AM/PM format) |
${M} |
Current numeric month |
${MM} |
Current month. Two digit number, zero padded. |
${MMM} |
Current month. Three character abbreviation. |
${MMMM} |
Full name of the current month |
${MediumDate} |
Current date. (DD-MMM-YY format) |
${MediumTime} |
Current time. (HH:MM AM/PM format) |
${Minute} |
Current minute. Two digit format, zero padded. |
${MonthName} |
Full name of the current month |
${S} |
Current second. |
${Second} |
Current second. Two digit format, zero padded. |
${Time} |
Current Time. (HH:MM format) |
${Year} |
Four digit year |
${Year2} |
Two digit year |
Other trap variables
Trap Variable |
Description |
---|---|
${Application} |
SolarWinds application information |
${Community} |
Node community string |
${Copyright} |
Copyright information |
${DNS} |
Fully qualified node name |
${Hostname} |
Host name of the device triggering the trap |
${IP_Address} |
IP address of device triggering alert |
${Message} |
Message sent with triggered trap and displayed in Trap Details field of Trap Viewer |
${MessageType} |
Name or type of trap triggered |
${Raw} |
Raw numerical values for properties sent in the corresponding incoming trap. |
${RawValue} |
Raw numerical values for properties sent in the corresponding incoming trap. The same as ${Raw}. |
${vbData1} |
Trap variable binding value |
${vbName1} |
Trap variable binding name |