Reference Guide

Table Of Contents
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.
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.
Example
# PRE-CONFIG
configure terminal
hostname ZTD-3
exit
configure terminal
interface vlan 210
description ztd-jun29-210
no shutdown
exit
# POST-CONFIG
configure terminal
snmp-server contact DellEMC
exit
configure terminal
interface vlan 500
no shutdown
Post-ZTD script
As a general guideline, use a post-ZTD script to perform any additional functions required to configure and operate the switch.
In the ZTD provisioning script, specify the post-ZTD script path for the POST_SCRIPT_FILE variable. You can use a script to
notify an orchestration server that the ZTD configuration is complete. The server can then configure additional settings on the
switch.
Getting Started
29