I tried following as told but no output :smileysad:
# grep -i vc.uuid *.vmx
# pwd
/vmfs/volumes/7.3IBM-FCP-DV/fcp-dv-vm4-suse
# ls
fcp-dv-vm4-suse_1-flat.vmdk fcp-dv-vm4-suse-flat.vmdk fcp-dv-vm4-suse.vmsd vmware-10.log vmware-13.log vmware.log
fcp-dv-vm4-suse_1.vmdk fcp-dv-vm4-suse.nvram fcp-dv-vm4-suse.vmx vmware-11.log vmware-14.log
fcp-dv-vm4-suse-f4ad2274.vswp fcp-dv-vm4-suse.vmdk fcp-dv-vm4-suse.vmxf vmware-12.log vmware-15.log
I am more interested to find the UUID of this VM.
As you can see all UUID of datastore can be availble directly from the pointed ID. Similarly i need the command to get UUID of all VMs in a perticular Datastore.
It is require for my script.
# ls -l
total 5132
drwxr-xr-x 1 root root 4096 Jul 7 04:14 3e6d7f65-2077c20a
drwxrwxrwt 1 root root 1400 Feb 10 05:33 476adf87-57213144-faa9-00145efda4fa
drwxr-xr-t 1 root root 2660 Jul 6 22:03 49c17932-0a6064b1-5fbf-00145efda4fc
drwxr-xr-t 1 root root 1260 Jun 2 20:22 4a166013-ebed2665-9469-00145efda4fc
drwxr-xr-t 1 root root 1260 Jul 6 22:17 4a2bd77f-308cc246-03c0-00145efda4fc
drwxr-xr-t 1 root root 1260 Jul 14 09:51 4a2ca556-3affa39b-e79a-00145efda4fc
drwxr-xr-x 1 root root 4096 Jul 12 22:25 5121dee3-b16eb4d2
drwxr-xr-x 1 root root 4096 Jul 7 04:15 6af39d1a-a9d5014f
lrwxr-xr-x 1 root root 17 Aug 4 00:08 732-2_NFS_DV_esx1 -> 5121dee3-b16eb4d2
lrwxr-xr-x 1 root root 35 Aug 4 00:08 7.3IBM-FCP-DV -> 49c17932-0a6064b1-5fbf-00145efda4fc
lrwxr-xr-x 1 root root 35 Aug 4 00:08 7.3IBM-FCP-DV-temp -> 4a2bd77f-308cc246-03c0-00145efda4fc
lrwxr-xr-x 1 root root 35 Aug 4 00:08 7.3IBM-FCP-DV-temp1 -> 4a166013-ebed2665-9469-00145efda4fc
lrwxr-xr-x 1 root root 35 Aug 4 00:08 7.3IBM-FCP-DV-temp3 -> 4a2ca556-3affa39b-e79a-00145efda4fc
lrwxr-xr-x 1 root root 35 Aug 4 00:08 local -> 476adf87-57213144-faa9-00145efda4fa
lrwxr-xr-x 1 root root 17 Aug 4 00:08 nfs_ds1 -> 6af39d1a-a9d5014f
lrwxr-xr-x 1 root root 17 Aug 4 00:08 nfs_ds2 -> 3e6d7f65-2077c20a