Service Manual
• If the script returns a non-zero value (indicating a failure), the configuration file does not load in the system. Debug it manually and
reload the system with the corrected script. If the autoexec script fails, the system syslog displays:
00:00:34: %STKUNIT1-M:CP %BMP-5-AUTOEXE_FAILURE: The AutoExec
Script execution returned Failure.
Timers in Pre–configuration and Post–configuration
Scripts
To avoid the scripts executing for a long time or an infinitely running script, the Dell Networking OS has a session timer of maximum one
hour. After this time, the device reloads and you can go to the DHCP server and correct the script errors.
You can manually control the maximum execution time of the script using the Dell Networking OS proprietary utility, rstimer. This utility
resets or reloads the device after the mentioned time in the rstimer.
The timer can be set as rstimer time.
The rstimer range is from 1 to 60 minutes. The default is 10 minutes.
You can set this utility in pre–configuration or post–configuration script and this timer is triggered only after the line of execution of
rstimer time. For example, if a script is running for 8 minutes and the next line of execution is rstimer 4, the device reloads only after
12 minutes from the start of script execution.
Script Examples
The following are BMP script examples.
Auto-Execution Script – Normal Mode
Dell#show reload-type
Reload-Type : normal-reload [Next boot : normal-reload]
Dell#show file flash://autoexec
#! /usr/bin/tclsh
puts [ exec f10do "show version" ]
puts [ exec date ]
puts "this is Autoexec script"
Dell#
Dell#
Dell#reload
System configuration has been modified. Save? [yes/no]: no
Proceed with reload [confirm yes/no]: yes
00:32:16: %STKUNIT1-M:CP %CHMGR-5-RELOAD: User request to
reload the chassis syncing disks... done
unmounting file systems...
unmounting /f10/flash (/dev/ld0h)...
unmounting /usr/pkg (/dev/ld0g)...
unmounting /usr (mfs:35)...
unmounting /f10 (mfs:21)...
unmounting /kern (kernfs)...
unmounting / (/dev/md0a)... done
rebooting
..
..
..
Starting Dell Networking application
00:00:13: %STKUNIT1-M:CP %RAM-6-ELECTION_ROLE: Stack unit 1 is
transitioning to Managementunit.
00:00:15: %STKUNIT1-M:CP %CHMGR-5-STACKUNITDETECTED: Stack unit
1 present.
Bare Metal Provisioning
29