Owner's Manual
60 | Smart Scripting
www.dell.com | support.dell.com
Schedule a script to run periodically.
script execute script-name start
{now | time-date | time} repeat
{weekdays weekday | days day
| minutes minutes} [stop {at
time-date | after time}] [args
argument] [username
username]
CONFIGURATION Schedule scripts to run at a certain time, to be repeated, or
to stop at a specified time or by a string of arguments. The
script runs in the background.
This example shows how you can repeat the execution of the script named “HA_script.pl” which starts after two
minutes and repeats every 20 minutes:
Dell(conf)# script execute HA_script.pl start 00:02 repeat minutes 20 username “user2”
The following example shows how you can repeat the execution of the script named “clear-logs.tcl” which starts
on 05/11/13 at 13:45 and repeats 13th day of every month:
Dell(conf)# script execute clear-logs.tcl start 13:45-05/11/13 repeat days 13
The following example shows how you can schedule the reloads every first month at 00:00
Dell(conf)# script execute reload.zsh start 00:00 03/01/14 repeat days 1
You can use the “f10do” utility to the above script “reload.zsh”as:
#! /usr/bin/zsh
f10do -r “write memory”
sleep 5
f10do -r “reload”
f10do “yes”
Assign scripts to execute on boot up.
script list execute list-name
{on-boot | network-up}
CONFIGURATION Assign the order and run levels to a list of boot scripts to
execute on boot up or after the switch is completely
initialized.
This example shows how you can execute a list of scripts before the configuration file is loaded in the Dell Net-
working OS:
Dell(conf)#script list execute boot-scripts on-boot
where boot-scripts file contains the following:
• seq1 script simple_script.py
• seq2 script noshut.pl “te 0/0 te 0/1”
• seq3 script creat_vlt.zsh “te 0/14”
Supervise the scheduled scripts.
Command Syntax Command Mode Task