Changeset 11849
- Timestamp:
- 08/08/11 17:28:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/CheckNTPDate.sh
r11848 r11849 5 5 # 6 6 7 offset=` ntpdate -d ptbtime1.ptb.de 2>/dev/null | grep '^offset*' | cut -d' ' -f2`7 offset=`/usr/sbin/ntpdate -d ptbtime1.ptb.de 2>/dev/null | grep '^offset*' | cut -d' ' -f2` 8 8 query="INSERT NTPDate set fOffset="$offset", fMachineKEY=(SELECT fMachineKEY from Machine WHERE fMachineName='"$HOSTNAME"'), fTime=Now()" 9 # echo $query10 /usr/bin/mysql -u systemstatus --host=fact01 SystemStatus -e "$query"9 # host needs full address to work also on fact01 10 /usr/bin/mysql -u systemstatus --host=fact01.ethz.ch SystemStatus -e "$query" 11 11 12 12
Note:
See TracChangeset
for help on using the changeset viewer.