Friday 19 November 2010

Deepnet Server v3.x migration

The migration of deepnet server (v3.x) is very simple.



  • stop Deepnet Authentication Server(das) service


  • It can be done by typing "net stop das" in Command Prompt

  • stop MySQL(dasmysql) service(if applicable)


  • Do it with "net stop dasmysql"

  • backup whole deepnet folder


  • By default, it is called "Deepnet Authentication Server" in the folder "C:\Program Files"

  • copy the backup to the new server


  • For simplicity, you should copy the backup to "C:\Program Files" on the new machine, just keep the path same.

  • start the services on existing server


  • If you still need the deepnet service running on the existing machine for a while, you can start them by the reverse order, which are

    net start dasmysql

    net start das

  • save the following code to a batch file(migration.bat) on the new machine



  • "%cd%\mysql\bin\mysqld.exe" --install DASMYSQL --defaults-file="%cd%\mysql\das.ini"
    net start dasmysql

    "%cd%\Tomcat\bin\tomcat5.exe" //IS//DAS --Startup=auto --StartMode jvm --StopMode jvm --StartClass org.apache.catalina.startup.Bootstrap --StopClass org.apache.catalina.startup.Bootstrap --StartParams start --StopParams stop --Install "%cd%\Tomcat\bin\tomcat5.exe" --LogPath "%cd%\Tomcat\logs" --Classpath "%cd%\Tomcat\bin\bootstrap.jar";"%cd%\jython\jython.jar" --Jvm "%cd%\jre\bin\server\jvm.dll" --DisplayName "DAS" --Description "DAS SERVICE" --StartPath "%cd%\Tomcat" --StopPath "%cd%\Tomcat" --JvmOptions "-Dcatalina.home=%cd%\Tomcat;-Dcatalina.base=%cd%\Tomcat;-Djava.endorsed.dirs=%cd%\Tomcat\common\endorsed;-Djava.io.tmpdir=%cd%\Tomcat\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%cd%\Tomcat\conf\logging.properties;-Dpython.home=%cd%\jython"

    net start das


  • move the batch file to Deepnet folder


  • You must place the batch file in the deepnet folder, which is "C:\Program Files\Deepnet Authentication Server"

  • run the batch file


  • On the new machine, open a Command Prompt, go to deepnet folder, run migration.bat

  • open a web page http://localhost:8080


  • Still on the new machine, launch a browser, access http://localhost:8080, assume you are using the default port of deepnet management console. It will ask you to input new IP address of the new machine. Don't forget to click Submit button to finish.


Mind you, it is against Deepnet license agreement if you run the same license on two different machine simultaneously(unless it is a load-balance/failover infrastructure), so please fully shutdwon the deepnet server on the old machine once the migration is completed.

No comments: