Use the reformat.util command to convert the output format of a command that has been written to a file. The reformat.util command reads data from the specified output file and reformats it by using the specified output format.
For example, you created a host and stored the output from the hdb.h.add command in serialized format in a file named hostFile:
cr_cli -cmd hdb.h.add -o serialized -u user-name -p password -name myhost -tID NM:roxhost > hostFile |
Use the util.reformat command to reformat the output to be the hdb.detail format.
cr_cli -cmd util.reformat -o hdb.detail -u user-name -p password -self file:hostFile |
The previous command results in the following output:
ID: 010010000204-1027365659275-00170-1199101891 Name: myhost Description: Virtual: false Hidden: false Type ID: 010010001024-0000000000000-00001-0000000004 Attributes: <Table is empty> Applications: <Table is empty> |