new recipients for TPC and GRP shuttle messages, both in test and production mode
[u/mrichter/AliRoot.git] / SHUTTLE / schema_prod / verify.sh
CommitLineData
e1cc576b 1#!/bin/bash
2
3if [ -z "$1" ]
4then
5 echo "Verifies if the LDAP entry corresponds to the entry in the file."
6 echo "Usage: verify.sh <3 DIGIT DET CODE>"
7 echo " verify.sh sys-[HLT|DCS|DAQ]"
8 echo " verify.sh global"
9 echo " verify.sh ALL"
10 exit
11fi
12
13case "$1" in
14 "global" ) SEARCH="name=globalConfig"; FILE="Global.ldif";;
15 "sys-HLT" ) SEARCH="system=HLT"; FILE="HLTsys.ldif";;
16 "sys-DAQ" ) SEARCH="system=DAQ"; FILE="DAQsys.ldif";;
17 "sys-DCS" ) SEARCH="system=DCS"; FILE="DCSsys.ldif";;
18 "ALL" ) LIST="EMC FMD HMP MCH MTR PHS PMD SPD SDD SSD TOF TPC TRD T00 V00 ZDC GRP ACO HLT global sys-HLT sys-DCS sys-DAQ"
19 for I in $LIST
20 do
21 echo "Checking $I"
22 ./verify.sh $I
23 done
24 exit
25 ;;
26 * ) SEARCH="det=$1"; FILE="$1.ldif";;
27esac
28
09ace248 29ldapsearch -H ldap://pcalishuttle02.cern.ch -x -b "$SEARCH,o=shuttle_prod,dc=cern,dc=ch" -L -L -L > verify.out
64e6e37d 30cat verify.out | ./unfoldlines.pl > verify1.out
e1cc576b 31
64e6e37d 32diff --ignore-space-change --ignore-blank-lines verify1.out $FILE | grep -v "> #" | grep -v '^0[a-z]'
e1cc576b 33
64e6e37d 34rm verify.out verify1.out