HP XC System Software Administration Guide Version 3.0
Archive (or Purge) All Metrics Data:Time Parameter
Regardless of age (default)now
Older than n hoursnh
Older than n daysnd
Older than n weeksnw
Older than n yearsny
The following example archives metrics data older than four days to an archive file named arfile_tuesday
in the current directory:
# managedb archive --archive ./arfile_tuesday 4d
Be sure to archive the configuration and management database on a regular basis (at least monthly) to save
disk space.
For more information on the managedb command, see managedb(8).
The archive.cron script enables you to automate the process of archiving metrics data from the cmdb.
For more information on this script, see archive.cron(4).
Restoring the Metrics Data from an Archive File
You can restore metrics data archived in an archive file to the configuration and management database
with the managedb restore --archive command.
You must be superuser to use this command.
Archive files are created with the managedb archive command. See “Archiving Metrics Data from the
Configuration Database” (page 59).
The following example restores the metrics data archived in an archive file named arfile_tuesday in
the current directory:
# managedb restore --archive ./arfile_tuesday
For more information, see managedb(8).
Purging Metrics Data from the Configuration Database
Use the managedb purge command to remove metrics data from the configuration and management
database without archiving them.
You must be superuser to use this command.
You can specify a time parameter with the managedb purge command; metrics data older than the time
parameter is purged. The time parameter is the same as for the managedb archive command. See
“Archiving Metrics Data from the Configuration Database” (page 59) for a description of the time parameter.
The following command purges metrics data older than two weeks:
# managedb purge 2w
For more information on the managedb command, see managedb(8).
The archive.cron script enables you to automate the process of archiving metrics data from the cmdb.
For more information on this script, see archive.cron(4).
Dumping the Configuration Database
Use the managedb dump command to display the contents of the configuration and management database,
table by table, in a form that you can read. There is a substantial amount of data; consider redirecting the
output of the managedb dump command to a file.
The --nologs option shortens the dump display by omitting log data.
For more information, see managedb(8).
60 Managing the Configuration and Management Database