Advanced
Тема интерфейса

How Do I Restore the Connection Between the Agent and SMS?

Symptom

The server migration was in the Disconnected status, so most operations could not be performed.

Possible Causes

  • The Agent on the source server is not running.
  • The Agent is disconnected from SMS. This can happen if no operations are performed on the Agent for a long time (30 days by default, but this can be changed using the heartmonitorday parameter in the config/g-property.cfg file).
  • The network connection between the source server and the Agent is abnormal.
  • The SMS-Agent-Py3 process exits. This can happen if you have been logged out of or have exited from the source server automatically.

Linux

  1. Use PuTTY or another SSH client to log in to the source server.
  2. Run ps -ef | grep -v grep | grep linuxmain to check whether the Agent is running properly.

    • If the linuxmain process is not running, restart the Agent.
    • If the linuxmain process is running, go to 3.

  3. Run ./agent-cli.sh in the SMS-Agent directory to go to agent-cli, and run status to check the Agent connection status.

    • If the status is True, go to 5.
    • If the status is False, the Agent has proactively disconnected from SMS. In this case, go to 4.

  4. Enter connect to reconnect the source server to SMS.

    If in the command output, the value of Connected between sms agent and sms server is True, the connection between the source server and SMS has been restored.

    Figure 1 Reconnecting the source server to SMS


  5. Run the curl -v {endpoint of SMS}/v3/sources command to check the connection between the source server and the SMS API.

    • If the connection is unavailable, check whether the DNS and firewall of the source server are correctly configured.
    • If the connection is available and data is being transmitted, check whether the outbound bandwidth of the source server is lower than 10 Mbit/s. If it is, the data transmission may be using up all the bandwidth, which can cause the connection between the Agent and SMS to time out. In this case, increase the outbound bandwidth of the source server to more than 10 Mbit/s, and then continue the migration.

  6. Wait for about a minute and log in to the management console.
  7. Click Service List. Under Migration, click Server Migration Service.

    The SMS console is displayed.

  8. In the navigation pane on the left, choose Servers.

    In the Status column, view the connection status of the source server.