Users Guide

7 The pre–conguration script can access Dell EMC Networking OS CLI commands through the clido utility. The clido utility has no
pagination, is always set to terminal length 0, and has Dell EMC Networking OS CLI privilege 15 enabled. It works in the
following modes:
Continuous mode (clido command) — use to retain the Dell EMC Networking OS context.
Reset mode (clido -r command) — use to reset the CLI command to its original context.
8 To execute CLI commands during boot time, the system uses the clido utility.
Using the Post-conguration Script
To run the post-conguration script, ensure the following:
You can write the post–conguration script in EXPECT, TCLSH, or ZSH. If you installed the SmartScripts package, you can also write
the post-conguration script in Perl, Python, or Ruby.
No restraints are required for the post–conguration script; for example, the signature #/DELL-NETWORKING that is required for the
pre–conguration script is not required for the post-conguration script.
Congure the post–conguration script by using the script post-config command.
Reload the device (either in BMP mode or Normal reload-type mode).
Execute the post–conguration script after the start-up conguration process is applied.
The post-conguration script has the ability to use Dell EMC Networking OS CLI commands using the utility name clido.
If the script post-config script is present in the startup–cong le, irrespective of the reload-type, upon reload and after the
conguration le is loaded, the post–cong runs.
Using Auto-Execution Script (Normal Mode Only)
To use the autoexec script, the following conditions must be true:
BMP is disabled.
The autoexecution script is stored in flash://autoexec.
You can write the autoexecution script in EXPECT, TCLSH, or ZSH. If you installed the SmartScripts package, you can also write the
post-conguration script in Perl, Python or Ruby.
No restraints are required for the autoexec script; for example, the signature #/ DELL-NETWORKING that is required for the
preconguration script is not required for the post-conguration script.
The autoexecution script can use Dell EMC Networking OS CLIs using the utility name F10do.
When the autoexecution script completes, the start-up conguration applies depending on the return status of the script:
Success–0 — the start-up conguration applies.
Failure–non-zero — the start-up conguration does not apply.
If you reboot the system with the reload-type set as normal-reload and an autoexec script is present in the Flash directory, the
following log displays:
Starting Dell EMC Networking application
00:00:13: %STKUNIT1-M:CP %RAM-6-ELECTION_ROLE: Stack unit 1 is
transitioning to Management unit.
00:00:15: %STKUNIT1-M:CP %CHMGR-5-STACKUNITDETECTED: Stack unit
1 present
00:01:02: %STKUNIT0-M:CP %BMP-5-AUTOEXEC_START: The AutoExec
Script is Started.
After the script execution is successful, Dell EMC Networking OS log displays:
00:04:05: %STKUNIT0-M:CP %BMP-5-AUTOEXEC_SUCCESS: The AutoExec
Script execution returned Success.
copy startup-config running-config
!
4774 bytes successfully copied
00:04:06: %STKUNIT0-M:CP %SYS-5-CONFIG_LOAD: Loading
configuration file
28
Bare Metal Provisioning