Changing the Type of the DBMS for Dr.Web Enterprise Security Suite

Top  Previous  Next

For Windows OS

Procedure of how to start and stop Dr.Web Server is described in the Administrator Manual, p. Start and Stop Dr.Web Server.

1.Stop Dr.Web Server service.

2.Run drwcsd.exe using the exportdb switch to export the content of the database to a file. The full command line (for Windows) looks as follows:

"C:\Program Files\DrWeb Server\bin\drwcsd.exe" -home="C:\Program Files\DrWeb Server" -var-root="C:\Program Files\DrWeb Server\var" -verbosity=all exportdb D:\esbase.es

It is presumed that Dr.Web Server is installed to the C:\Program Files\DrWeb Server folder and the database is exported to a file esbase.es, which is in the root of disc D. Copy the line above to the clipboard and paste to the cmd file and run the file.

If the path to a file (or a file name) contains spaces or national characters, the path should be put in quotation marks:

"D:\<long name>\esbase.es"

3.Start Dr.Web Server, connect Dr.Web Security Control Center to the Server and configure the Server to use a different DBMS. Cancel restarting the Server.

4.Stop Dr.Web Server service.

5.Run drwcsd.exe using the initdb switch to initialize a new database. The command line will look as follows:

"C:\Program Files\DrWeb Server\bin\drwcsd.exe" -home="C:\Program Files\DrWeb Server" -var-root="C:\Program Files\DrWeb Server\var" -verbosity=all initdb D:\Keys\agent.key - - root

It is presumed that the Server is installed to the C:\Program Files\DrWeb Server folder and agent.key resides in D:\Keys. Copy this line to the clipboard and paste to the cmd file. Run the file then.

If the path to a file (or a file name) contains spaces or national characters, the path to the key should be put in quotation marks:

"D:\<long name>\agent.key"

6.Run drwcsd.exe using the importdb switch to import the database from the file. The command line will look as follows:

"C:\Program Files\DrWeb Server\bin\drwcsd.exe" -home="C:\Program Files\DrWeb Server" -var-root="C:\Program Files\DrWeb Server\var" -verbosity=all importdb D:\esbase.es

Copy this line to the clipboard and paste to the cmd file. Run the file.

7.Dr.Web Server service.

For UNIX OS

1.Stop Dr.Web Server using the script

for Linux OS and Solaris OS:

/etc/init.d/drwcsd stop

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd.sh stop

or via Dr.Web Security Control Center (except the Solaris OS).

2.Start the Server with the exportdb switch to export the database to a file. The command line from the Server installation folder will look as follows:

for Linux OS:

"/etc/init.d/drwcsd exportdb /var/esbase.es"

for Solaris OS:

"/etc/init.d/drwcsd exportdb /var/drwcs/etc/esbase.es"

for FreeBSD OS:

"/usr/local/etc/rc.d/drwcsd.sh exportdb /var/drwcs/esbase.es"

It is presumed that the database is exported to esbase.es, which resides in the specified folder.

3.Start Dr.Web Server using the script

for Linux OS and Solaris OS:

/etc/init.d/drwcsd start

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd.sh start

connect Dr.Web Security Control Center to the Server and configure the Server to use another database through Dr.Web Security Control Center menu: Administration → Dr.Web Server configuration → Database tab.

You can also reconfigure the Server to use another database/DBMS by editing the Server configuration file drwcsd.conf directly. To do this, you should comment/delete the entry about the current database and enter the new database (for more details see Appendix G1. Dr.Web Server Configuration File).

You will be prompted to restart the Server. Reject restarting.

4.Stop Dr.Web Server (see step 1).

5.Run drwcsd using the initdb switch to initialize a new database. The command line will look as follows:

for Linux OS and Solaris OS:

"/etc/init.d/drwcsd initdb /root/keys/agent.key - - root"

for FreeBSD OS:

"/usr/local/etc/rc.d/drwcsd.sh initdb /root/keys/agent.key - - root"

It is presumed that the agent.key resides in the /root/keys folder.

6.Run drwcsd using the importdb switch to import the database from a file. The command line will look as follows:

for Linux OS and Solaris OS:

"/etc/init.d/drwcsd importdb /var/esbase.es"

for Solaris OS:

"/etc/init.d/drwcsd importdb /var/drwcs/etc/esbase.es"

for FreeBSD OS:

"/usr/local/etc/rc.d/drwcsd.sh importdb /var/esbase.es"

7.Start Dr.Web Server (see step 3).

If you want to change the parameters at Server start (for example, specify the Server installation folder, change the log level, etc.), you will have to edit the start script:

for FreeBSD OS: /usr/local/etc/rc.d/drwcsd.sh

for Linux OS and Solaris OS: /etc/init.d/drwcsd