Help Center/ Migration Center/ Getting Started/ Discovering Servers/ Discovering Servers over an Intranet
Updated on 2025-01-06 GMT+08:00

Discovering Servers over an Intranet

MgC enables you to discover resources running in on-premises IDCs and vCenters. Before getting started, you need to install the MgC Agent in the source intranet.

Precautions

  • Only VMs in VMware vSphere 5.0 to 7.0 can be discovered.
  • When the system scans for VMware VMs or scans for servers on specific network ranges, it uses the servers' private IP addresses and the ID of the used MgC Agent to identify discovered servers. If a server's private IP address changes after a collection is complete, the server will be identified as a new one during the next collection, and the total number of discovered servers will increase. To avoid this, you are advised not to change private IP addresses of source servers before the migration is complete.

Prerequisites

Creating an IDC Discovery Task

  1. Sign in to the MgC console. In the navigation pane, under Project, select an application migration project from the drop-down list.
  2. In the navigation pane, choose Research > Source Resources.
  3. Click the Intranet Discovery tab and select the environment where your source servers run.

    Figure 1 Selecting the source environment

  4. To configure an IDC discovery task, set the parameters by referring to Table 1.

    Table 1 Parameters for configuring an IDC discovery task

    Parameter

    Description

    Task Name

    Enter a task name.

    Task Description

    Describe the task.

    MgC Agent

    Select the MgC Agent installed in the source intranet environment.

    Protocol

    Only TCP is available.

    Network Range

    Enter an IP address range which must fall within:

    • 10.0.0.0 – 10.255.255.255
    • 172.16.0.0 – 172.31.255.255
    • 192.168.0.0 - 192.168.255.255

    Linux

    Enter the port for scanning for Linux servers. If you do not need to scan for Linux servers, set the port number to 0.

    Windows

    Enter the port for scanning Windows servers. If you do not need to scan for Windows servers, set the port number to 0.

    Application

    Select the application that you want to group the discovered servers into. If no applications are available, perform the following steps to create one:

    1. Click Create Application, enter an application name and description, select a business scenario and running environment, and select the region where the application resources will be deployed on the target cloud.
    2. Click OK.

  5. Click Confirm. After the IDC discovery task is created, MgC starts discovering source resources.
  6. Wait until the discovery task succeeds, return to the Source Resources page and perform a deep collection for the discovered servers.

    1. On the Source Resources page, in the server list, for each server whose details need to be collected, click Configure in the MgC Agent column.
    2. Configure the parameters listed in Table 2.
      Table 2 Parameters for configuring a deep collection

      Parameter

      Configuration

      Type

      Set this parameter based on the source server OS type.

      MgC Agent

      Select the MgC Agent you installed in the source environment.

      Access IP Address

      Select the IP address for accessing the source server. It can be a public or private IP address. After the pre-migration check is passed, the IP address you select here will be used for migration.

      Port

      Enter the port on the source server that allows access from the MgC Agent.

      • By default, port 5985 on Windows source servers must be opened to the MgC Agent. The port cannot be changed.
      • By default, port 22 on Linux source servers must be opened to the MgC Agent. You can specify a different port if needed.

      Credential

      Select the server credential. If the credential is not displayed in the list, go to the MgC Agent console, add the server credential, and synchronize it to MgC.

    3. Click Confirm. Then the system automatically starts executing a deep collection. When Collected shows up in the Deep Collection column, the collection is complete. You can proceed to create a migration solution or create a migration plan.

Creating a VMware Discovery Task

  1. Sign in to the MgC console. In the navigation pane, under Project, select an application migration project from the drop-down list.
  2. In the navigation pane, choose Research > Source Resources.
  3. Click the Intranet Discovery tab and select the environment where your source servers run.

    Figure 2 Selecting the source environment

  4. To configure a VMware discovery task, set the parameters by referring to Table 3.

    Table 3 Parameters for configuring a VMware discovery task

    Parameter

    Description

    Task Name

    Enter a task name.

    Task Description

    Describe the task.

    MgC Agent

    Select the MgC Agent installed in the source intranet environment.

    IP Address

    Enter the IP address of the vCenter Server for discovering the managed VMs.

    Port

    Enter the port for accessing the vCenter Server.

    Credential

    Select the credential for accessing vCenter. If the drop-down list is empty, go to the MgC Agent console and add the credential. Set the resource type to Private cloud and enter the username and password for logging in to the vCenter Server.

    Application

    Select the application that you want to group the discovered servers into. If no applications are available, perform the following steps to create one:

    1. Click Create Application, enter an application name and description, select a business scenario and running environment, and select the region where the application resources will be deployed on the target cloud.
    2. Click OK.

  5. Click Confirm. After the VMware discovery task is created, MgC starts discovering source resources.
  6. Wait until the discovery task succeeds, return to the Source Resources page and perform a deep collection for the discovered servers.

    1. On the Source Resources page, in the server list, for each server whose details need to be collected, click Configure in the MgC Agent column.
    2. Configure the parameters listed in Table 4.
      Table 4 Parameters for configuring a deep collection

      Parameter

      Configuration

      Type

      Set this parameter based on the source server OS type.

      MgC Agent

      Select the MgC Agent you installed in the source environment.

      Access IP Address

      Select the IP address for accessing the source server. It can be a public or private IP address. After the pre-migration check is passed, the IP address you select here will be used for migration.

      Port

      Enter the port on the source server that allows access from the MgC Agent.

      • By default, port 5985 on Windows source servers must be opened to the MgC Agent. The port cannot be changed.
      • By default, port 22 on Linux source servers must be opened to the MgC Agent. You can specify a different port if needed.

      Credential

      Select the server credential. If the credential is not displayed in the list, go to the MgC Agent console, add the server credential, and synchronize it to MgC.

    3. Click Confirm. Then the system automatically starts executing a deep collection. When Collected shows up in the Deep Collection column, the collection is complete. You can proceed to create a migration solution or create a migration plan.