Hi guys,
I am getting error when i try to backup TDP SAP through TSM scheduler service.But when i execute the script in client end its working fine & taking the backup.
* It seems like schedule object is opening the script line but it failed to execute the command in script.
*I gave full permission to the script.
Please help me to fix the issue .
########################################################################
huxd0025:/usr/tivoli/tsm/client/ba/bin# ls -lrt
-rwxrwxrwx 1 root system 174 29 Aug 15:56 sap_weekly_FCQ.sh
########################################################################
huxd0025:/usr/tivoli/tsm/client/ba/bin# cat sap_weekly_FCQ.sh
#!/bin/ksh
# Full DB2 online backup, including logs
su - db2fcq -c "/usr/tivoli/tsm/tdp_r3/db264/backom -c b_db -a FCQ -B 12 -S 4 -P 8 -e /db2/FCQ/dbs/initFCQ_WEEKLY.utl -O"
##########################################################################
dsmsched.log:
30/08/13 09:41:22 TSM Backup-Archive Client Version 5, Release 5, Level 1.13
30/08/13 09:41:22 Querying server for next scheduled event.
30/08/13 09:41:22 Node Name: FCQ_SAP_WEEKLY
30/08/13 09:41:22 Session established with server TSM_BLUE: AIX-RS/6000
30/08/13 09:41:22 Server Version 5, Release 5, Level 5.0
30/08/13 09:41:22 Server date/time: 30/08/13 09:41:22 Last access: 30/08/13 08:41:22
30/08/13 09:41:22 --- SCHEDULEREC QUERY BEGIN
30/08/13 09:41:22 --- SCHEDULEREC QUERY END
30/08/13 09:41:22 Next operation scheduled:
30/08/13 09:41:22 ------------------------------------------------------------
30/08/13 09:41:22 Schedule Name: @879
30/08/13 09:41:22 Action: Command
30/08/13 09:41:22 Objects: /usr/tivoli/tsm/client/ba/bin/sap_weekly_FCQ.sh
30/08/13 09:41:22 Options:
30/08/13 09:41:22 Server Window Start: 09:20:16 on 30/08/13
30/08/13 09:41:22 ------------------------------------------------------------
30/08/13 09:41:22
Executing scheduled command now.
30/08/13 09:41:22
Executing Operating System command or script:
/usr/tivoli/tsm/client/ba/bin/sap_weekly_FCQ.sh
30/08/13 09:41:22 Finished command. Return code is: 1
30/08/13 09:41:22 ANS1909E The scheduled command failed.
30/08/13 09:41:22 ANS1512E Scheduled event '@879' failed. Return code = 1.
30/08/13 09:41:22 Sending results for scheduled event '@879'.
30/08/13 09:41:22 Results sent to server for scheduled event '@879'.
################################################################
query event:
Policy Domain Name: UPPS_LANF_ERP42DV
Schedule Name: @879
Node Name: FCQ_SAP_WEEKLY
Scheduled Start: 30/08/13 09:20:16
Actual Start: 30/08/13 09:41:22
Completed: 30/08/13 09:41:22
Status: Failed
Result: 1
Reason: Failed
###################################################################
query schedule:
tsm: TSM_BLUE>q sched * @879 f=d
Policy Domain Name: UPPS_LANF_ERP42DV
Schedule Name: @879
Description:
Action: Command
Options:
Objects: /usr/tivoli/tsm/client/ba/bin/sap_weekly_FCQ.sh
Priority: 1
Start Date/Time: 30/08/13 09:20:16
Duration: 5 Day(s)
Schedule Style: Classic
Period: One Time
Day of Week: Any
Month:
Day of Month:
Week of Month:
Expiration:
Last Update by (administrator): RAHAMED
Last Update Date/Time: 30/08/13 09:20:16
Managing profile:
#####################################################################
I am getting error when i try to backup TDP SAP through TSM scheduler service.But when i execute the script in client end its working fine & taking the backup.
* It seems like schedule object is opening the script line but it failed to execute the command in script.
*I gave full permission to the script.
Please help me to fix the issue .
########################################################################
huxd0025:/usr/tivoli/tsm/client/ba/bin# ls -lrt
-rwxrwxrwx 1 root system 174 29 Aug 15:56 sap_weekly_FCQ.sh
########################################################################
huxd0025:/usr/tivoli/tsm/client/ba/bin# cat sap_weekly_FCQ.sh
#!/bin/ksh
# Full DB2 online backup, including logs
su - db2fcq -c "/usr/tivoli/tsm/tdp_r3/db264/backom -c b_db -a FCQ -B 12 -S 4 -P 8 -e /db2/FCQ/dbs/initFCQ_WEEKLY.utl -O"
##########################################################################
dsmsched.log:
30/08/13 09:41:22 TSM Backup-Archive Client Version 5, Release 5, Level 1.13
30/08/13 09:41:22 Querying server for next scheduled event.
30/08/13 09:41:22 Node Name: FCQ_SAP_WEEKLY
30/08/13 09:41:22 Session established with server TSM_BLUE: AIX-RS/6000
30/08/13 09:41:22 Server Version 5, Release 5, Level 5.0
30/08/13 09:41:22 Server date/time: 30/08/13 09:41:22 Last access: 30/08/13 08:41:22
30/08/13 09:41:22 --- SCHEDULEREC QUERY BEGIN
30/08/13 09:41:22 --- SCHEDULEREC QUERY END
30/08/13 09:41:22 Next operation scheduled:
30/08/13 09:41:22 ------------------------------------------------------------
30/08/13 09:41:22 Schedule Name: @879
30/08/13 09:41:22 Action: Command
30/08/13 09:41:22 Objects: /usr/tivoli/tsm/client/ba/bin/sap_weekly_FCQ.sh
30/08/13 09:41:22 Options:
30/08/13 09:41:22 Server Window Start: 09:20:16 on 30/08/13
30/08/13 09:41:22 ------------------------------------------------------------
30/08/13 09:41:22
Executing scheduled command now.
30/08/13 09:41:22
Executing Operating System command or script:
/usr/tivoli/tsm/client/ba/bin/sap_weekly_FCQ.sh
30/08/13 09:41:22 Finished command. Return code is: 1
30/08/13 09:41:22 ANS1909E The scheduled command failed.
30/08/13 09:41:22 ANS1512E Scheduled event '@879' failed. Return code = 1.
30/08/13 09:41:22 Sending results for scheduled event '@879'.
30/08/13 09:41:22 Results sent to server for scheduled event '@879'.
################################################################
query event:
Policy Domain Name: UPPS_LANF_ERP42DV
Schedule Name: @879
Node Name: FCQ_SAP_WEEKLY
Scheduled Start: 30/08/13 09:20:16
Actual Start: 30/08/13 09:41:22
Completed: 30/08/13 09:41:22
Status: Failed
Result: 1
Reason: Failed
###################################################################
query schedule:
tsm: TSM_BLUE>q sched * @879 f=d
Policy Domain Name: UPPS_LANF_ERP42DV
Schedule Name: @879
Description:
Action: Command
Options:
Objects: /usr/tivoli/tsm/client/ba/bin/sap_weekly_FCQ.sh
Priority: 1
Start Date/Time: 30/08/13 09:20:16
Duration: 5 Day(s)
Schedule Style: Classic
Period: One Time
Day of Week: Any
Month:
Day of Month:
Week of Month:
Expiration:
Last Update by (administrator): RAHAMED
Last Update Date/Time: 30/08/13 09:20:16
Managing profile:
#####################################################################
Last edited: