How to sync 2 systems. LMS 3.1

Answered Question
Sep 22nd, 2008
User Badges:

I have 2 ciscoworks LMS 3.1 systems. They are set up as Master - Slave. On the master system all the devices in the DCR are managed by all the apps, as desired. On the slave system I would also like to have all devices manged by all apps, but only some are manged. I have Enable Auto Mode and Manage All Devices checked off in RME. Do I need to do something else?

Correct Answer by Joe Clarke about 8 years 8 months ago

Do this. Set the slave's DCR mode to standalone. Shutdown Daemon Manager on both servers. Reinitialize all of the databases on the slave one more time. On the master, remove these two lines from dcr.ini:


DCR_SLAVES_COUNT=1

SLAVE-1=HQ1MA139-DCR-4306780^HQ1MA139\:443^2545^0^0^


Restart Daemon Manager on both servers. Re-set the slave's DCR status to slave. The two should sync up.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Mon, 09/22/2008 - 08:13
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Nothing else is required. If the devices are in DCR, then the applications should manage them. You should check the Common Services homepage on the RME server to make sure the expected number of devices are showing up. You can also go to RME > Devices > Device Management > RME Devices, and select Add Devices to see if there are any devices pending for which RME did not receive an update.

chris.mcgarrah@... Mon, 09/22/2008 - 12:06
User Badges:

The expected number of devices is not showing up on the slave server. It only shows 152 devices whereas the Master server shows 497 devices. There are no pending devices showing on the slave server.

Joe Clarke Mon, 09/22/2008 - 12:14
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

There may be a communication issue between the master and slave. Enable DCR debugging on both under Common Services > Server > Admin > CS Log Configurations. Then, add a new device to the DCR master, and post the dcr.log and dcrclient.log from both servers.

Joe Clarke Tue, 09/23/2008 - 15:02
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

It looks like there is a problem with the cmf database on the slave. I recommend you reinitialize the LMS databases on the slave. This should allow you to resync with the master, but you will lose any information for existing devices. If you want to do this, let me know what apps you have installed on the slave.

chris.mcgarrah@... Tue, 09/23/2008 - 16:10
User Badges:

Yes, I would like to do this. These are the apps I have installed on the slave:

Common Services

Campus Manager

CiscoView

DFM

IPM

RME


Thanks.

Joe Clarke Tue, 09/23/2008 - 19:28
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

First, stop Daemon Manager, then run:


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=cmf dmprefix=CMF


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=rmeng dmprefix=RME


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=dfmInv dmprefix=INV


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=dfmEpm dmprefix=EPM


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=dfmFh dmprefix=FH


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=ani dmprefix=ANI


NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=ipm dmprefix=Ipm


Then delete NMSROOT/objects/smarts/local/repos/icf/DFM*.rps


Then restart Daemon Manager.

chris.mcgarrah@... Tue, 09/23/2008 - 20:29
User Badges:

OK, I have followed the procedure and restarted Daemon Manager. On the slave CS homepage I now see 225 devices. Should this match the number on the master(498) instantly or will it take some time? I'll check tomorrow morning and update with any change. Thanks.

Joe Clarke Tue, 09/23/2008 - 20:31
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

It will take time to synchronize all the devices from master to slave. It doesn't happen instantaneously.

Joe Clarke Wed, 09/24/2008 - 12:56
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Please post the new DCR logs.

Joe Clarke Wed, 09/24/2008 - 18:24
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

I see no errors here. According to the log, the slave has successfully synced with the master. Are either of these servers integrated with ACS?

Joe Clarke Wed, 09/24/2008 - 18:34
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Also, please post NMSROOT/lib/classpath/com/cisco/nm/dcr/dcr.ini.


Correct Answer
Joe Clarke Thu, 09/25/2008 - 06:09
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Do this. Set the slave's DCR mode to standalone. Shutdown Daemon Manager on both servers. Reinitialize all of the databases on the slave one more time. On the master, remove these two lines from dcr.ini:


DCR_SLAVES_COUNT=1

SLAVE-1=HQ1MA139-DCR-4306780^HQ1MA139\:443^2545^0^0^


Restart Daemon Manager on both servers. Re-set the slave's DCR status to slave. The two should sync up.

chris.mcgarrah@... Thu, 09/25/2008 - 05:50
User Badges:

These should not be integrated with ACS. However, at one point while configuring them to use TACACS for authentication, I mistakenly selected the ACS radio button at the top of that dialog box, but have since switched back to Non-ACS. Maybe there is some remnants from that.

Actions

This Discussion