Version 2021

Script output

When a script completes execution, its output appears in the following places:

  • Messages detailing the success or failure of each operation are sent to the Messages tab in the script window. The time it takes to execute the script is also shown in the Messages tab.
  • The output of any LIST commands is shown in the Results tab of the Script window.
  • If logging is enabled, script messages, results, and errors are written to the log files. For more information about Command Manager logging, see Using log files.

The data in the Results tab can be viewed in four different formats. These formats each have their uses:

  • Text is a plain text printout of the results. In this format, results can easily be copied to the clipboard for use elsewhere.
  • Grid is a spreadsheet-like view of the results. This is how the data appears when it is exported to a CSV (comma-separated values) file. For detailed instructions on exporting results to a CSV file, see Exporting the results of a script.
  • File causes the results to be saved in an external text file, specified when the script is executed. The results display to the results tab as though the selected format were Text. For detailed instructions on exporting results to a text file, see Exporting the results of a script.
  • List is a bulleted list of each item in the results. This format is the easiest to read, and is the default format.

You can change the format of the Results tab by selecting the Results option on the Connection menu, or by right-clicking in the Results tab and selecting the Results option from the menu. For detailed instructions on changing the formatting of the results, see Viewing the results of a script.

Related Topics

Executing a script

Viewing the results of a script

Exporting the results of a script

Using log files

Script window