Download Migration Center discovery client CLI

To discover your assets, you need to download the Migration Center discovery client CLI to a Linux machine that has access to all your target assets. The Linux machine can be a physical server or a virtual machine (VM) instance.

For remote guest discovery of AWS, Azure, or machines running in your on-premises infrastructure that don't have SSH access, you need to download the guest collection script mcdc-linux-collect.sh on Linux machines and mcdc-windows-collect.ps1 on Windows machines.

However, for VMs running on VMware or for Linux machines that let you connect remotely from the machine hosting the mcdc CLI, you can either run the guest collection scripts remotely by using the mcdc CLI, or you can run an IP range scan. You don't need to download the guest collection script locally to each machine.

This document describes how to download the mcdc CLI to discover and collect your infrastructure data.

Before you begin

Download mcdc CLI

  • Download the latest version of the mcdc CLI and make it executable:

    curl -O "https://mcdc-release.storage.googleapis.com/$(curl -s https://mcdc-release.storage.googleapis.com/latest)/mcdc"
    chmod +x mcdc
    

View help information for mcdc CLI

  • To view help information for the mcdc CLI, use the --help flag:

    ./mcdc --help
    
  • To view help for a specific command, use the --help flag with the command. For example, to view help for the import command, run the following command:

    ./mcdc discover import --help
    

Download guest collection scripts

To download the guest collection scripts on the target machine, perform the steps in the following sections.

Download guest collection script on a Linux machine

On a Linux machine, to download mcdc-linux-collect.sh, follow these steps:

  1. Log in to the machine.

  2. Download the guest collection script to the machine and make it executable:

    curl -O "https://mcdc-release.storage.googleapis.com/$(curl -s https://mcdc-release.storage.googleapis.com/latest)/mcdc-linux-collect.sh"
    chmod +x mcdc-linux-collect.sh
    

Download guest collection script on a Windows machine

On a Windows machine, to download mcdc-windows-collect.ps1, follow these steps:

  1. Log in to your machine and open PowerShell.

  2. Download the guest collection script to the machine:

    $version = Invoke-WebRequest -UseBasicParsing https://mcdc-release.storage.googleapis.com/latest
    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("https://mcdc-release.storage.googleapis.com/"+$version+"/mcdc-windows-collect.ps1", (Get-Location).Path + "\mcdc-windows-collect.ps1")
    

What's next