Skip to Content
Author's profile photo Ervin Szolke

Release activity using the cmstool

Intro
Often I can see that MII customers are having problem with the transport cycle, since releasing an activity is not offered by the MII User Interface but this action has to be carried out either using NWDS or the cmstool. In order to avoid the installation of a huge 1GB Developer Studio there is a simple way of releasing activities using the cmstool. This is what I intend to detail here.
Let’s start out from the assumption that an activity is already available created in the MII UI.
Let’s also assume that the activity has been activated so in order to hand over the activity to Consolidation for import we need to release the activity first.
Download the cmstool
cmstool is available on the service marketplace inside the SC DICLIENTS (this is valid as of 710, on older releases it is coming with the NWDS installation and available under the eclipse folder).
  1. Navigate to:
    http://service.sap.com/patches
    – Browse our Download Catalog
    – SAP NetWeaver and complementary products
    – SAP NetWeaver
    – SAP NETWEAVER 7.3
    – Entry by Component
    – Development Infrastructure
    – DI CLIENTS 7.30
    – # OS independent
  2. Download DICLIENTS<XXXX>.SCA
  3. Extract the SCA file and navigate to:DEPLOYARCHIVES/tc~di~cmd_tools~sda.sda/di_cmd_tools.zip
  4. Extract di_cmd_tools.zip file to your local machine from where the NWDI server is also accessible.
Start the cmstool
  1. Start the command line tool (Start – Run… – cmd.exe)
  2. Enter the cmstool folder (e.g. „cd C:\di_cmd_tools\cmstool”)
  3. Set the following environment variables:
          – set NWDITOOLLIB=..\lib
          – set JAVA_HOME=<your JDK> (e.g. set JAVA_HOME= c:\Program Files (x86)\Java\jdk1.6.0_37
   4. Invoke the tool (cmstool.bat)
   5. A log on prompt appears, please enter the corresponding data and press Enter.
/wp-content/uploads/2013/09/a_285821.png
     6. as result the command line prompt appears:
/wp-content/uploads/2013/09/b_285822.png
     7. connect to DTR by entering the command “cd”
/wp-content/uploads/2013/09/c_285827.png
List and Release activities
  1. Consider an activity you created on the MII UI, in this example let’s call it demoactivity
  2. Assuming you have activated this activity, it is possible to list this activity in cmstool as follows:
      :cms> la –s <software component> -w –u NWDI_DEV
/wp-content/uploads/2013/09/d_285828.png
      The <software component> name can be figured using the command
     :cms> lsc –developed
/wp-content/uploads/2013/09/e_285829.png
or from the DTR webui:
/wp-content/uploads/2013/09/f_285836.png
     3. Notice the activity ID you received, in this example 871b961521f511e39abe0000005e0a6a
     4. Release the activity as follows:
    :cms>rel -s sap.com_SAPNWDEMO -a „871b961521f511e39abe0000005e0a6a” –cap mydemoActivityJustReleased
/wp-content/uploads/2013/09/g_285837.png
      Note: if you use –cap  with quotes („”) e.g. –cap „my test activity” then you can create more user friendly activity names separated with spaces.
Hint: use help release to see how to use the command. The help also includes examples.
     5. Our last task is to go to the CMS webui, select the track, click on the Consolidation tab and Import the activity we have just released.
/wp-content/uploads/2013/09/h_285838.png

Assigned tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Ervin Szolke Thanks and Good Info !!!

      Author's profile photo Ervin Szolke
      Ervin Szolke
      Blog Post Author

      Hi Nagarajan Kumarappan ,

      I am glad to hear you find it helpful!

      Cheers,

      Ervin

      Author's profile photo Konstantin Chernega
      Konstantin Chernega

      Hello Ervin,

      Would it work for CM Services scenario when it's connected to CTS+? At activity release in NWDS a transport request is created in CTS+. Will the command line tool create the TR as well?

      Regards,

      Konstantin

      Author's profile photo Daniel Kordes
      Daniel Kordes

      Hi Konstantin,

       

      command line tool does only work for CMS. For CM Services there is no command line tool available. So for CM Services you need to use NWDS.

       

      Best regards,

      Daniel

      Author's profile photo Matthias Hollstein
      Matthias Hollstein

      Hello Ervin

      thank you for this helpful post.
      this is working fine!

      is there any possibility to use either NWDS or cmstool command lines to release activities?
      if DICILIENTS is deployed on NetWeaver, is there another GUI available, maybe?

      Thank you in advance

      Kind regards

      Matthias

      Author's profile photo Ervin Szolke
      Ervin Szolke
      Blog Post Author

      Hi Matthias,

      I am glad if my blog helped 🙂

      Of course, you can use NWDS to do that, here some hints in this other thread where exactly you can find that functionality https://answers.sap.com/questions/8992053/steps-for-release-in-nwds.html

      Here a more detailed product documentation on release: https://help.sap.com/viewer/267c4dbbcf8a417fb663916276438225/7.03.25/en-US/4912b71c9ba4105ee10000000a42189d.html

      I am not aware of other tools (only NWDS and the cmstool this blog addresses)

      I hope this helps.

      Regards,

      Ervin

       

      Author's profile photo DA ZHI YANG
      DA ZHI YANG

      How to connect CMS through character interface and execute "LSC, LS" command?

      run cmstool.bat

      connectcms -c <cms url (http://server:port)> -d <domainID> -t <trackID> -u <user> -p <pwd>;

      it quit ,cannot execute "lsc ls" command.

       

       

      Author's profile photo Viktor Romasz
      Viktor Romasz

      Hello Da Zhi Yang,

      Please find a command example below, regarding how to initiate the connection towards the CMS from the CLI client:

      cc -c http://10.10.10.10:50000 -d MAIN -t Basic -u user -p myPassword

      In addition please make sure that when you start the tool (cmstool.bat) you execute it with admin permissions. The tool will work properly only, if you run it as admin.

       

      Best Regards,

      Viktor