6.3.2 Custom Serial Format Token Reference
Token Syntax
All tokens use the syntax ${<token_type>:<parameters>}.
Anything outside the ${...} delimiters is treated as literal text and
included as-is in the serial number.
Available Tokens
-
Sequential Numeric—
${num:<places>,<start>}<places>—The number of digits (zero-padded)<start>—The starting number for the sequence (increments by 1 for each device)- Constraint:
<start>must be less than 10^places (e.g., for two places, the start value must be less than 100) - Wraps around when the maximum value is reached
Format String Device 1 Device 2 Device 3 SN_${num:3,1}SN_001SN_002SN_003${num:5,123}001230012400125 -
Random Numeric—
${num:<places>,rand}<places>— The number of digits (zero-padded)rand— A literal keyword that triggers random generation- Generates a random, zero-padded number for each device
Example:
${num:7,rand}→0384721(random) -
Sequential Alphabetic—
${alpha:<places>,<start>}<places>—The length of the alphabetic string<start>—The starting uppercase letter sequence (A–Z only)- Increments like a base-26 counter (A→B→...→Z→AA→AB...)
- If
<start>is shorter than<places>, it is right-padded withA - Constraint: The length of
<start>must not exceed<places>
Format String Device 1 Device 2 Device 3 ${alpha:3,ABC}ABCABDABE${alpha:2,AZ}AZBABB -
Random Alphabetic—
${alpha:<places>,rand}<places>—The length of the alphabetic stringrand—A literal keyword that triggers random generation- Each character is independently and randomly chosen from A–Z
Example:
${alpha:6,rand}→QMXBFT(random) -
Current Date—
${date}- No parameters
- Inserts the current date in
ISO 8601 format:
YYYY-MM-DD(ten characters)
Example:
${date}→2026-04-01 -
Plain Text
- Any characters outside
${...}delimiters are treated as literal text
Example:
PREFIX_→PREFIX_ - Any characters outside
Tokens and plain text can be freely combined in a single format string.
| Format String | Device 1 Output |
|---|---|
FOO_${num:3,0}_${alpha:2,AB}_${date}_END | FOO_000_AB_2026-03-15_END |
MCP_${num:3,1} | MCP_001 |
${date}_${alpha:5,A}_${num:5,123} | 2026-03-15_AAAAA_00123 |
| Rule | Severity | Description |
|---|---|---|
| Invalid token | Any ${...} content that
does not match a known token pattern | |
| Alpha start exceeds places | The start string length is greater than places value | |
| Numeric start exceeds places | Start number ≥ 10^places | |
| Serial exceeds 30 characters | Any generated serial number longer than 30 characters | |
| Non-unique serials | Generated serial numbers for the selected devices are not all unique | |
| Empty format | Empty format string—serial numbers will be cleared |
