It's all about the answers!

Ask a question

How to start command line adapter in RQM from configurations saved in config.ini file?


Shuchita Tripathi (31436595) | asked Jul 26 '13, 11:09 a.m.

I am able to start command line adapter from this command (start.bat -repository https://rqm:9443/jazz -user ADMIN -password ADMIN -adapter RQMAdapter -projectArea Quality+Manager -configFile config.ini)

These configurations are saved in config.ini file.

I read in ReadMe text file,

"To restart the command line adapter, if it has registered with the server before

Windows: run the batch file without any arguments:

C:\ start.bat"

But when i try to start the command line adapter again, using the saved paramenters in config.ini, its says "Must specify -repository, invalid arguments"

Please guide on how to proceed with starting CLA with config.ini file.

Accepted answer


permanent link
Stephane Leroy (1.4k149) | answered Jul 29 '13, 6:00 a.m.
JAZZ DEVELOPER
edited Jul 29 '13, 6:55 a.m.
Hi Shuchita,

readme.txt provided with Command-Line adapter states that it uses Config2.ini file for restarting without parameters. You're currently using config.ini which causes the "start.bat" batch script to ask for parameters to run.
In short: to solve your problem, make sure you use Config2.ini

Regards,
Stéphane


Shuchita Tripathi selected this answer as the correct answer

One other answer



permanent link
Shuchita Tripathi (31436595) | answered Jul 29 '13, 8:52 a.m.
Hi Stephane,

Thanks for your reply.

However, i got the way to start CLA using config file.

The command is

start.bat -configFile config.ini

Comments
Stephane Leroy commented Jul 29 '13, 9:03 a.m.
JAZZ DEVELOPER

Shuchita,

If you're OK to pass such parameter to start.bat script, you found the right solution.
Glad to hear your problem is solved now.

Regards,
Stéphane


Shuchita Tripathi commented Jul 29 '13, 9:50 a.m.

Hi Stephane,

Can you guide me on how to use only start.bat?
I am not able to find config2.ini in my CLA folder.


Stephane Leroy commented Jul 29 '13, 10:11 a.m.
JAZZ DEVELOPER

Based on my experience with 4.0.3 CLA, you'd need :
1) to delete previous config.ini (Note: it's ALWAYS a good idea to copy them  somewhere before -  just in case you'd want to revert...).
2) run start.bat with full options. Note: this should have created a Config2.ini file
3) Check your CLA adapter appears as running in RQM Adapter console.
4) Stop your CLA adapter
5) run start.bat with no additional options.


Shuchita Tripathi commented Jul 30 '13, 3:44 a.m.

Thanks Stephane,

My problem got resolved. I am able to start CLA by just using start.bat.

Just one query, is it name specific? That is  if the name of config file is 'Config2.ini', only then it will work? No other name will make start.bat work directly?


1
Stephane Leroy commented Jul 30 '13, 4:08 a.m.
JAZZ DEVELOPER

That's a good news Shuchita !
I believe Config2.ini is required for unparametrized batch calls. If you find a trick to make it possible more generally, I would be happy to learn about it.
Regards,


Shuchita Tripathi commented Jul 30 '13, 11:21 a.m.

Thanks a lot!!
Will surely post if I get something.

showing 5 of 6 show 1 more comments

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.