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.

CodeSubstituted String
%sIP address of Trap Source
%EEnterprize Number of Trap Source
%gGeneric Trap Number of Trap (1-6)
%nSpecific 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 ...
%Nwhere N is a single digit is the value of the Nth trap var bind
%%same as %
%Alocale's full weekday name
%blocale's abbreviated month name
%Blocale's full month name
%clocale's appropriate date and time representation
%dday of month [1,31]; single digits are preceded by 0
%Hhour (24-hour clock) [0,23]; single digits are preceded by 0
%Ihour (12-hour clock) [1,12]; single digits are preceded by 0
%jday number of year [1,366]; single digits are preceded by 0
%mmonth number [1,12]; single digits are preceded by 0
%Mminute [00,59]; leading zero is permitted but not required
%plocale's equivalent of either a.m. or p.m.
%Sseconds [00,61]
%tinsert a tab
%Uweek number of year as a decimal number [00,53], with Sunday as the first day of week 1
%wweekday as a decimal number [0,6], with 0 represent- ing Sunday
%Wweek number of year as a decimal number [00,53], with Monday as the first day of week 1
%xlocale's appropriate date representation
%Xlocale's appropriate time representation
%yyear within century [00,99]
%Yyear, including the century (for example 1993)
%Ztime zone name or abbreviation, or no bytes if no time zone information exists