20 | Smart Scriptingw w w . d e l l . c o m | s u p p o r t . d e l l . c o m Creating PERL, Python and UNIX ScriptsWhen you install the Smart Scripting package, sample PERL and Python scripts areinstalled in the /usr/pkg/scripts/sample_scripts directory. You can also create yourown customized scripts and store them anywhere on the switch, such as in a /f10/flash_ scripts directory.In addition, you can use the PERL, Python, and UNIX APIs to create scripts thatinvoke function calls directly in the FTOS CLI. These APIs provide a shortcut whenwriting scripts. Refer to the following sections for more information:• Using the PERL API• Using the Python API• Using UNIX Shell ScriptingFor instructions on how to run a PERL, Python, or UNIX script from the FTOS CLI,see Running a Script from the FTOS CLI.For information on how to run a PERL, Python, or UNIX script directly from a UNIXshell, see Running a Script from the UNIX Shell.Creating a User Name and Password for SmartScriptingBefore you run a script from the FTOS CLI, you may want to configure an additionaluser name and password to be used only to run scripts on a switch. The user name andpassword are used to log in to a UNIX shell and apply the read-write privilegesassigned to the user name when a script is run with the script command from theFTOS CLI.The user name is an optional entry in the script command (see Running a Script fromthe FTOS CLI). To satisfy the requirements for a UNIX BSD login, the usernamemust be less than 16 characters. A username used to run scripts cannot contain specialcharacters.Command Syntax Command Mode Taskusername name password password CONFIGURATION Create an additional user name and passwordthat are used to log in to a shell and applyread-write privileges when a script is run.