echo "###############################################################" echo "# Note: This tool only locates same UUIDs from datastores #" echo "# visible to this host. If you use local Storage it #" echo "# it might not find all duplicate IDs! #" echo "###############################################################" echo -ne "Searching for duplicate UUIDs inside your Virtual Environment..." uuids=$(find /vmfs/volumes/ -name "*.vmx" -exec grep "uuid.bios" {} \; | cut -d= -f2 | uniq -d) echo "done!"; if [ -n "$uuids" ]; then echo "Locating duplicate UUID-Entrys:" IFS=$'\n' for i in $uuids; do find /vmfs/volumes/ -name "*.vmx" -exec grep -H "$i" {} \; done unset IFS fi