Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] what's command can easily and quickly sync configuration file?
- Date: Tue, 26 Nov 2013 08:03:51 -0800
- From: Ralph Finch <ralphmariafinch@xxxxxxxxx>
- Subject: Re: [HTCondor-users] what's command can easily and quickly sync configuration file?
In our all-Windows pool of about 20 machines we just use a batch script like this:
@echo off
REM copy DWR's condor_config[.local] to all condor machines
REM !!UPDATE THE LINE BELOW FOR LATEST MACHINE LIST!!
set MASTER=delta-mod
Rem ALL is all condor machines, minus the MASTER machine
set ALL=BDOMO-002 BDOMO-003 BDOMO-004 BDOMO-005 BDOMO-006 BDOMO-007 BDOMO-008 BDOMO-009 BDOMO-010 BDOMO-011 BDOMO-012 BDOMO-013 BDOMO-014 BDOMO-015 BDOMO-016 BDOMO-017 BDOMO-018 BDOMO-019 BDOMO-020 BDOMO-021 BDOMO-022
set CONDOR_DIR=\\delta-mod\ydrive\softwareupdates\condor
echo Copying condor_config to all machines
for %%M in (%ALL% %MASTER%) do (
if exist \\%%M\condor (
echo %%M
@copy /v /y %CONDOR_DIR%\DWR_condor_config \\%%M\condor\condor_config
if exist \\%%M\condor\condor_config.local @del /f/q \\%%M\condor\condor_config.local
)
)
echo Copy/rename DWR_CM_condor_config.local to %MASTER%
@copy /v/y %CONDOR_DIR%\DWR_CM_condor_config.local \\%MASTER%\condor\condor_config.local
echo All config files copied, reconfiguring HTCondor on all machines
condor_reconfig -all