Logs to be checked for New Day Procedure in Control-M server

Everything about Control-M Server installation or setup.
Post Reply
User avatar
rickycrave
Nouveau
Nouveau
Posts: 17
Joined: 10 Nov 2008 12:00

Logs to be checked for New Day Procedure in Control-M server

Post by rickycrave » 08 May 2009 8:33

Hello Friends,

Can any one tell me the logs i have to check "What the New day procedure does in Control-M server". Actually I know the process what NDP does. But i want to check this process practically through logs in Control-M server.

My Control-M server is on UNIX.

Also one more issue is, After NDP, duplicate jobs are getting scheduled in our EM. For eg: Daily backup will be scheduled on one unix server through Control-M. But from last 2 days the daily backup is getting scheduled twice with different user dailies. I have also checked the Original definition file of the backup. It has been assigned with correct userdaily. How to investigate when we have this type of issues. If any one aware please reply to me.

Thanks in advance.

Regards,
Ricky

User avatar
Walty
Nouveau
Nouveau
Posts: 473
Joined: 20 Jan 2006 12:00

Post by Walty » 08 May 2009 1:21

Hi,
You can schedule every day one job to check the NDP.

- Execute <ctmlog> list yyyymmdd hhmm yyyymmdd hhmm /<your path>/<your file>
- Example in <your file> file search the duration for :

1) Cleanup procedure
cat <your file> | egrep 'NEW DAY PROCEDURE STARTED | CLEANUP STARTED' | cut -d "|" -f1,1,2,3,5,6,7,8

|0409|0115|00000|CD|5040|NEW DAY PROCEDURE STARTED
|0409|0115|00000|CD|5011|CONTROL-M LOG CLEANUP STARTED
|0409|0115|00000|CD|5014|CONTROL-M AGENTS CLEANUP STARTED
|0409|0115|00000|CD|5019|STATISTICS INFORMATION CLEANUP SARTED.
|0409|0116|00000|CD|5012|CONTROL-M JOBINF CLEANUP STARTED

2) Cleanup IOALOG
cat <your file> | egrep 'CONTROL-M LOG CLEANUP STARTED | CLEANUP ENDED. DAYS=2' | cut -d "|" -f1,1,2,3,5,6,7,8

|0409|0115|00000|CD|5011|CONTROL-M LOG CLEANUP STARTED
|0409|0115|00000|CD|5006|CONTROL-M LOG CLEANUP ENDED. DAYS=2

3) Cleanup STATISTICS
cat <your file> | egrep 'STATISTICS' | cut -d "|" -f1,1,2,3,4,5,6,7,8

|0409|0115|00000|CD|5019|STATISTICS INFORMATION CLEANUP STARTED.
|0409|0116|00000|CD|5034|STATISTICS INFORMATION CLEANUP ENDED. MODE=0. LEAVE=20

4) Duration SYSTEM DAILY
cat <your file> | egrep 'DAILY SYSTEM STARTED | DAILY SYSTEM ENDED' | cut -d "|" -f1,1,2,3,5,6,7,8

|0409|0116|00000|CD|5061|USER DAILY SYSTEM STARTED
|0409|0117|00000|CD|5062|USER DAILY SYSTEM ENDED

5) Duration specific user daily 'DAILY01'
cat <your file> | egrep 'DAILY daily01 STARTED | DAILY daily01 ENDED' | cut -d "|" -f1,1,2,3,5,6,7,8

|0409|0130|00000|UT|5061|USER DAILY daily01 STARTED
|0409|0146|00000|UT|5062|USER DAILY daily01 ENDED

6) Duration specific user daily 'DAILY02'
cat <your file> | egrep 'DAILY daily02 STARTED | DAILY daily02 ENDED' | cut -d "|" -f1,1,2,3,5,6,7,8

|0409|1610|00000|UT|5061|USER DAILY daily02 STARTED
|0409|1613|00000|UT|5062|USER DAILY daily02 ENDED

7) Duration specific user daily 'DAILY04'
cat <your file> | egrep 'DAILY daily04 STARTED | DAILY daily04 ENDED' | cut -d "|" -f1,1,2,3,5,6,7,8

|0409|1403|00000|UT|5061|USER DAILY daily04 STARTED
|0409|1408|00000|UT|5062|USER DAILY daily04 ENDED

I hope this helps someone
Best regards
Walty

User avatar
rickycrave
Nouveau
Nouveau
Posts: 17
Joined: 10 Nov 2008 12:00

Post by rickycrave » 11 May 2009 12:58

Hi Walty,

Thanks for your reply and good information provided to me.
Yes its very helpfull to me.

Regards,
Ricky crave

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 12 May 2009 9:17

you can also retreive anything using the error message in control-m server (~/ctm<_server>/data/dbs_msgtbl and debug one
Each process use it's letter and it's message number in ctm log.
So you can developp what you want ...

for new day procedure / userdaily / ... it's CD

as following exemple :
saptesvg3-controlm [3] more dbs_msgtbl
4000 Order Validity Error
4001 A mandatory parameter (%s) is missing
4002 Invalid value for parameter %s
4003 NoDuplication is valid if InGroupOrderId is {group orderid}|LAST
4004 The specified table (%s) cannot be found
4005 The specified jobname (%s) cannot be found, or incorrect job SeqNo
4006 Date specified (%s) is illegal, or its format invalid yyyymmdd
4007 OdateOption cannot be RUN_DATE when Odate is set to the past
4008 None of the jobs can be submitted with the requested Odate
4009 Group entity cannot be ordered with the requested Odate
4010 InGroupOrderId should not be specified with regular table
4011 AutoEdit Var APPLGROUP valid if InGroupOrderId is {empty}|NEWG
4012 AutoEdit Var MEMLIB is invalid when ordering all jobs from a table
4020 The specified Order Id (%s) was not found
4021 CONTROL-M/Server is not ready to process such requests
4022 Internal Error occurred and the request failed


regards
philmalmaison

Post Reply