Users Guide

NOTE: To display a properly formatted output string, Dell EMC Networking recommends adding the following clido wrapper
function at the beginning of TCLSH and EXPECT scripts:
# Execute clido and return the output string
proc Execclido {cmd_str} {
set str [exec clido "$cmd_str"]
set tmp_str [string map {\n \r\n} $str ]
return $tmp_str
}
...
set out_str [Execclido "show version"]
puts $out_str
...
Auto–execution Scripts
The auto–execution (auto–exec) script is the same as a pre–conguration script except that it runs on every reboot in Normal mode.
Store scripts in a flash://autoexec le. Auto–exec scripts are independent of BMP.
The auto–exec script runs only when:
BMP is disabled.
The script is stored in a flash://autoexec le.
Before reloading the system, use the boot-type normal-reload command in the reload-type sub command mode.
If the auto–exec script fails, the system generates a message indicating the failure and does not load the conguration le. Before
continuing the upgrade, correct the error in the script.
Post–conguration Scripts
The post–conguration script runs after the start-up conguration is applied as script post-config script-name. In BMP mode,
after the pre-conguration script completes and the conguration loads, you can run a post-conguration script if one is present in the
conguration le. In normal reload, if there is script post-config script-name cong in the startup cong le, post-conguration
script executes.
To check the status of congured ports or protocols, set the host name of the system, or perform additional conguration settings, use the
post-conguration script. The system supports post-conguration scripts in EXPECT, TCLSH, and ZSH. If you installed the SmartScripts
package in your Dell EMC Networking switches, the system also supports post-conguration scripts in Perl, Python, and Ruby.
Using the Pre–conguration Script
To pre–congure the scripts, follow these steps:
1 Decide what information you want to pre–congure; for example, request username and password information. Verify the integrity of
the boot image the DHCP oer downloads and apply the conguration types.
2 Create a pre–conguration script in EXPECT, TCL or ZSH.
3 Store the script on any TFTP/FTP/SFTP server that is reachable from the system and mention the URL le (TFTP/FTP/SFTP) in the
DHCP oer.
4 Change the reload-type to BMP and reload the switch. The system boots in BMP mode.
5 The system receives an IP address via the DHCP server which it uses to get a Dell EMC Networking OS image to boot, a conguration
le (if supplied), and a pre–conguration script.
6 The system runs the pre–conguration script.
The default timer on the script is 10 minutes. The maximum amount of time the script can run is one hour.
Bare Metal Provisioning
27