Name

nnmresetembdb.ovpl — drop (delete) and recreate the embedded database, if NNMi is configured to run with the embedded database

SYNOPSIS

nnmresetembdb.ovpl [-?|-h|-help] [-silent] [-nostart]

DESCRIPTION

Use nnmresetembdb.ovpl to drop (delete) and recreate the NNMi embedded database. This command is useful only if you installed NNMi with the embedded database option. You should use this command only if your database is corrupt, and you are willing to lose all of your data; or, if you simply want to reset your database to the state it was in after initial installation.

If NNMi is running when this command is executed, the command first stops NNMi (using ovstop), then starts the nmsdbmgr process to work with the database (using ovstart). Unless the -nostart option is present, NNMi restarts (using ovstart) upon successful completion of the reset process.

When the database reset has completed, the embedded database has no tables or data in it. The tables are recreated when you restart NNMi using the ovstart command, or when the nnmresetembdb.ovpl command automatically starts NNMi. You must be logged in as root on UNIX systems, or as administrator on Windows systems to run this command.

Parameters

The nnmresetembdb.ovpl command recognizes the following parameters:

-silent

The nnmresetembdb.ovpl command does not display the command results when you use the -silent option.

-nostart

The nnmresetembdb.ovpl command does not start NNMi after the database reset when you use the -nostart option.

-?|-h|-help

Display command usage.

EXAMPLES

You can use this script to reset your database if you have a bad discovery or a corrupted database; or if you want to reset the database (including configuration items stored in the database) to the state the database was in after initial installation.

You'll see these messages:

# nnmresetembdb.ovpl -nostart

WARNING: Running this tool will stop NNM, drop and recreate the database,
and restart NNM. Please make sure no major activity is occurring at
this time.

Is it OK to stop NNM (ovstop)? [n] y
Thank you!

WARNING: This will delete all configuration and discovered data. You cannot
recover from a reset unless you have taken a backup.

Are you sure you wish to reset your database? [n] y

Attempting to reset the embedded database...
Starting nmsdbmgr process for database reset...
Successfully started nmsdbmgr process for database reset.
Successfully reset private database.
Successfully reset NNM embedded database.

#
      

AUTHOR

nnmresetembdb.ovpl was developed by Hewlett Packard Enterprise.

FILES

nnmresetembdb.ovpl resides in $NNM_BIN (UNIX) or install_dir\bin (Windows) directories.

SEE ALSO

nmsdbmgr(1M), nnmnodedelete.ovpl(1M), ovstart(1M), ovstop(1M), ovstatus(1).

Return to Reference Pages Index