#! /bin/ksh # # It seems that PAS power on TC : ZIA58858 is most of the time followed by SWA_E_EXOS_LL_EVENT # # 2021-11-24T22:20:27.623 OK 2021-11-24T22:20:30.248 OK 2 TC(203,136) ZIA58858 PAS Power ON # # APID ( 99, 7) TM ( 5, 2) SEQ (02843,3) Size = 6 2021-11-24T22:20:34.498 : SID 43563 : SWA_E_EXOS_LL_EVENT # for DATE in $(PERIODE 2021-04-30 $(TODAY -1)) do SWA_TC $DATE | grep ZIA58858 if [ $? -eq 0 ] then echo "========================================================================================" SWA_EVENT $DATE | grep SWA_E_EXOS_LL_EVENT echo "========================================================================================" fi done