It's all about the answers!

Ask a question

JazzMon: How to get the info contained in ServerInfo.xml


Kevin Ramer (4.4k6164186) | asked Aug 15 '12, 8:55 a.m.
Hi,

Been toying with JazzMon a bit and while I haven't "put it to good use" I did notice that in the runtime for each server configured there is a ServerInfo.xml written (once) that contains the basics of what one sees on the Status page on any Jazz Application Administration.   I've been hunting about on jazz.net and found 1 reference to 'getServerInfo' mentioning the REST API

com.ibm.team.repository.service.internal.IServerStatusRestService

Q:  Is it possible to retrieve this document in 'oslc' fashion (i.e. using http client and the appropriate URI) ?

I could see doing this to monitor JVM use by each application server over time.

TIA

Accepted answer


permanent link
Ryan Smith (562) | answered Aug 15 '12, 9:48 a.m.
JAZZ DEVELOPER
Kevin,

Yes you can get this xml file with a simple http call.  If you have an active login to a jazz server you can point your browser to this URL and see it for yourself.

https://<server>:<port>/<app>/service/com.ibm.team.repository.service.internal.IServerStatusRestService/ServerInfo

All we really do with JazzMon is do an http get at that URL and dump it to a file. 
Kevin Ramer selected this answer as the correct answer

Comments
Kevin Ramer commented Aug 15 '12, 9:51 a.m. | edited Aug 15 '12, 9:54 a.m.

That is 100% awesome.   I was close in my guesses, but not quite.

Your answer


Register or to post your answer.