Page History
...
Table of Contents |
---|
Exporting the Contents of your DataStore Importing the Contents of your DataStore
Exporting & Importing only your Uptime Infrastructure Monitor Configuration
...
|
...
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:
- Stop the "up.time Data Collector" and "up.time Controller" services.
- Navigate to the scripts folder under the directory where Uptime Infrastructure Monitor UIM is installed.
- Run the following command to save the dump file to the folder of the root installation:
Or, to specify the location of the dump file:Code Block language sql fulldatabasedump
Code Block language sql fulldatabasedump <path>
- Depending on the size of your DataStore, this process can take anywhere from several minutes to several hours.
- The utility will create a an
uptimedump_YYYY-MM-DD.xml.gz
file. For example,uptimedump_
20162023-01-02.xml.gz
. This file is saved in Uptime Infrastructure MonitorUIM's root installation directory.
...
...
Importing the
...
contents of your DataStore
To import the contents of your DataStore:
- Ensure that the DataStore service is running.
- Use the resetdb utility to delete and then recreate the Uptime Infrastructure Monitor UIM database structure by running one of the following commands:
Code Block language sql On Windows:
...
> net stop "up.time Controller"
...
> net stop "up.time Data Collector"
...
> <uptime_dir>\resetdb --nodata really
...
On Linux or Solaris:
...
# /etc/init.d/uptime_controller stop # /etc/init.d/uptime_core stop
# <uptime_dir>/resetdb --nodata really
- Run the following command:
WhereCode Block language sql <uptime_dir>\scripts\fulldatabaseimport path/<filetoimport>.xml.gz
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
...
- UIM's root installation directory, enter:
Code Block language sql <uptime_dir>/scripts/fulldatabaseimport uptimedump_
...
2023-01-02.xml.gz
- Restart the up.time Data Collector service by running the following command:
Code Block language sql On Windows:
...
> net start "up.time Data Collector"
...
> net start "up.time Controller"
...
On Linux or Solaris:
...
# /etc/init.d/uptime_core start
# /etc/init.d/uptime_controller start
_bookmark4Anchor _bookmark4 Exporting & Importing only your Uptime Infrastructure Monitor Configuration
Exporting and importing only your UIM configuration
By default, a problem report contains configuration information for elements from the last three months. If the configuration has not changed for an element in that time (ie. size memory is the same, number of CPU's is the same, etc.), then the problem report will not contain configuration for that element. When the problem report is loaded into a new Uptime install, you may see an error in the UI because the configuration information for the element is unavailable. Within the next 24 hours, the Configuration Gatherer for that element will run and update the missing configuration and the error will go away. This can be sped up by clicking the Rescan Configuration button in the Info page for that element.
If you do not require all of your historical performance data or Service Monitor outage information, you can migrate only your
...
UIM configuration from one
...
UIM installation to another using the steps below.
- On the current Uptime Infrastructure Monitor UIM installation, generate a problem report using the Problem Reporting link under the Config tab.
- Install the same version of Uptime Infrastructure Monitor UIM on your new Uptime Infrastructure Monitor UIM server. It is very important that the export system and the import system are using the same Uptime Infrastructure Monitor UIM version.
- Copy this problem report zip file to your new Uptime Infrastructure Monitor UIM server and place it in the Uptime Infrastructure Monitor UIM installation directory.
- 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 language sql On Windows:
...
> net stop "up.time Controller"
...
> net stop "up.time Data Collector"
...
> <uptime_dir>\resetdb --nodata really
...
> <uptime_dir>\scripts\primport <pr_zipfile>
...
> net start "up.time Data Collector"
...
> net start "up.time Controller"
...
On Linux or Solaris:
...
# /etc/init.d/uptime_controller stop # /etc/init.d/uptime_core stop
# <uptime_dir>/resetdb --nodata really
# <uptime_dir>/scripts/primport <pr_zipfile> # /etc/init.d/uptime_core start
# /etc/init.d/uptime_controller start