ctmlog utility

A lot of scripts ans example to extract information from Control-M tools.
Post Reply
User avatar
Challa
Nouveau
Nouveau
Posts: 2
Joined: 27 Aug 2009 12:00

ctmlog utility

Post by Challa » 27 Aug 2009 10:12

Hello,

I am new to Control M, Can some one please help understand below.

Background : I have around 200+ jobs ( with Group Scheduling ) in one table and they should run every day with 2 hrs interval i.e. 12 runs in a day, eg : 01:00 GMT, 03:00 GMT ....

Ordering : We are using below command for ordering 01:00 GMT schedule.

" ctmorder -SCHEDTAB DS1PHM__ME_C -JOBNAME "*" -HOLD n -ODATE %%CENT.%%OYEAR.%%OMONTH.%%ODAY -autoedit %%#APPLGROUP DS1PHM__0100_ME_C "

After successfull completion of each schedule by using below command we are generating the log file.

ctmlog listmsg 5100 %%%%APPLGROUP._START %%CENT.%%DATE.%%BLANK1.%%ENDTIME | grep 5100 |grep DS1P |grep FSS |grep _C | mailx -s %%JOBNAME %%MAILDEST

Can some one help me to understand above ctmlog command.

What they are trying to do with above command.

Regards

Challa

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

Post by philmalmaison » 31 Aug 2009 3:30

Control-m Server Admin guide / utilities part / ctmlog

on page 195

The ctmlog utility creates a report from entries in the CONTROL-M log or deletes
entries in the CONTROL-M log.
Specify one of the following commands to invoke the ctmlog utility:
ctmlog <action> <actionOption> \
<fromDate> <fromTime> <toDate> <toTime> \
[<output> [<reportWidth>] ]
ctmlog <action> <actionOption> "*" \
[<output> [<reportWidth>] ]
Valid values for <action> and <actionOption> are listed in Table 55. All other
parameters of this utility are described in Table 56.

The following command produces a report of all entries in the CONTROL-M log
between 10:00 A.M. March 12, 2002 and 8:00 A.M. March 14, 2002. The report is
output to file rprt.txt in 80-column format:

ctmlog list 20020312 1000 20020314 0800
~<controlm_owner>/ctm_server/user1/rprt.txt


regards
philmalmaison

User avatar
Challa
Nouveau
Nouveau
Posts: 2
Joined: 27 Aug 2009 12:00

ctmlog utility

Post by Challa » 15 Sep 2009 9:29

Hi philmalmaison,

Thank you very much.

Using ctmlog utility, is it possible to restrict the log based on group id. means I want o list the job run time only for the job which are in that particulat Group.

Regards

Challa

User avatar
markf
Nouveau
Nouveau
Posts: 134
Joined: 13 Jul 2006 12:00
Location: Switzerland
Contact:

Post by markf » 15 Sep 2009 10:43

This is best done with a 'fine tuning' of your grep statements.

User avatar
PGUNX
Nouveau
Nouveau
Posts: 3
Joined: 14 Jan 2010 12:00

Post by PGUNX » 14 Jan 2010 4:42

the best way is ctmlog listord <orderid> "*"

Post Reply