Manual Pages

Table of Contents


source - Reads and executes a file of CLI commands.


source [ -v ] filename


The source command reads and executes a file of CLI commands, line by line. Errors do not cause termination; upon error the next line in the file is read and executed. The filename argument must contain the fully qualified pathname to the file because there is no concept of a current working directory in ONTAP.


Enables verbose mode.


Since execution does not halt on error, do not use the source command to develop scripts in which any line of the script depends on successful execution of the previous line.

Table of Contents