Resetting the SmartServer IoT Databases

You can reset the databases in your SmartServer, and you can reset the SmartServer to the same configuration as it ships from the factory.  This section describes how to reset the SmartServer databases only. To reset the SmartServer to the factory-shipped configuration, see Resetting the SmartServer IoT to Factory Defaults.

When you reset the SmartServer databases, the following operations occur, followed by a restart of the SmartServer:

  • Services are stopped
  • Databases are cleared
  • MAC IDs (SmartServer Configuration page LON tab) used for routing (IP-852, U60s, U70s) and internal devices are reassigned and may require you to reassign them in any IMM integration tool (e.g., IzoT CT).

Resetting the SmartServer databases clears the SmartServer databases without changing the SmartServer IP addresses. You can use this procedure to reset the databases in your SmartServer in order to recover from any database corruption.

Resetting the SmartServer database can be done using the SmartServer Configuration page. If there is any problem with, or access to, the SmartServer Configuration page, then use the the apollo-reset command from the console to reset the SmartServer databases.

This section describes both of these methods for resetting the SmartServer database and consists of the following:

Using the SmartServer Configuration Page

To reset the SmartServer databases using the SmartServer Configuration page, follow the steps below.

  1. Open the SmartServer Configuration page as described in Accessing the SmartServer IoT Configuration PageThe Network tab appears as the default SmartServer Configuration page. Once the network settings are configured for the SmartServer system, then the System tab will appear as the default as shown in the next step.

    SmartServer IoT Network tab

  2. Click the System tab.

    SmartServer IoT System tab

  3. Click Reset to Defaults.

    SmartServer IoT System tab

    The Reset to Defaults dialog box appears.

  4. Enter the current password and confirm your password in the appropriate fields. The Reset Databases Only option will preserve your network settings. The Restore Factory Settings option is used to take the SmartServer back to factory fresh condition. 

  5. Verify that the Reset Databases Only option is selected (default).

  6. Click Confirm to reset the existing databases.

    Allow about 10 minutes for the reset process to complete.

    With SmartServer 4.3 and higher, the SmartServer may reboot following the reset process. The reboot process will automatically disconnect you from the system. If the system reboots, then close the SmartServer Configuration page and re-login for the current state of the CMS to appear. 

  7. Resetting the SmartServer databases may cause the MAC IDs (also referred to as neuron IDs) to change in the SmartServer for the IP-852 and U60 routers, SmartServer IoT device (used for IMM), and any internal devices that get their neuron IDs assigned by the SmartServer. Consequently, the following step is required:
    1. If you are using IP-852 routing with the SmartServer, after you reset the SmartServer, delete the SmartServer device shape in the IP-852 Config Server and then add the SmartServer again. 
    2. If the SmartServer is used in an  IzoT CT or IzoT Net Server database, after you reset the the SmartServer database, decommission the IP-852 and U60 routers (remove the neuron ID as it has changed), the SmartServer IoT device, and any SmartServer internal devices, and then commission these devices with the new neuron IDs. 

Using the Console

To reset the SmartServer databases using the console, perform the following steps:

This procedure should not be used with SmartServer release 3.2x.

  1. Use putty.exe, or a terminal emulator of your choice, to connect using SSH or serial console (settings: 115200-8-N-1). 

  2. Login as user apollo and the password that is on the back of the SmartServer, or the new password if it has been changed.

  3. Enter the following command: 

    sudo apollo-reset normal <password>

    The password is required and must match the current apollo password.

  4. If you connected to the SmartServer console using SSH, then you will be prompted to continue shortly after the re-image script starts.

    The re-image script will take about 8-10 minutes to complete and concludes with a reboot of the SmartServer.