Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Uptime Infrastructure Monitor includes two command line utilities for archiving and restoring your DataStore:

  • fulldatabasedump
    Creates a compressed XML file of the complete contents of your DataStore.
  • fulldatabaseimport
    Imports the archived data back into your DataStore.

Both utilities work with all supported database backends. 

Exporting the contents of your DataStore

To export the contents of your DataStore:

  1. Stop the "up.time Data Collector" and "up.time Controller" services.
  2. Navigate to the scripts folder under the directory where

...

  1. UIM is installed.
  2. Run the following command to save the dump file to the folder of the root installation:
    Code Block
    languagesql
    fulldatabasedump
    Or, to specify the location of the dump file:
    Code Block
    languagesql
    fulldatabasedump <path>
  3. Depending on the size of your DataStore, this process can take anywhere from several minutes to several hours.
  4. The utility will create

...

  1. an uptimedump_YYYY-MM-DD.xml.gz file. For example, uptimedump_

...

  1. 2023-01-02.xml.gz. This file is saved in

...

  1. UIM's root installation directory.

Importing the contents of your DataStore

To import the contents of your DataStore:

  1. Ensure that the DataStore service is running.
  2. Use the resetdb utility to delete and then recreate the

...

  1. UIM database structure by running one of the following commands:
    Code Block
    languagesql
    On Windows:

...

  1. 
    > net stop "up.time Controller"

...

  1. 
    > net stop "up.time Data Collector"

...

  1. 
    > <uptime_dir>\resetdb --nodata really

...

  1. 
    
    On Linux or Solaris:

...

  1. 
    # /etc/init.d/uptime_controller stop 
    # /etc/init.d/uptime_core stop

...

  1. 
    # <uptime_dir>/resetdb --nodata really
  2. Run the following command:
    Code Block
    languagesql
    <uptime_dir>\scripts\fulldatabaseimport path/<filetoimport>.xml.gz
    Where path/<filetoimport>.xml.gz is the path to and file name of the archived contents of your DataStore. For example, to import the archive that is located in

...

  1. UIM's root installation directory, enter:
    Code Block
    languagesql
    <uptime_dir>/scripts/fulldatabaseimport uptimedump_

...

  1. 2023-01-02.xml.gz
  2. Restart the up.time Data Collector service by running the following command:
    Code Block
    languagesql
    On Windows:

...

  1. 
    > net start "up.time Data Collector"

...

  1. 
    > net start "up.time Controller"

...

  1. 
    
    On Linux or Solaris:

...

  1. 
    # /etc/init.d/uptime_core start

...

  1. 
    # /etc/init.d/uptime_controller start

Exporting and importing only your UIM configuration

...

If you do not require all of your historical performance data or Service Monitor outage information, you can migrate only your Uptime Infrastructure Monitor UIM configuration from one Uptime Infrastructure Monitor UIM installation to another using the steps below.

  1. On the current

...

  1. UIM installation, generate a problem report using the Problem Reporting link under the Config tab.
  2. Install the same version of

...

  1. UIM on your new

...

  1. UIM server. It is very important that the export system and the import system are using the same

...

  1. UIM version.
  2. Copy this problem report zip file to your new

...

  1. UIM server and place it in the

...

  1. UIM installation directory.
  2. Import the configuration from your problem report by running the following commands (replace PR-NAME with the full path & file name for your problem report, e.g. c:pr20160618-123456.zip or /root/pr20160618-123456.zip):
    Code Block
    languagesql
    On Windows:

...

  1. 
    > net stop "up.time Controller"

...

  1. 
    > net stop "up.time Data Collector"

...

  1. 
    > <uptime_dir>\resetdb --nodata really

...

  1. 
    > <uptime_dir>\scripts\primport <pr_zipfile>

...

  1. 
    > net start "up.time Data Collector"

...

  1. 
    > net start "up.time Controller"

...

  1. 
    
    On Linux or Solaris:

...

  1. 
    # /etc/init.d/uptime_controller stop 
    # /etc/init.d/uptime_core stop

...

  1. 
    # <uptime_dir>/resetdb --nodata really

...

  1. 
    # <uptime_dir>/scripts/primport <pr_zipfile> 
    # /etc/init.d/uptime_core start

...

  1. 
    # /etc/init.d/uptime_controller start