HP XC System Software Administration Guide Version 2.1

Time Parameter Archive (or Purge) All Metrics Data:
nw
Older than n weeks
ny
Older than n years
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.
See the managedb
(8) manpage for more information.
The archive.cron script allows you to au tom a te the process of archiving metrics data f ro m
the cmdb.Seethearchive.cron
(4) m anpage for m ore information.
5.7 Restoring the Metrics Data from an Archive File
You can restore metrics data archived in an archive file to t he configuration and management
database with the managedb restore --archive command.
You mu st be superuser to use this command.
Archive files are created with the managedb archive command. See Section 5.6.
The following example restores the metrics data archived in an archive file named
arfile_tuesday in the current directory:
# managedb restore --archive ./arfile_tuesday
See the managedb(8) manpage for more information.
5.8 Purging Metrics Data from the Configuration Database
Use the managedb purge command to rem ove metrics data from the configuration and
management database without archiving them.
You mu st 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 Section 5.6 for a table describing the time parameter.
The following comman d p urges metrics data o lder t han two weeks:
# managedb purge 2w
See the managedb(8) manpage for more information.
The archive.cron script enables you to automate the process of archiving metrics data from
the cmdb.Seethearchive.cron
(4) m anpage for m ore information.
5.9 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 comm and to a file.
The --nologs option shortens the dump d isplay by omitting log data.
See the managedb
(8) manpage for more information.
5-4 Managing the Configuration and Management Database