Per impostazione predefinita, l'interfaccia a riga di comando mcdc esegue un controllo della versione una volta ogni 24 ore. Quando esegui l'interfaccia a riga di comando mcdc e c'è una nuova versione disponibile, viene visualizzato un messaggio che indica la versione dell'interfaccia a riga di comando mcdc a cui puoi eseguire l'upgrade. Questo controllo della versione richiede una connessione a internet.
Se necessario, configura un proxy per accedere a internet:
La CLI mcdc invia informazioni sull'utilizzo pseudoanonimizzate
che possono aiutare Google a dare la priorità ai miglioramenti e alle funzionalità di scoperta e valutazione. Queste statistiche sull'utilizzo vengono gestite in conformità con l'Google Cloud Informativa sulla privacy. Questa
sezione descrive come puoi modificare l'impostazione relativa all'invio a Google di statistiche sull'utilizzo in qualsiasi momento dopo aver installato l'interfaccia a riga di comando mcdc.
Per disattivare l'invio delle statistiche sull'utilizzo:
Sostituisci DATABASE_NAME con il percorso del database
in cui sono archiviati i dati raccolti. In genere si trova nella stessa directory in cui hai installato l'interfaccia a riga di comando mcdc.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],null,["# Manage Migration Center discovery client CLI\n\nThis document describes how you can manage the Migration Center discovery client CLI.\n\nBefore you begin\n----------------\n\n- Complete the steps to [download the `mcdc` CLI](/migration-center/docs/download-collector-cli).\n\nAutomatic version check\n-----------------------\n\nBy default, the `mcdc` CLI performs a version check once\nevery 24 hours. When you run the `mcdc` CLI and\na new version is available, a message is displayed which indicates that the\nversion of `mcdc` CLI that is available for you to upgrade\nto. This version check requires an internet connection.\n\n- When needed, configure a proxy to access the internet:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROXY\u003c/var\u003e with the IP address of the HTTP or HTTPS proxy.\n For example, `127.0.0.1:7777` or `socks5://127.0.0.1:1234`.\n- Deactivate the automatic version check by setting the\n `disable_version_checking` option:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set disable_version_checking true\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set disable_version_checking true\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nManage configurations\n---------------------\n\nYou can manage the configuration properties by using the `config`\ncommand.\n\n- Print all configuration properties and their values:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config list\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config list\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- Print the value of a configuration property:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config get PROPERTY_NAME\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config get PROPERTY_NAME\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROPERTY_NAME\u003c/var\u003e with the name of the property\n for which you want to print the value.\n- Set a configuration property:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set proxy PROXY\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- Reset a configuration property to its default value:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config unset proxy\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config unset proxy\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nManage usage statistics\n-----------------------\n\nThe `mcdc` CLI sends pseudoanonymized usage information\nthat can help Google to prioritize discovery and assessment features and\nimprovements. These usage statistics are handled in accordance with\n[Google Cloud Privacy Notice](/terms/cloud-privacy-notice). This\nsection describes how you can change whether usage statistics are sent to\nGoogle at any time after you've installed the `mcdc` CLI.\n\n- Disable sending usage statistics:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set disable_usage_reporting true\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set disable_usage_reporting true\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n- Enable sending usage statistics:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc config set disable_usage_reporting false\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe config set disable_usage_reporting false\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\nDelete collected data from host machine\n---------------------------------------\n\n- After you've collected data and exported it to Migration Center or\n completed an offline assessment, you can delete the data from the local\n database:\n\n\n ### Linux\n\n \u003cbr /\u003e\n\n ```\n ./mcdc discover purge-db -db DATABASE_NAME\n ```\n\n \u003cbr /\u003e\n\n ### Windows\n\n \u003cbr /\u003e\n\n ```\n mcdc.exe discover purge-db -db DATABASE_NAME\n ```\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n Replace \u003cvar translate=\"no\"\u003eDATABASE_NAME\u003c/var\u003e with the path to the database\n where the collected data is stored. Typically, it is in the same directory\n where you installed the `mcdc` CLI.\n\nWhat's next\n-----------\n\n- Learn how to [run an offline assessment](/migration-center/docs/run-offline-assessment)."]]