Timezone mismatch in server date and autosyslog -e in Autosys Primary and Shadow schedulers
search cancel

Timezone mismatch in server date and autosyslog -e in Autosys Primary and Shadow schedulers

book

Article ID: 216587

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

The date from the 'autosyslog -e' log and the actual server date do not match:

The Primary scheduler is detecting timezone as Asia/Kolkata

The Shadow scheduler is detecting timezone as America/New_York

echo $TZ shows TZ is set to Asia/Kolkata in both the servers

ls -l /etc/localtime shows that it is soft linked to /usr/share/zoneinfo/Asia/Kolkata

Environment

Release : 12

Component : CA Workload Automation AE (AutoSys)

Resolution

Verified that the  event_demon environment was set to  TZ=America/New_York 

 ps -ef | grep event_demon

autosys  188701      1  0 Apr14 ?        03:42:15 event_demon -A PRD

# strings /proc/188701/task/188701/environ | grep TZ
TZ=America/New_York

Checked the shells scripts in autouser folder

autouser.PRD]# grep -i tz *
 
autosys.bash.XXXXX:TZ=Asia/Kolkata ; export TZ
autosys.csh.XXXXX:setenv TZ America/New_York
autosys.env.XXXXX:setenv TZ America/New_York
autosys.ksh.XXXXX:TZ=America/New_York ; export TZ
autosys.sh.XXXXX:TZ=America/New_York ; export TZ

The /etc/init.d/waae_sched.PRD  was sourcing  $AUTOUSER/autosys.sh.XXXXX  and only the bash script was updated correctly.

After updating the autosys.sh.XXXXX file the problem was resolved.