It is currently 24 Oct 2018 5:00


Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Help on ctmcreate
PostPosted: 15 Oct 2009 12:05 
Offline
Nouveau
Nouveau
User avatar

Joined: 01 Nov 2007 12:00
Posts: 2
I am trying to build a script which utilizes ctmcreate with error catching. As an example,

ctmcreate adasdasdas
RC=${?}
if [ ${RC} -ne 0 ] ; then
echo "FAILED"
else
echo "SUCCESS"
fi
exit ${RC}

This should output FAILED and exit with a number other than 0 as the ctmcreate statement is wrong but it always would output SUCCESS and 0.. Please help.

Please tell me how I could catch all possible errors with the ctmcreate statement and exit with a number other than 0 if wrong..

Thanks.



Even this fails..


[xxxxx@ethp1234:/home/xxxxx]
$ ctmcreate asdadad
Invalid parameter:
usage: ctmcreate
….
..


[xxxxx@ethp1234:/home/xxxxx]
$ echo $?
0


Top
   
 Post subject:
PostPosted: 15 Oct 2009 12:58 
Offline
Nouveau
Nouveau
User avatar

Joined: 03 Jan 2008 12:00
Posts: 52
Bobby, which version of the agent and server are you running? I am running a 6.3 and 6.4 server with 6.3 agents. A ctmcreate issued at either the agent or server side does issue an RC of 1 upon on unsuccessful run.

I would verify that your server and agents are fully patched. If that is the case, I would open a case with BMC.


Top
   
 Post subject:
PostPosted: 18 Oct 2009 2:46 
Offline
Nouveau
Nouveau
User avatar

Joined: 01 Nov 2007 12:00
Posts: 2
Hi,

I am using 6.1.0.3. If this version of Ctrlm does not issue return codes, what can I do to catch the erros of ctmcreate within the script?


Top
   
 Post subject:
PostPosted: 19 Oct 2009 9:11 
Offline
Nouveau
Nouveau
User avatar

Joined: 20 Jan 2006 12:00
Posts: 473
Hi,

A ctmcreate (with no parameters) executed from the agent or the server return an RC=1 upon on unsuccessful run.

Version tested:

V6.1.03.xxx

Control-M/Server Solaris 6.1.03.400 rc=1
Control-M/Agent Solaris 6.1.03.301 rc=1
Control-M/Agent AIX 6.1.03.300 rc=1

V6.3.01.xxx

Control-M/Server Solaris 6.3.01.500 rc=1
Control-M/Server AIX 6.3.01.401 rc=1

Control-M/Agent Solaris 6.3.01.400 rc=1
Control-M/Agent AIX 6.3.01.400 rc=1

_________________
Best regards
Walty


Top
   
 Post subject:
PostPosted: 23 Sep 2012 8:07 
Offline
Nouveau
Nouveau
User avatar

Joined: 22 Sep 2012 12:00
Posts: 14
It could be the number of batch slots (or no. of concurrent jobs you can run at one time), or the number of (. ..... In which all way Control M is better than other tools? ...... just modified the batch file to just do one thing:<br> <br> exit 0<br

_________________
Overseas education consultants


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved