trying to get output of a vmware command passed to another vmware command
I kickstarted an esxi server, enabled ssh and connected to it. using the command, esxcfg-mpath -l to list all the drives, I need to capture the first drive listed. So I have this command:
Code:
esxcfg-mpath -l | grep 'Device:' | head -1 | awk '{print $2}' Code:
vmfkstools -r /vmfs/devices/disks/that_output_from_awk /vmfs/volumes/datastore1/vm1/disk.vmdk |
Quote:
Insert that variable in the filepath in the second command. |
All times are GMT -5. The time now is 05:13 AM. |