Users Guide

Table Of Contents
For the IMG_FILE, CLI_CONFIG_FILE, and POST_SCRIPT_FILE files, you can specify HTTP, SCP, SFTP, or TFTP URLs.
For example:
scp://userid:passwd@hostip/filepath
sftp://userid:passwd@hostip/filepath
Example
#!/bin/bash
####################################################################
#
#
# Example OS10 ZTD Provisioning Script
#
#
####################################################################
########## UPDATE THE BELOW CONFIG VARIABLES ACCORDINGLY ###########
########## ATLEAST ONE OF THEM SHOULD BE FILLED ####################
IMG_FILE="http://50.0.0.1/OS10.bin"
CLI_CONFIG_FILE="http://50.0.0.1/cli_config"
POST_SCRIPT_FILE="http://50.0.0.1/no_post_script.py"
################### DO NOT MODIFY THE LINES BELOW #######################
sudo os10_ztd_start.sh "$IMG_FILE" "$CLI_CONFIG_FILE" "$POST_SCRIPT_FILE"
######################## **END** ###############################
ZTD CLI batch file
Create a CLI batch file that ZTD downloads and executes to configure a switch. The ZTD CLI batch file consists of two sections:
PRE-CONFIG and POST-CONFIG.
When you enter the PRE-CONFIG and POST-CONFIG lines, you must enter a hash tag (#), followed by a space before the
text PRE-CONFIG or POST-CONFIG. If the PRE-CONFIG section has no commands, do not leave a blank line between #
PRE-CONFIG and # POST-CONFIG; for example:
# PRE-CONFIG
# POST-CONFIG
Hostname VxRail-fabric-LEAF-1
!
lldp enable
!
spanning-tree mode rstp
spanning-tree rstp priority 0
...
ZTD executes the PRE-CONFIG commands first using the currently running OS10 image, not the OS10 image specified in the
provisioning script. ZTD saves the PRE-CONFIG settings to the startup configuration.
If PRE-CONFIG commands are present, ZTD reloads the switch before executing the commands in the POST-CONFIG section.
Enter OS10 configuration commands that require a switch reload, such as switch-port-profile, in the PRE-CONFIG
section. If ZTD installs a new OS10 image (IMG_FILE), the new image is activated after the reload.
ZTD then executes the POST-CONFIG commands and saves the new settings in the startup configuration. No additional switch
reload is performed. Enter POST_CONFIG commands with the exact syntax displayed in show running-configuration
output.
Example
# PRE-CONFIG
switch-port-profile 1/1 profile-2
# POST-CONFIG
130
Dell EMC SmartFabric OS10 zero-touch deployment