It's all about the answers!

Ask a question

Reset server using API


Michele Pegoraro (1.8k14119103) | asked Dec 23 '11, 9:58 a.m.
edited Jul 25 '13, 3:46 a.m. by Krzysztof Kaźmierczyk (7.5k480103)
Hi,
is there a way to request server reset using REST or Plain Java API?

Thanks,
Michele.

Accepted answer


permanent link
SEC Servizi (97123860) | answered Aug 06 '14, 10:52 a.m.
It seems class com.ibm.team.repository.provision.internal.restcmd.ResetOSGiRestCommand could be used...
Michele Pegoraro selected this answer as the correct answer

Comments
Michele Pegoraro commented Aug 06 '14, 12:10 p.m.

Great! I'll try it. Thanks Davide ;-) 

One other answer



permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered Jul 25 '13, 3:46 a.m.
Hi Michele,
CLM server itself does not provide this function. I do not expect that Tomcat support that function (unless there is a defect there :)) Also didn't find this function in WAS. You might consider WAS support for that.

Best regards,
Krzysztof Kazmierczyk

Comments
Michele Pegoraro commented Aug 01 '13, 3:24 a.m.

I'm a little bit confused: I was thinking that this is not a WAS/tomcat task. I'm talking about that RESET button on the https://localhost:9443/ccm/admin?internal#action=com.ibm.team.repository.admin.serverReset url. Is this a CLM function, isn't it? 


Thanks,
Michele.


Krzysztof Kaźmierczyk commented Aug 01 '13, 3:39 a.m. | edited Feb 17 '14, 7:32 a.m.

Hi Michele,
Yes, there is reset button but it does not reset server. The button sets the flag to reset calculating bundles when the server is restarted next time. This is useful when you install any hotfix.
I have created a defect some time ago about confusing name: https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=170900. Anywya it has been closed with the explanation that this is internal page and you must know how to access it first.
Feel free to comment in the bug your own confusion.

Best regards,
Krzysztof Kazmierczyk


Michele Pegoraro commented Aug 01 '13, 3:50 a.m.

Ok, this is clear for me. I use this function in order to provide server extension. I was looking for a method to launch this "reset" in order to create an automatic deploy script for RTC so I can deploy my extensions automatically. I've seen that this function removes a single file  (built-on.txt) from tomcat/was. This seems to work but sometimes if I remove this file and restart the server I have some problem with the shutdown phase (with tomcat), so I was wondering if it does something else. Generally I think that it would be better if there was an API method (REST or JAVA) to call this functionality.

Thanks for the link to the defect.

 


sam detweiler commented Aug 06 '14, 1:30 p.m.

why can't you call the requestreset http function?

https://server:port/ccm/admin/requestReset

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.