Help Center/ Migration Center/ User Guide/ New Edition/ Application Management/ Manually Adding Custom Resources to an Application
Updated on 2025-02-05 GMT+08:00

Manually Adding Custom Resources to an Application

You can add custom servers and Oracle databases to an application. To gather details about these resources, you need to install the MgC Agent (formerly Edge) in the source environment.

Preparations

Add Servers to the Application

  1. Sign in to the MgC console. In the navigation pane, under Project, choose a project from the drop-down list.
  2. In the navigation pane, choose Discover > Applications.
  3. In the application list, click an application name.
  4. On the Servers tab, click Add above the list.
  5. In the displayed dialog box, configure parameters listed in Table 1 and click Confirm. The system automatically checks the credential status and starts collecting resource details.

    Table 1 Parameters for adding a server

    Parameter

    Description

    Name

    Enter a server name.

    MgC Agent

    Select the MgC Agent installed in the source environment.

    Type

    Select the OS type of the source server.

    Access IP Address

    Enter the IP address of the source server.

    If the source server is in the same VPC as the MgC Agent, you can enter the private IP address of the server. Otherwise, you have to enter its public IP address.

    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.

  6. After the server is added, view it in the list.

Adding Databases to the Application

  1. Sign in to the MgC console. In the navigation pane, under Project, choose a project from the drop-down list.
  2. In the navigation pane, choose Discover > Applications.
  3. In the application list, click an application name.
  4. On the Databases tab, click Add above the list.
  5. Set the parameters listed in Table 2.

    Table 2 Parameters for adding a database

    Parameter

    Description

    Name

    Enter a name.

    MgC Agent

    Select the MgC Agent you connected to MgC.

    Type

    Select Oracle.

    IP Address

    Enter the IP address for connecting to the source Oracle database server.

    Port

    Enter the listening port of the source Oracle database. The default value is 1521.

    Service Name/SID

    Enter the service name of the source database. The default value is ORCL.

    You can log in to the Oracle database server and run the following command to view the service name of the database you want to add to MgC:
    SELECT instance_name FROM v$instance;

    Credential

    Select the database credential. If the credential is not displayed in the drop-down list, go to the MgC Agent console, add the credential, and synchronize it to MgC. When you add the credential to the MgC Agent, set Resource Type to Database and Authentication to Username/Password.

  6. Click Confirm. The system automatically starts collecting details about the database. When Collected is displayed in the Deep Collection column, the collection is complete. Click the database name. On the displayed database details page, you can view the collected information.