Hi, Abhishek: The Management API was introduced in MarkLogic 5, so, no, you can't use the Management API on 4.2-7.
There are many benefits to upgrading to MarkLogic 6, but if that's impossible, you could create an app server with an endpoint that returns xdmp:server-status(). Erik Hennum ________________________________________ From: [email protected] [[email protected]] On Behalf Of Abhishek53 S [[email protected]] Sent: Wednesday, November 21, 2012 11:17 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Task Server Monitoring - Unix Shell Script Hi Erik, One challenge, currently I am using 4.2-7 version of Marklogic and I think the management API will not work below ML 5? I am getting 404 excepion with the URL. Please suggest!!! Thanks Abhishek Srivastav Tata Consultancy Services Cell:- +91-9883389968 Mailto: [email protected]<mailto:[email protected]> Website: http://www.tcs.com<http://www.tcs.com/> ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ [email protected] wrote: ----- To: MarkLogic Developer Discussion <[email protected]> From: Erik Hennum <[email protected]> Sent by: [email protected] Date: 11/22/2012 12:17AM Subject: Re: [MarkLogic Dev General] Task Server Monitoring - Unix Shell Script Hi, Abhishek and Geert: The Management REST API provides a status view for the task server. For instance, on the localhost, you would request this information for the Default group with a GET on the following URL: http://localhost:8002/manage/v1/servers/TaskServer/status?group-id=Default&format=xml You must authenticate as a user that has the manage-user role. You can use the format URI parameter to control whether the response is XML, JSON, or HTML. Hoping that's useful, Erik Hennum ________________________________________ From: [email protected] [[email protected]] On Behalf Of Abhishek53 S [[email protected]] Sent: Wednesday, November 21, 2012 9:57 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Task Server Monitoring - Unix Shell Script Thanks Geert, Can you please refer the link for built-in-functions in xmlns? Thanks Abhishek Srivastav Tata Consultancy Services Cell:- +91-9883389968 Mailto: [email protected]<mailto:[email protected]> Website: http://www.tcs.com<http://www.tcs.com/><http://www.tcs.com/> ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ [email protected] wrote: ----- To: MarkLogic Developer Discussion <[email protected]> From: Geert Josten <[email protected]> Sent by: [email protected] Date: 11/21/2012 07:27PM Subject: Re: [MarkLogic Dev General] Task Server Monitoring - Unix Shell Script Hi Abishek, You could use wget to access either the relevant Admin interface page, and scrape that with some awk of some sorts. Or do a wget to the management api. I believe that server status should be supported, so task server as well.. Or perhaps David has some interesting built-in feature in xmlsh that might be useful? Kind regards, Geert Van: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] Namens Abhishek53 S Verzonden: woensdag 21 november 2012 10:32 Aan: MarkLogic Developer Discussion Onderwerp: [MarkLogic Dev General] Task Server Monitoring - Unix Shell Script Hi All, Is there any way (Shell Script) to monitor Marklogic Task Server Queue size at unix command level? I need to automate the task server queue monitoring . Please Suggest!!! Thanks Abhishek Srivastav Tata Consultancy Services Cell:- +91-9883389968 Mailto: [email protected]<mailto:[email protected]> Website: http://www.tcs.com<http://www.tcs.com/><http://www.tcs.com/> ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
