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).
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).
- 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 - Download DICLIENTS<XXXX>.SCA
- Extract the SCA file and navigate to:DEPLOYARCHIVES/tc~di~cmd_tools~sda.sda/di_cmd_tools.zip
- Extract di_cmd_tools.zip file to your local machine from where the NWDI server is also accessible.
Start the cmstool
- Start the command line tool (Start – Run… – cmd.exe)
- Enter the cmstool folder (e.g. „cd C:\di_cmd_tools\cmstool”)
- 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.
6. as result the command line prompt appears:
7. connect to DTR by entering the command “cd”
List and Release activities
- Consider an activity you created on the MII UI, in this example let’s call it demoactivity
- 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
The <software component> name can be figured using the command
:cms> lsc –developed
or from the DTR webui:
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
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.
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.
Ervin Szolke Thanks and Good Info !!!
Hi Nagarajan Kumarappan ,
I am glad to hear you find it helpful!
Cheers,
Ervin
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
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
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
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
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.
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