Owner's Manual
Smart Scripting | 65
SQLite
The Dell Networking OS supports the SQLite database engine as it is self-contained,
server less, zero-configuration, and transactional. This database performs the
following tasks:
• Stores all the periodically collected data / statistics from the Dell Networking
OS.
• Stores Dell Networking OS Configuration files.
• Other script logs can be stored, updated, deleted, and transferred using this
database.
Dell Networking OS provides Perl, Python, and tclsh interface for SQLite. As a
result, all the database handling can be done from the user developed custom scripts
itself.
script execute script-name
watch [start {now | at date-time
| after time}] [stop {after time}
repeat {weekdays day | days
day | minutes minutes}]} [args
arguments] [username
username]
CONFIGURATION Monitor the supervised scripts definitely (with stop and
repeat keyword) or indefinitely (with just start keyword).
This example shows how you can monitor the script named “sample.tcl” which starts from now onwards:
Dell(conf)#script execute sample.tcl watch start now args “sample” username test
• All the supervised scripts will be re-started at the maximum of three times, if the script exits
(normally or abnormally) within 10 minutes from start.
• If the supervised scripts exits (normally or abnormally) more than three times within the time span
of 10 minutes, then the script will be moved to “Blocked” state and no further executions will be
scheduled till the network administrator clears / resets it using the “script clear” command.
Monitor or supervise the schedule script using watch.
script execute script-name
watch start {now | date-time |
time} [args arg-string]
[username username] [bg]
EXECUTION Monitor the supervised scripts using the watch keyword.
This example shows how you can monitor or supervise the script named “monitor_interface.tcl” which starts after
15 minutes from now:
Dell#script execmonitor_interface.tcl watch start 00:15 bg
when the script completes its execution, it is restarted as you monitor the script.
Command Syntax Command Mode Task