Administrator Guide

68 | Smart Scripting
www.dell.com | support.dell.com
Viewing Script Information
To view information on currently stored, scheduled, and running SmartScripts, use
the following
show commands.
Running a Script from the UNIX Shell
You can run any PERL, Python, and UNIX script stored on a switch from either the
Dell Networking OS CLI (refer to Scheduling Time / Event-based Scripts) or directly
from a NetBSD shell on the switch.
When you run a script from a UNIX shell, first access the shell by using the
start
shell command. You are prompted to enter a user name and password configured
with the
username command (refer to Creating a User Name and Password for
Smart Scripting).
Figure 5-1 shows examples of how to execute a PERL, Python, and UNIX shell script
directly from a NetBSD shell on Dell Networking OS.
Command Syntax Command Mode Task
show script file [detail] EXEC Privilege Display the list of stored files in the script path.
Enter detail to show the detail output of the
file.
show script process [detail] EXEC Privilege Display list of scripts that are scheduled or
running. Enter detail to display the detailed
status of the scripts.
show script watch [detail] EXEC Privilege Display list of supervised scripts that are
scheduled or running. Enter detail to display
the detailed status of the supervised scripts.