Set-DFSServerClient: Integration Prüflogik für Serververfügbarkeit
This commit is contained in:
parent
49eefd4b7b
commit
d100e0189a
@ -1,4 +1,4 @@
|
|||||||
@ECHO OFF
|
@ECHO OFF
|
||||||
REM ----------------------------------------------------------------------------
|
REM ----------------------------------------------------------------------------
|
||||||
REM Copyright (c) 2024 by Digital Data GmbH
|
REM Copyright (c) 2024 by Digital Data GmbH
|
||||||
REM
|
REM
|
||||||
@ -6,8 +6,8 @@ REM Digital Data GmbH • Ludwig-Rinn-Strasse 16 • D-35452 Heuchelheim
|
|||||||
REM Tel.: 0641/202360 • E-Mail: info-flow@digitaldata.works
|
REM Tel.: 0641/202360 • E-Mail: info-flow@digitaldata.works
|
||||||
REM ----------------------------------------------------------------------------
|
REM ----------------------------------------------------------------------------
|
||||||
REM Creation Date / Author: 06.01.2024 / MK
|
REM Creation Date / Author: 06.01.2024 / MK
|
||||||
REM Version Date / Editor: 27.02.2024 / MK
|
REM Version Date / Editor: 08.10.2024 / MK
|
||||||
REM Version Number: 1.1.0.0
|
REM Version Number: 1.2.0.0
|
||||||
|
|
||||||
pushd "%~dp0"
|
pushd "%~dp0"
|
||||||
|
|
||||||
@ -17,13 +17,34 @@ SET DFSRSERVERPATH=\\DD-STO01\DD-STO01-A2$
|
|||||||
|
|
||||||
ping -n 1 %DFSRSERVER% >nul
|
ping -n 1 %DFSRSERVER% >nul
|
||||||
IF %errorlevel% equ 0 (
|
IF %errorlevel% equ 0 (
|
||||||
ECHO Der Server %DFSRSERVER%, ist erreichbar!
|
ECHO Der primäre Server %DFSRSERVER%, ist erreichbar!
|
||||||
dfsutil.exe client property state active %DFSRROOTPATH%\ArchivedObjects %DFSRSERVERPATH%\ArchivedObjects
|
SET DFSRSERVERPATH=\\DD-STO01\DD-STO01-A2$
|
||||||
dfsutil.exe client property state active %DFSRROOTPATH%\ServerObjects %DFSRSERVERPATH%\ServerObjects
|
GOTO :SetDFSR
|
||||||
dfsutil.exe client property state active %DFSRROOTPATH%\SharedObjects %DFSRSERVERPATH%\SharedObjects
|
|
||||||
dfsutil.exe client property state active %DFSRROOTPATH%\UserObjects %DFSRSERVERPATH%\UserObjects
|
|
||||||
) else (
|
) else (
|
||||||
ECHO Der Server %DFSRSERVER%, ist nicht erreichbar!
|
ECHO Der primäre Server %DFSRSERVER%, ist nicht erreichbar!
|
||||||
|
SET DFSRSERVERPATH=\\DD-VMP09-STO01\DD-VMP09-STO01-A3-ZFS$
|
||||||
|
SET DFSRSERVER=172.24.11.92
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ping -n 1 %DFSRSERVER% >nul
|
||||||
|
IF %errorlevel% equ 0 (
|
||||||
|
ECHO Der sekundäre Server %DFSRSERVER%, ist erreichbar!
|
||||||
|
SET DFSRSERVERPATH=\\DD-VMP09-STO01\DD-VMP09-STO01-A3-ZFS01$
|
||||||
|
GOTO :SetDFSR
|
||||||
|
|
||||||
|
) else (
|
||||||
|
ECHO Der sekundäre Server %DFSRSERVER%, ist nicht erreichbar!
|
||||||
|
ECHO DFSR Server kann nicht gesetzt werden!
|
||||||
|
GOTO :EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
:SetDFSR
|
||||||
|
dfsutil.exe client property state active %DFSRROOTPATH%\ArchivedObjects %DFSRSERVERPATH%\ArchivedObjects
|
||||||
|
dfsutil.exe client property state active %DFSRROOTPATH%\ServerObjects %DFSRSERVERPATH%\ServerObjects
|
||||||
|
dfsutil.exe client property state active %DFSRROOTPATH%\SharedObjects %DFSRSERVERPATH%\SharedObjects
|
||||||
|
dfsutil.exe client property state active %DFSRROOTPATH%\UserObjects %DFSRSERVERPATH%\UserObjects
|
||||||
|
|
||||||
|
:EOF
|
||||||
timeout /t 10
|
timeout /t 10
|
||||||
exit
|
exit
|
||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user