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

For Windows OS

info

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.

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 -log=drwcsd.log 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.

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.

5.Delete the database file.

6.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 -log=drwcsd.log -- 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.

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"

7.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 -log=drwcsd.log importdb D:\esbase.es

8.Start Dr.Web Server.

For UNIX OS

1.Stop Dr.Web Server using the script

for Linux OS:

/etc/init.d/drwcsd stop

for FreeBSD OS:

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

or via Dr.Web Security Control Center.

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 -log=drwcsd.log exportdb /var/esbase.es

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd -log=drwcsd.log 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:

/etc/init.d/drwcsd start

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd 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.

info

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.Delete the database file.

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

for Linux OS:

/etc/init.d/drwcsd -log=drwcsd.log initdb

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd -log=drwcsd.log initdb

7.It is presumed that the agent.key resides in the /root/keys folder.Run drwcsd using the importdb switch to import the database from a file. The command line will look as follows:

for Linux OS:

/etc/init.d/drwcsd -log=drwcsd.log importdb /var/esbase.es

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd -log=drwcsd.log importdb /var/esbase.es

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

info

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

for Linux OS:

/etc/init.d/drwcsd