DiskSavvy Logo
Flexense Data Management Software

Using Command Line Utility

In addition to the GUI application, DiskSavvy Pro includes a command line utility allowing one to execute storage analysis commands from an OS shell window. The DiskSavvy command line utility provides power users and system administrators with the ability to integrate storage analysis capabilities into batch files and shell scripts. The DiskSavvy command line utility is located in <ProductDir>/bin directory.

Command Line Syntax:

disksavvy -execute <Profile Name>

Executes the specified disk space analysis command.

disksavvy -analyze -dir <Directory 1> [ ... Directory X ]

Analyzes disk space usage in the specified directories, disks or network shares.

disksavvy -analyze -server <HostName1;HostName2;HostNameX>

This command analyzes disk space usage in all network shares in the specified servers and/or NAS storage devices. Multiple host names or IP addresses should be separated by the semicolon (;) character.

disksavvy -analyze -network

This command analyzes disk space usage in all network shares in all servers and/or NAS storage devices available on the network.

Parameters:

-dir <Directory>

This parameter specifies an input directory, disk or a network share for the storage analysis command. In order to ensure proper parsing of command line arguments, directories containing space characters should be double quoted.

-server <HostName1;HostName2;HostNameX>

This parameter specifies one or more host names or IP addresses of servers and/or NAS storage devices to analyze. Multiple host names or IP addresses should be separated by the semicolon (;) character.

Options:

-save_html_report [ File Name ]

Saves an HTML disk space analysis report to the specified file.

-save_text_report [ File Name ]

Saves a text disk space analysis report to the specified file.

-save_csv_report [ File Name ]

Saves an Excel CSV disk space analysis report to the specified file.

-save_xml_report [ File Name ]

Saves an XML disk space analysis report to the specified file.

-save_pdf_report [ File Name ]

Saves a PDF disk space analysis report to the specified file.

-save_report [ File Name ]

This option saves a native DiskSavvy report to the specified file.

-save_to_database

This option saves a report to an SQL Database using the ODBC interface configured in the DiskSavvy GUI application options dialog.

-title <Report Title>

Sets a custom report title.

-label <Report Label>

Sets a custom report label.

-levels <Levels>

Sets the number of file system hierarchy levels to export (default is 3).

-files_per_dir <Files Per Directory>

Sets the number of files per directory to export (default is 20).

-compress

Instructs to export a GZ compressed report.

-perf <FULL | MEDIUM | LOW>

This parameter controls the speed of the storage analysis process.

FULL - Full-speed storage analysis
MEDIUM - Medium-speed storage analysis
LOW - Low-speed storage analysis

-v

Shows the product major version, minor version, revision and build date.

-help

Shows the command line usage information.