cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1435
Views
5
Helpful
6
Replies

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 6

nhabib
Level 9
Level 9

Windows or Solaris?

nhabib
Level 9
Level 9

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

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

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

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

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