liveBook · Manning

Data-collection script

As explained in Google Anthos in Action

A data-collection script is a script that gathers operating-system, process, service, and package information from a workload environment.

A data-collection script gathers operating-system configuration, running services and processes, installed packages, and related guest data from a VM. It produces one archive for import into mfit, which uses the results to assess container-migration suitability. section 15.4.1

Use the script as one phase of the fit-assessment workflow:

  • Run the Linux Bash script locally or through SSH; run the Windows PowerShell script locally or through the vSphere API. section 15.4.1
  • Import the resulting archive into mfit, then continue with assessment and report generation. section 15.4.1

Collect and import Linux guest data

Download and make the collector executable, run `sudo ./mfit-linux-collect.sh`, then import the generated archive with `./mfit discover import m4a-collect-<MACHINE NAME>-<TIMESTAMP>.tar/zip`.

Table 15.1 Fit scores produced by the fit assessment tool (view table figure)

Fit score

Description

Score 0

Excellent fit

Score 1

Good fit with some findings that might require attention

Score 2

Requires minimal effort before migrating

Score 3

Requires moderate effort before migrating

Score 4

Requires major effort before migrating

Score 5

No fit

Score 6

Insufficient data collected to assess the VM

Fit scores translate collected VM data into migration-readiness categories, from excellent fit to no fit or insufficient data. section 15.4.1

How Google Anthos in Action covers it

How deep it goes
Details collected data, archive production, execution paths, and import, but not the script’s internal collection logic.
Examples
Uses Linux Bash and Windows PowerShell collectors that create archives imported into mfit.
What it assumes
Assumes a target Linux or Windows VM and access through local execution, SSH, or the vSphere API.
What you can do after
Operate the collector and import its archive so mfit can assess and report VM migration fit.
How it connects
Connects guest-level discovery with mfit, SSH, the vSphere API, assessment, and reporting.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.