cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
920
Views
4
Helpful
3
Replies

dbRestoreOrig.pl, reinitdb.pl, dbsrv9 : which use when?

janvandek
Level 1
Level 1

Hello,

Can someone explain me the differences between these scripts? When should one use which tool?

Thx

Jan

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

reinitdb.pl is for the ANI database only. It allows one to either drop all of the Data Collection related tables, or the User Tracking related tables, or replace the entire ANI database. The latter simply calls dbRestoreOrig.pl. Note: dropping the Data Collection and UT tables may cause problems in Campus Manager 4.0.x. These have been fixed in Campus 5.0.

dbRestoreOrig.pl can be used on any of the dmgtd-controlled databases. These include cmf, rmeng, ani, dfmInv, dfmEpm, and dfmFh. The script replaces the current database with a clean original copy.

dbsrv9 is the actual database server. This is not a script, but a binary executable. This is responsible for opening the database and handling client requests.

If you're using LMS 2.x, I recommend you stick with dbRestoreOrig.pl whenever your databases become corrupt, and you you do not have a known good backup.

Would the IPM db be covered under the dbRestoreOrig.pl umbrella in the future?

It is in LMS 3.0 as IPM is now dmgtd-controlled.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco