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 modexecdb database-export 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 modexecdb database-export 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 Dr.Web Server and configure Dr.Web Server to use a different DBMS. Cancel the Dr.Web Server restart.

4.Stop Dr.Web Server.

5.Delete the database file.

6.Run drwcsd.exe using the modexecdb database-init 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 modexecdb database-init D:\Keys\agent.key <password>

It is presumed that Dr.Web 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 modexecdb database-import 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 modexecdb database-import 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 Dr.Web Server with the modexecdb database-export switch to export the database to a file. The command line from the Dr.Web Server installation folder will look as follows:

for Linux OS:

/etc/init.d/drwcsd -log=drwcsd.log modexecdb database-export /var/esbase.es

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd -log=drwcsd.log modexecdb database-export /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 Dr.Web Server and configure Dr.Web Server to use another database through Dr.Web Security Control Center menu: Administration → Dr.Web Server configuration → Database tab.

info

You can also reconfigure Dr.Web Server to use another database/DBMS by editing the Dr.Web 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 Dr.Web Server. Reject restarting.

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

5.Delete the database file.

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

for Linux OS:

/etc/init.d/drwcsd -log=drwcsd.log modexecdb database-init

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd -log=drwcsd.log modexecdb database-init

7.Run drwcsd using the modexecdb database-import 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 modexecdb database-import /var/esbase.es

for FreeBSD OS:

/usr/local/etc/rc.d/drwcsd -log=drwcsd.log modexecdb database-import /var/esbase.es

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

info

If you want to change the parameters at Dr.Web Server start (for example, specify the Dr.Web 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