[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-11。"],[],[],null,["# Run an offline assessment\n\nThis page describes the offline assessment that you can generate with the\ndiscovery client and the `mcdc` CLI.\n\nOverview\n--------\n\nThe discovery client and the `mcdc` CLI\nlet you run an offline assessment with the information that you collect\nin the discovery phase. The offline assessment creates reports that provide\nyou with a high-level fit assessment result for migration and potential\nblockers for different migration journeys. The offline assessment also\ndescribes any issues that must be resolved before the migration.\n\nIt provides an overall fit assessment using one of the following scores:\n\n- Excellent fit\n- Good fit, with some findings that might require attention\n- Needs minimal work before migrating\n- Needs moderate work before migrating\n- Needs major work before migrating\n- No fit\n- Insufficient data\n\nYou can generate reports in HTML, Microsoft Excel, CSV, and JSON format.\n\nBefore you begin\n----------------\n\n- To generate an offline assessment report, discover and collect data from your assets with the [discovery client](/migration-center/docs/add-servers) or the [`mcdc` CLI](/migration-center/docs/run-inventory-discovery).\n\nGenerate a report with the discovery client\n-------------------------------------------\n\nTo generate and download an offline report with the discovery client,\nfollow these steps:\n\n1. In the discovery client application, go to the **Reports** tab.\n2. Click **New report**.\n3. Enter a name for your report, then select the format that you want to export.\n4. To confirm, click **Create**.\n\nWhen your report is ready, click **Download**.\n\nGenerate a report with the `mcdc` CLI\n-------------------------------------\n\nThe `mcdc` CLI lets you output the offline assessment report\nas HTML, JSON, CSV, or XLSX file format. HTML and CSV reports are available\nas summary and detailed versions. \n\n### HTML\n\n### Summary\n\n1. In the directory where you downloaded `mcdc` CLI,\n run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc report --format html --file REPORT_NAME.html\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe report --format html --file REPORT_NAME.html\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n The tool outputs to the current directory an HTML file named\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.html.\n2. To view the report, open\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.html in a\n browser.\n\n This report includes a cost analysis section.\n\n Use this report to estimate the cost of running modernized workloads in\n Google Cloud. The report groups VMs by modernization strategy, and\n sums the cost by modernization strategy, and by overall cost. The cost\n analysis helps you decide what modernization strategy to purse,\n depending on how much you want to modernize your workloads, and\n how much effort you plan to invest.\n\n The calculation is based on the VMs configuration details, such as\n number of CPUs, memory, and storage, and excludes VMs that don't fit\n modernization targets.\n\n### Detailed\n\n1. In the directory where you downloaded `mcdc` CLI,\n run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc report --format html --full --file REPORT_NAME.html\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe report --format html --full --file REPORT_NAME.html\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n The tool outputs to the current directory an HTML file named\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003e REPORT_NAME\u003c/var\u003e.html.\n2. To view the report, open\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.html in a\n browser.\n\n The report contains a table listing all of the discovered VMs.\n It is possible to add further columns to the table.\n You can also apply a text filter to the table.\n\n You can open any VM in the table to see its attributes, target\n journeys, and app components. You can then open any of the app\n components from the VM to see their attributes and target journeys.\n\n The detailed HTML report can fail to open when reporting on a very\n large number of VMs--typically more than 10,000 VMs, but the exact\n number depends on your machine, on your browser, and on the content\n of the report. The XLSX report is a good alternative in such cases.\n\n### JSON\n\n1. In the directory where you downloaded `mcdc` CLI,\n run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc report --format json --file REPORT_NAME.json\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe report --format json --file REPORT_NAME.json\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n The tool outputs a JSON file named\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.json to\n the current directory.\n2. Open the file with a text editor.\n\n### CSV\n\n### Summary\n\n1. In the directory where you downloaded `mcdc` CLI,\n run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc report --format csv --file REPORT_NAME.csv\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe report --format csv --file REPORT_NAME.csv\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n The tool outputs a CSV file named\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.csv to the\n current directory.\n2. Import the CSV report into your data visualization utility.\n\n The report contains the fit score for each journey for each VM, but\n doesn't include results for individual rules.\n\n### Detailed\n\n1. In the directory where you downloaded `mcdc` CLI,\n run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc report --format csv --full --file REPORT_NAME.csv\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe report --format csv --full --file REPORT_NAME.csv\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n The tool outputs a CSV file named\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.csv to the\n current directory.\n2. Import the CSV report into your data visualization utility.\n\n The report contains the results for all rules for each VM and\n application component.\n\n### XLSX\n\n1. In the directory where you downloaded `mcdc` CLI,\n run the following command:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc report --format xlsx --file REPORT_NAME.xlsx\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe report --format xlsx --file REPORT_NAME.xlsx\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n The tool outputs a spreadsheet named\n \u003cvar scope=\"REPORT_NAME\" translate=\"no\"\u003eREPORT_NAME\u003c/var\u003e.xlsx to the\n current directory.\n2. Open the spreadsheet.\n\n The spreadsheet contains a number of worksheets displaying the following:\n - Information about all discovered VMs\n - Information about all discovered application components\n - Fit score for all journeys for each VM and app component\n - A worksheet per journey containing the results for all rules for that journey\n\nThe `mcdc` CLI stores assessment data and log information\nin the `~/.mcdc` directory on the host machine.\nFor information on how to remove this data, see\n[Delete collected data from host machine](/migration-center/docs/manage-collector-cli#delete_collected_data_from_host_machine).\n\n### Specify the target platform\n\nWhen generating a report, use the `--target-platform` flag to indicate the\nspecific platform to which you want to migrate your VMs.\nThe available options are: `gcp`, `gdc`, `containers`, and `all`.\nEach option lets you specify a different set of journeys to evaluate:\n\n- `gcp` assesses lift and shift journeys to Compute Engine, Google Cloud VMware Engine, and containerization journeys to Google Kubernetes Engine, GKE Autopilot, and Cloud Run.\n- `gdc` assesses lift and shift journeys to Google Distributed Cloud and containerization journeys to GKE and Cloud Run.\n- `containers` assesses modernization to Google Distributed Cloud, Google Kubernetes Engine, GKE Autopilot, and Cloud Run.\n- `all` assesses all possible journeys.\n\nFor example, to limit the report to the `gcp` migration journey, run\nthe following command: \n\n### Linux\n\n\u003cbr /\u003e\n\n```\n./mcdc report --format FORMAT --target-platform gcp --file REPORT_NAME\n```\n\n\u003cbr /\u003e\n\n### Windows\n\n\u003cbr /\u003e\n\n```\nmcdc.exe report --format FORMAT --target-platform gcp --file REPORT_NAME\n```\n\n\u003cbr /\u003e\n\nIf you use the `mcdc` CLI in a\n[Google Distributed Cloud environment](/distributed-cloud/hosted/docs/latest/gdch/overview),\nthen specify the `gdc` value for the target platform: \n\n### Linux\n\n\u003cbr /\u003e\n\n```\n./mcdc report --format FORMAT --target-platform gdc --file REPORT_NAME\n```\n\n\u003cbr /\u003e\n\n### Windows\n\n\u003cbr /\u003e\n\n```\nmcdc.exe report --format FORMAT --target-platform gdc --file REPORT_NAME\n```\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- Learn how to generate a [total cost of ownership (TCO) report](/migration-center/docs/generate-tco-report)."]]