Testing the network connection to the MongoDB Rest Service server

Test the connection to the MongoDB data source server to verify that the MongoDB Rest Service is started correctly.

About this task

You can test the connection to the MongoDB server using telnet tool to verify if Rest Service is started.

Procedure

  1. Start a terminal in the server that runs the federation server.
  2. Issue the following command:
    telnet <mongodb_server_name> 28017
    

    If the connection is successful, you will receive the following similar output from the command.

    Trying 9.30.252.5...
    Connected to 9.30.252.5.
    Escape character is '^]'.

    If the connection is failed, you will receive the following similar output from the terminal.

    Trying 9.30.252.5...
    telnet: connect to address 9.30.252.5: Connection refused
    telnet: Unable to connect to remote host

    If the connection is unsuccessful, you will receive an error. Check the MongoDB server configuration and make sure Rest Service is started successfully.