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

  1. 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 StringDevice 1Device 2Device 3
    SN_${num:3,1}SN_001SN_002SN_003
    ${num:5,123}001230012400125
  2. 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)

  3. 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 with A
    • Constraint: The length of <start> must not exceed <places>
    Format StringDevice 1Device 2Device 3
    ${alpha:3,ABC}ABCABDABE
    ${alpha:2,AZ}AZBABB
  4. Random Alphabetic${alpha:<places>,rand}

    • <places>—The length of the alphabetic string
    • rand—A literal keyword that triggers random generation
    • Each character is independently and randomly chosen from A–Z

    Example: ${alpha:6,rand}QMXBFT (random)

  5. Current Date${date}

    • No parameters
    • Inserts the current date in ISO 8601 format: YYYY-MM-DD (ten characters)

    Example: ${date}2026-04-01

  6. Plain Text

    • Any characters outside ${...} delimiters are treated as literal text

    Example: PREFIX_PREFIX_

Tokens and plain text can be freely combined in a single format string.

Table 6-1. Combining Tokens
Format StringDevice 1 Output
FOO_${num:3,0}_${alpha:2,AB}_${date}_ENDFOO_000_AB_2026-03-15_END
MCP_${num:3,1}MCP_001
${date}_${alpha:5,A}_${num:5,123}2026-03-15_AAAAA_00123
Table 6-2. Validation Rules
RuleSeverityDescription
Invalid token ErrorAny ${...} content that does not match a known token pattern
Alpha start exceeds places ErrorThe start string length is greater than places value
Numeric start exceeds places ErrorStart number ≥ 10^places
Serial exceeds 30 characters ErrorAny generated serial number longer than 30 characters
Non-unique serials️ WarningGenerated serial numbers for the selected devices are not all unique
Empty format️ WarningEmpty format string—serial numbers will be cleared