VMware Cloud Community
zemotard
Hot Shot
Hot Shot

How to redirect snapshot result in a text file ?

Hi, could you tell me how to redirect snapshot result in a text file ?

Is it possible to use the date in the result name file ?

for exemple

vmware-cmd myvmxfile createsnapshot backup quiesce >>Result_snap_myvmwfile_date

Regards

Best Regards If this information is useful for you, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
2 Replies
zemotard
Hot Shot
Hot Shot

vmware-cmd /vmfs/volumes/TEST/WIn_2003_test_vcb/WIn_2003_test_vcb.vmx createsnapshot test >> res`date +%Y%m%d`.txt

Best Regards If this information is useful for you, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
bertdb
Virtuoso
Virtuoso

sometimes it's handier to use $( ) rather than ` ` to execute a command and use its output as a string in a command or filename.

Reply
0 Kudos