Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic SYNERGY (steve huntington)
Decrease font size
Increase font size
Topic Title: CM Synergy CLI from CS Trigger?
Topic Summary:
Created On: 22-Jun-2004 16:41
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Jean-Pierre LEIVA, on Friday, March 11, 2005 4:56 PM

Answer:
Hello,

With Change Synergy 4.3, you can execute triggers with CM Synergy CLI commands.
The problem is that all environment CM variables (I mean CCM_HOME, ...) are lost (=not visible) when you execute CS triggers.

Then, you must include in first position of your shell trigger script
the definition of all environment CM variables.
Example of definition :
CCM_HOME=... ; export CCM_HOME
CS_HOME=$CCM_HOME/... ; export CS_HOME
JAVA_HOME=$CCM_HOME/jre ; export JAVA_HOME
JETTY_HOME=$CS_HOME/cs_app ; export JETTY_HOME
LDAP_HOME=$CCM_HOME/cs_ldap ; export LDAP_HOME
PERL5LIB=$JETTY_HOME/webapps/synergy/WEB-INF/bin/lib; export PERL5LIB
-> (check for missing variables)


And it will work fine.

Hope help you.

Regards,
Jean-Pierre LEIVA.
 22-Jun-2004 16:41
User is offline View Users Profile Print this message


James H. Heimbach

Posts: 4
Joined: 21-May-2004

I would like to know if anybody has successfully executed CM Synergy CLI commands (e.g., ccm query, ccm changes (from HLQuery addon) etc.) from within a CS trigger. I am getting the following when I try to execute a "ccm ???" command.

ccm_init() failed.
addlib() failed for <ARG TOOBIG>.

Does anybody have any suggestions or an example of how they have done it? I am familiar with the CS API. That is not the problem. What I am doing, running a "ccm changes" command to obtain a report on the differences between two baselines, cannot be done via the CS API.

Jim Heimbach
Sprint
Report this to a Moderator Report this to a Moderator
 11-Aug-2004 14:46
User is offline View Users Profile Print this message


Jean-Pierre LEIVA

Posts: 5
Joined: 17-Dec-2003

Answer Answer
Hello,

With Change Synergy 4.3, you can execute triggers with CM Synergy CLI commands.
The problem is that all environment CM variables (I mean CCM_HOME, ...) are lost (=not visible) when you execute CS triggers.

Then, you must include in first position of your shell trigger script
the definition of all environment CM variables.
Example of definition :
CCM_HOME=... ; export CCM_HOME
CS_HOME=$CCM_HOME/... ; export CS_HOME
JAVA_HOME=$CCM_HOME/jre ; export JAVA_HOME
JETTY_HOME=$CS_HOME/cs_app ; export JETTY_HOME
LDAP_HOME=$CCM_HOME/cs_ldap ; export LDAP_HOME
PERL5LIB=$JETTY_HOME/webapps/synergy/WEB-INF/bin/lib; export PERL5LIB
-> (check for missing variables)


And it will work fine.

Hope help you.

Regards,
Jean-Pierre LEIVA.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic SYNERGY forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 15:34.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.