TrapSnap
Substitutes
Substitute Strings in TrapSnap.cfg.
The following table lists the string substitues that are recognised by TrapSnap.
These substitutions can occur in any field after the Specific Trap number field and they
occur in any order.
| Code | Substituted String |
|---|---|
| %s | IP address of Trap Source |
| %E | Enterprize Number of Trap Source |
| %g | Generic Trap Number of Trap (1-6) |
| %n | Specific Trap Number of Trap |
| %@ | Unix time number |
| %_ | time in the format hh_mm_ss |
| %? | the repetition number so that each action can be destinguished |
| %* | print all the trap values preceeded by the index number [n] value ... |
| %N | where N is a single digit is the value of the Nth trap var bind |
| %% | same as % |
| %A | locale's full weekday name |
| %b | locale's abbreviated month name |
| %B | locale's full month name |
| %c | locale's appropriate date and time representation |
| %d | day of month [1,31]; single digits are preceded by 0 |
| %H | hour (24-hour clock) [0,23]; single digits are preceded by 0 |
| %I | hour (12-hour clock) [1,12]; single digits are preceded by 0 |
| %j | day number of year [1,366]; single digits are preceded by 0 |
| %m | month number [1,12]; single digits are preceded by 0 |
| %M | minute [00,59]; leading zero is permitted but not required |
| %p | locale's equivalent of either a.m. or p.m. |
| %S | seconds [00,61] |
| %t | insert a tab |
| %U | week number of year as a decimal number [00,53], with Sunday as the first day of week 1 |
| %w | weekday as a decimal number [0,6], with 0 represent- ing Sunday |
| %W | week number of year as a decimal number [00,53], with Monday as the first day of week 1 |
| %x | locale's appropriate date representation |
| %X | locale's appropriate time representation |
| %y | year within century [00,99] |
| %Y | year, including the century (for example 1993) |
| %Z | time zone name or abbreviation, or no bytes if no time zone information exists |