To pass the data resulting from a command to an external file, you can use the -of option. Use -of to provide a fully-specified file name into which the N1 Service Provisioning System software can put the data from the command you execute.
For example, to pass the data from creating a host named myhost to a file called hostFile, type:
cr_cli -cmd hdb.h.add -of hostFile -u [user] -p [password] -name myhost -tID NM:roxhost |
The file hostFile will contain the host information in detail format (the default formatter for the hdb.h.add command).
The -of option must occur right after the command name, before any other arguments.