Activation and deactivation of maintenance mode

You can activate or deactivate the octoplant server the maintenance mode using the command line.

Enter the following command to place the server in maintenance mode:

<Drive:>\<Program directory of the server>\VDogMasterService.exe /at:s /rd:<Drive:>\vdServerArchive /maintenance:on

Enter the following command to turn off maintenance mode:

<Drive:>\<Program directory of the server>\VDogMasterService.exe /at:s /rd:<Drive:>\vdServerArchive /maintenance:off

Paths containing blank spaces must be written in quotation marks.

In Windows 7 and Windows Server 2008 R2, the command line must be launched with Run as administrator.

 

If you want to activate or deactivate the maintenance mode using a batch file, then the server status can be retrieved as follows:

if ERRORLEVEL 0 ECHO "Error message" >> Log.txt Action required
if ERRORLEVEL 1 ECHO "Error message" >> Log.txt Action failed

 

Examples

Activate the maintenance mode:

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:on

Deactivate the maintenance mode:

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:off

Activate the maintenance mode using a bat file:

@echo off

REM Maintenance mode on

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:on

if ERRORLEVEL 1 ECHO "The attempt to put the server into maintenance mode has failed." >> d:\log.txt

if ERRORLEVEL 0 ECHO "The server has been put into maintenance mode." >> d:\log.txt

Deactivate the maintenance mode using a bat file:

@echo off

REM Maintenance Mode off

"C:\Program Files\vdogServer\VDogMasterService.exe" /at:s /rd:C:\vdServerArchive /maintenance:off

if ERRORLEVEL 1 ECHO "The attempt to take the server out of maintenance mode has failed." >> d:\log.txt

if ERRORLEVEL 0 ECHO "The server has been taken out of maintenance mode." >> d:\log.txt

 

Related topics
AdminClient -> Maintenance mode