ファイルに書き込まれたコマンド出力書式を変更するには、reformat.util コマンドを使用します。reformat.util コマンドは、指定の出力ファイルからデータを読み取り、このデータに指定の出力書式を設定します。
たとえば、ホストを作成し、hdb.h.add コマンドの出力を hostFile ファイルに serialized 書式で保存したとします。
cr_cli -cmd hdb.h.add -o serialized -u user-name -p password -name myhost -tID NM:roxhost > hostFile |
この出力の書式を hdb.detail に変更する場合は、util.reformat コマンドを使用します。
cr_cli -cmd util.reformat -o hdb.detail -u user-name -p password -self file:hostFile |
コマンドの出力書式が、次のように変更されます。
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> |