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

For Windows OS

1.Stop the Enterprise Server (see Start and Stop the Dr.Web Enterprise Server).

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 Enterprise Server\bin\drwcsd.exe" -home="C:\Program Files\DrWeb Enterprise Server" -var-root="C:\Program Files\DrWeb Enterprise Server\var" -verbosity=all exportdb D:\esbase.es

It is presumed that Enterprise Server is installed to the C:\Program Files\DrWeb Enterprise 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 the Enterprise Server, connect the Dr.Web Control Center to the Server and configure the Server to use a different DBMS. Cancel restarting the Server.

4.Stop the Enterprise Server (see Start and Stop the Dr.Web Enterprise Server).

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

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

It is presumed that the Server is installed to the C:\Program Files\DrWeb Enterprise 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 Enterprise Server\bin\drwcsd.exe" -home="C:\Program Files\DrWeb Enterprise Server" -var-root="C:\Program Files\DrWeb Enterprise Server\var" -verbosity=all importdb D:\esbase.es

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

7.Start the Enterprise Server (see Start and Stop the Dr.Web Enterprise Server).

For UNIX OS

1.Stop Enterprise 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 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 Enterprise 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 Control Center to the Server and configure the Server to use another database through the Dr.Web Control Center menu: Administration Configure Dr.Web Enterprise Server 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 Enterprise Server Configuration File).

 

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

4.Stop Enterprise 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 Enterprise 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