N1 Grid Service Provisioning System 5.0 Command-Line Interface Reference Manual

Redirecting Output to a File

To redirect command output to a file, use the -of argument. The argument to the -of argument is a full path to a file.

For example, this command writes the output to a file called hostFile.


cr_cli -cmd hdb.h.add -of hostFile -u user-name
-p password -name myhost -tID NM:roxhost

After the command is run, hostFile contains output in detail format, which is the default output format for the hdb.h.add command.

Note that the -of argument must immediately follow the command specified by -cmd.