Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Untuk menemukan aset, Anda harus mendownload Migration Center discovery client CLI ke
komputer yang memiliki akses ke semua aset target Anda. Mesin dapat berupa server fisik atau instance virtual machine (VM).
File yang dapat dieksekusi mcdc CLI tersedia dalam dua versi, yaitu Linux dan Windows, bergantung pada OS komputer tempat Anda ingin menginstalnya.
mcdc CLI melakukan penemuan tamu dengan menjalankan
skrip pengumpulan dari jarak jauh di mesin target Anda dari mesin tempat
skrip tersebut diinstal. Alat ini juga dapat menemukan dan mengumpulkan data dari beberapa mesin
menggunakan pemindaian rentang IP.
Anda dapat menjalankan penemuan tamu di VM yang berjalan di VMware, dan di komputer
dengan koneksi ke komputer yang menghosting CLI mcdc.
Atau, untuk melakukan penemuan di VM yang dihosting di AWS dan Azure,
atau di mesin lokal tanpa akses SSH, Anda harus mendownload
skrip pengumpulan tamu dan menjalankannya secara lokal.
Gunakan mcdc-linux-collect.sh di komputer Linux dan mcdc-windows-collect.ps1 di komputer Windows.
Dokumen ini menjelaskan cara mendownload CLI mcdc
dan skrip pengumpulan untuk menemukan dan mengumpulkan data infrastruktur Anda.
Untuk mendownload mcdc CLI versi terbaru di
komputer Windows dengan Command Prompt dan curl:
for /f usebackq %V in (`curl -s https://mcdc-release.storage.googleapis.com/latest`) do curl -O https://mcdc-release.storage.googleapis.com/%V/windows/mcdc.exe
Untuk mendownload mcdc CLI versi terbaru
dengan link langsung:
Untuk melihat bantuan terkait perintah tertentu, gunakan flag --help dengan perintah tersebut.
Misalnya, untuk melihat bantuan terkait perintah import, jalankan perintah berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-03 UTC."],[],[],null,["# Download Migration Center discovery client CLI\n\nTo discover your assets, you need to download the Migration Center discovery client CLI to a\nmachine that has access to all your target assets. The machine can\nbe a physical server or a virtual machine (VM) instance.\nThe `mcdc` CLI executable is available in two versions,\nLinux and Windows,\ndepending on the OS of the machine where you want to install it.\n\nThe `mcdc` CLI performs the guest discovery by running\ncollection scripts remotely on your target machines from the machine where\nit is installed. It can also find and collect data from multiple machines\nusing the IP range scan.\nYou can run a guest discovery on VMs running on VMware, and on machines\nwith a connection to the machine hosting the `mcdc` CLI.\n\nAlternatively, to perform a discovery on VMs hosted on AWS and Azure,\nor on your on-premises machines without SSH access, you need to download\nthe guest collection script and run it locally.\nUse `mcdc-linux-collect.sh` on Linux machines and `mcdc-windows-collect.ps1`\non Windows machines.\n| **Note:** In environments where you have hundreds or thousands of VMs, you might already have tools to automate the process of downloading and running the guest collection script on each VM.\n\nThis document describes how to download the `mcdc` CLI\nand the collection scripts to discover and collect your infrastructure data.\n\nBefore you begin\n----------------\n\n- [Review the requirements for downloading the `mcdc` CLI](/migration-center/docs/review-collector-cli-requirements)\n\nDownload `mcdc` CLI\n-------------------\n\nDepending on the OS of the machine, download the Linux or Windows executable\nof the `mcdc` CLI. \n\n### Linux\n\n- Download the latest version of the `mcdc` CLI on a Linux machine and make it executable:\n\n curl -O \"https://mcdc-release.storage.googleapis.com/$(curl -s https://mcdc-release.storage.googleapis.com/latest)/mcdc\"\n chmod +x mcdc\n\n### Windows\n\n- To download the latest version of the `mcdc` CLI on a Windows machine with Powershell and `Invoke-WebRequest`:\n\n $ProgressPreference = 'SilentlyContinue'; $version = Invoke-RestMethod -Uri 'https://mcdc-release.storage.googleapis.com/latest'; Invoke-WebRequest -Uri \"https://storage.googleapis.com/mcdc-release/$($version.Trim())/windows/mcdc.exe\" -OutFile mcdc.exe\n\n- To download the latest version of the `mcdc` CLI on a Windows machine with Command Prompt and `curl`:\n\n for /f usebackq %V in (`curl -s https://mcdc-release.storage.googleapis.com/latest`) do curl -O https://mcdc-release.storage.googleapis.com/%V/windows/mcdc.exe\n\n- To download the latest version of the `mcdc` CLI with a direct link:\n\n https://mcdc-release.storage.googleapis.com/current/windows/mcdc.exe\n\nView help information for `mcdc` CLI\n------------------------------------\n\n- To view help information for the `mcdc` CLI, use the\n `--help` flag:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc --help\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe --help\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- To view help for a specific command, use the `--help` flag with the command.\n For example, to view help for the `import` command, run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc discover import --help\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe discover import --help\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nDownload guest collection scripts\n---------------------------------\n\nTo download the guest collection scripts on the target machine, perform the\nsteps in the following sections.\n\n### Download guest collection script on a Linux machine\n\nOn a Linux machine, to download `mcdc-linux-collect.sh`, follow these steps:\n\n1. Log in to the machine.\n\n | **Note:** To generate optimal assessment results, it is recommended that for running a guest discovery, you log in with a user that has administrator rights.\n2. Download the guest collection script to the machine and make it executable:\n\n curl -O \"https://mcdc-release.storage.googleapis.com/$(curl -s https://mcdc-release.storage.googleapis.com/latest)/mcdc-linux-collect.sh\"\n chmod +x mcdc-linux-collect.sh\n\n### Download guest collection script on a Windows machine\n\nOn a Windows machine, to download `mcdc-windows-collect.ps1`, follow these steps:\n\n1. Log in to your machine and open PowerShell.\n\n | **Note:** To generate optimal assessment results, it is recommended that for running a guest discovery, you log in with a user that has administrator rights.\n2. Download the guest collection script to the machine:\n\n $version = Invoke-WebRequest -UseBasicParsing https://mcdc-release.storage.googleapis.com/latest\n $WebClient = New-Object System.Net.WebClient\n $WebClient.DownloadFile(\"https://mcdc-release.storage.googleapis.com/\"+$version+\"/mcdc-windows-collect.ps1\", (Get-Location).Path + \"\\mcdc-windows-collect.ps1\")\n\nWhat's next\n-----------\n\n- Learn how to discover assets using the following methods:\n\n - [Inventory discovery](/migration-center/docs/run-inventory-discovery)\n - [Guest discovery](/migration-center/docs/run-guest-discovery)\n - [IP range scan](/migration-center/docs/run-ip-range-scan)"]]