Article Contents
...
- \n\t
- Overview \n\t
- Exporting the Contents of your DataStore \n\t
- Importing the Contents of your DataStore \n\t
- Exporting & Importing only your up.time Configuration \n
...
Overview
...
Table of Contents
Overview
Uptime Infrastructure Monitor up.time includes two command line utilities for archiving and restoring your DataStore:
...
- \n
- fulldatabasedump \n
Creates a compressed XML file of the complete contents of your DataStore.
\n \n - fulldatabaseimport \n
Imports the archived data back into your DataStore.
\n \n
...
Both utilities work with all supported database backends.
...
Exporting the Contents of your DataStore
...
To export the contents of your DataStore:
...
- \n
- Shut down the Stop the "up.time Data Collector service" and "up.time Controller" services. \n
Navigate to the scripts folder under the directory where
up.timeUptime Infrastructure Monitor is installed.
\nRun the following command to save the dump file to the folder of the root installation:
\nCode Block fulldatabasedump
Or, to specify the location of the dump file: \n
\nCode Block fulldatabasedump <path>
Depending on the size of your DataStore, this process can take anywhere from several minutes to several hours.
\n- The utility will create a
uptimedump_YYYY-MM-DD.xml.gz
file. For example,uptimedump_20072016-01-02.xml.gz
. This file is saved in up.timeUptime Infrastructure Monitor's root installation directory. \n
...
Importing the Contents of your DataStore
...
To import the contents of your DataStore:
...
- Ensure that the DataStore service is running. \n
Use the resetdb utility to delete and then recreate the
up.timeUptime Infrastructure Monitor database structure by running one of the following commands:
\n
\nCode Block language text On Windows:
>net
\n> net stop "up.time Controller" > net stop "up.time Data Collector"
>C:>Program Files>uptime software>uptime>resetdb
really \n \n> <uptime_dir>\resetdb --nodata
\nreally On Linux or Solaris:
core# /etc/init.d/uptime_
\ncontroller stop
usr# /
localetc/
\n \ninit.d/uptime_core stop # <uptime_dir>/resetdb --nodata really
\nRun the following command:
\nfulldatabaseimport
\nCode Block language text <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 up.timeUptime Infrastructure Monitor's root installation directory, enter: \n \nfulldatabaseimport uptimedump_2007
\nCode Block language text <uptime_dir>/scripts/fulldatabaseimport uptimedump_2016-01-02.xml.gz
\n \nRestart the up.time Data Collector service by running the following command:
\n
\nCode Block language text On Windows:
>net
\n> net start "up.time Data Collector"
\n> net start "up.time Controller" On Linux or Solaris:
\n# /etc/init.d/uptime_core start # /etc/init.d/uptime_controller start
\n
...
Exporting & Importing only your
...
Uptime Infrastructure Monitor 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 Service Monitor outage information, you can migrate only your up.time Uptime Infrastructure Monitor configuration from one up.time Uptime Infrastructure Monitor installation to another using the steps below.
...
- \n
- On the current up.time Uptime Infrastructure Monitor installation, generate a problem report using the Problem Reporting link under the Config tab. \n
- Install the same version of up.time Uptime Infrastructure Monitor on your new up.time Uptime Infrastructure Monitor server. It is very important that the export system and the import system are using the same up.time Uptime Infrastructure Monitor version. \n
- Copy this problem report zip file to your new up.time Uptime Infrastructure Monitor server and place it in the up.time Uptime Infrastructure Monitor installation directory. \n
- 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:pr20120618pr20160618-123456.zip or /root/pr20120618pr20160618-123456.zip): \n
On
Windows:
\n
>net
\nCode Block > net stop "up.time Controller" > net stop "up.time Data Collector"
>C:>Program Files>uptime software>uptime>resetdb
\n> <uptime_dir>\resetdb --nodata really
>C:>Program Files>uptime software>uptime>scripts>primport PR-NAME \n
>net
\n \n> <uptime_dir>\scripts\primport <pr_zipfile> > net start "up.time Data Collector"
> net start "up.time Controller"
On
Linux
or
Solaris:
\n
coreCode Block # /etc/init.d/uptime_
\ncontroller stop
/usr/local/uptime
\n# /etc/init.d/uptime_core stop # <uptime_dir>/resetdb --nodata really
/usr/local/uptime/
PR-NAME \n# <uptime_dir>/scripts/primport
\n \n<pr_zipfile> # /etc/init.d/uptime_core start
# /etc/init.d/uptime_controller start