Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Completely erase all devices & configuration from LMS 2.51

Is there a way to completely remove all device entries and configuration from LMS 2.51? I wan to start off with a completely clean system and then re-import my devices. There seems to be lots of files with references to devices still there if the devices are removed through the GUI (Common Services, Device Management, Delete).

I seem to remember one of NMS guys using some command line stuff (pearl scripts?) to purge all data. Don't worry this is a test system and I want to avoid a re-build.

Thanks

Andy

6 REPLIES
Red

Re: Completely erase all devices & configuration from LMS 2.51

Windows or Solaris?

Red

Re: Completely erase all devices & configuration from LMS 2.51

For Solaris:

/etc/init.d/dmgtd stop

cd /opt/CSCOpx/campus/bin

./reinitdb.pl -restore

cd /opt/CSCOpx/bin

./dbRestoreOrig.pl dsn=cmf dmprefix=Cmf

./dbRestoreOrig.pl dsn=dfmEpm dmprefix=EPM

./dbRestoreOrig.pl dsn=dfmInv dmprefix=INV

./dbRestoreOrig.pl dsn=dfmFh dmprefix=FH

./dbRestoreOrig.pl dsn=rmeng dmprefix=RME

/etc/init.d/dmgtd start

For Windows (commands are case sensitive):

net stop crmdmgtd

cd CSCOpx\campus\bin

..\..\bin\perl reinitdb.pl -restore

cd CSCOpx\bin

perl dbRestoreOrig.pl dsn=cmf dmprefix=Cmf

perl dbRestoreOrig.pl dsn=dfmEpm dmprefix=EPM

perl dbRestoreOrig.pl dsn=dfmInv dmprefix=INV

perl dbRestoreOrig.pl dsn=dfmFh dmprefix=FH

perl dbRestoreOrig.pl dsn=rmeng dmprefix=RME

net start crmdmgtd

Re: Completely erase all devices & configuration from LMS 2.51

Hi nhabib,

please correct me if I am wrong but I think it is also necessary to reinitialize the ANI DB as of all the Discovery and UserTracking information that is stored inside.

The comand for Solaris:

cd /opt/CSCOpx/campus/bin

./reinitdb.pl

for Windows

cd CSCOpx\campus\bin

perl .\reinitdb.pl

regards,

MArtin

Red

Re: Completely erase all devices & configuration from LMS 2.51

Yes, you are correct. I had provided the commands in my post as well.

Re: Completely erase all devices & configuration from LMS 2.51

Thanks for the reply. It seems to have worked, although I am now left in a bit of a situation with regards to the server. If I attempt to access the Common Services Device & Credentials page I get the following message box:

The Device Management operation is not allowed on slave DCA server.

If I attempt to access the Admin page I get the message:

Internal error in communication channel.

I assume this is something to do with the hostname? Where do I fix this?

Thanks

Anfy

Re: Completely erase all devices & configuration from LMS 2.51

OK, worked it out. I was using SSL and this wasn't enabled in Common Services. Strangely though the original links still worked (SSL), which I thought would have been disabled since it wasn't using SSL?

Andy

222
Views
5
Helpful
6
Replies