-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit_queue_commvault.bat
More file actions
57 lines (48 loc) · 1.87 KB
/
submit_queue_commvault.bat
File metadata and controls
57 lines (48 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo OFF
rem Forces the use of West European Latin
chcp 1252 > nul
rem Include the PowerShell binary directory in the PATH
set PATH_PYTHON=C:\Users\Jdoe\AppData\Local\Programs\Python\Python311\
set PATH=%PATH_PYTHON%;%PATH%
call submit_aff.bat %*
echo _______________________________________________________________________
echo Start of execution ...
date /T
echo %time:~+0,8%
echo _______________________________________________________________________
rem Test Mode
if "%TOM_JOB_EXEC%" == "TEST" (
echo Job execute in Test mode
%ABM_BIN%\tsend -sT -r0 -m"Job finished (TEST mode)"
%ABM_BIN%\vtgestlog
goto FIN
)
echo.
rem :LAUNCH
echo %PATH_PYTHON%\python %ABM_BIN%\vtom-commvault_backup-jobs.py --host %1 --client %2 --backup-set %3 --port %4 --use-ssl %5 --subclient %6 --username %7 --password %8 --config-file %9 --check-interval %10 --timeout %11 --verbose %12
%PATH_PYTHON%\python %ABM_BIN%\vtom-commvault_backup-jobs.py --host %1 --client %2 --backup-set %3 --port %4 --use-ssl %5 --subclient %6 --username %7 --password %8 --config-file %9 --check-interval %10 --timeout %11 --verbose %12
set RETCODE=%ERRORLEVEL%
if %RETCODE% equ 0 goto FINISHED
goto ERROR
:ERROR
%ABM_BIN%\tsend -sE -r%RETCODE% -m"Job in error (%RETCODE%)"
%ABM_BIN%\vtgestlog
echo _______________________________________________________________________
echo End of execution
date /T
echo %time:~+0,8%
echo Exit [%RETCODE%] No acknowledgment
echo _______________________________________________________________________
if not "%TOM_LOG_ACTION%"==" " call Gestlog_wnt.bat
exit %RETCODE%
:FINISHED
%ABM_BIN%\tsend -sT -r%RETCODE% -m"Job finished (%RETCODE%)"
%ABM_BIN%\vtgestlog
echo _______________________________________________________________________
echo End of execution
date /T
echo %time:~+0,8%
echo Exit [%RETCODE%] Acknowledgement
if not "%TOM_LOG_ACTION%"==" " call Gestlog_wnt.bat
exit %RETCODE%
:END