WAN MAC Address Placeholder for Auto-Update File URLs
You can use a hardcoded placeholder variable for the device's WAN MAC address (gigabitethernet 0/0) in the URL path or filename for the Auto-Update mechanism. You can use this placeholder for any Auto-Update parameter that configures a URL and file (e.g., IniFileURL, CLIStartupScriptUrl, and AutoUpdateCmpFile).
You can use the following WAN MAC placeholder strings (case sensitive):
■ | "<WANMAC>": The device replaces the placeholder with its WAN MAC address in uppercase (e.g., 00908FCAAC2A). |
■ | "<wanmac>": The device replaces the placeholder with its WAN MAC address in lowercase (e.g., 00:90:8f:ca:ac:2a). |
Using placeholders for automatic provisioning can be especially useful for deployments with many device. Typically, you'd need a separate URL for each device for the Auto-Update settings. With placeholders, you can use the same URL and filename for all devices. This lets each device automatically grab the configuration file it needs based on its unique WAN MAC address.
For example, if the WAN MAC is 00:90:8F:CA:AC:2A and you configure the provisioning URL of the Startup Script file as shown below, the device replaces your configuration with "(auto-update)# startup-script https://company.com/files/startup_00908FCAAC2A.txt".
(config-system)# automatic-update
(auto-update)# startup-script https://company.com/files/startup_<MAC>.txt
The device replaces the placeholder with its MAC address, but without the colons (:) that separate every two digits (e.g., 00908fcaac2a instead of 00:90:8f:ca:ac:2a).