1. Home
  2. Knowledge Base
  3. Octoplant Server
  4. Tutorials
  5. CommandLine
  6. KB-126845: Activation and deactivation of maintenance mode

KB-126845: Activation and deactivation of maintenance mode

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:>`VDogMasterService.exe /at:s /rd :`vdServerArchive /maintenance:on

Enter the following command to turn off maintenance mode:

<Drive:>`VDogMasterService.exe /at:s /rd :`vdServerArchive /maintenance:off

Note

Paths containing blank spaces must be written in quotation marks.

Note

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.tx Action require
if ERRORLEVEL 1 ECHO “Error message” >> Log.tx Action faile

Examples

Activate the maintenance mode:

“C:Program FilesvdogServerVDogMasterService.exe” /at:s /rd:C:vdServerArchive /maintenance:on

Deactivate the maintenance mode:

“C:Program FilesvdogServerVDogMasterService.exe” /at:s /rd:C:vdServerArchive /maintenance:off

Activate the maintenance mode using a bat file:

@echo off

REM Maintenance mode on

“C:Program FilesvdogServerVDogMasterService.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 FilesvdogServerVDogMasterService.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


Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center