Syntax is the following:
curl -u admin:admin -X GET http://IP:PORT/system/console/jmx/com.adobe.granite.replication%3Aid%3D%22publishagentname%22%2Ctype%3Dagent
It gets all fields, to parse it, you can use the bellow
curl -u admin:admin -X GET http://IP:PORT/system/console/jmx/com.adobe.granite.replication%3Aid%3D%22publishagentname%22%2Ctype%3Dagent | grep "QueueNumEntries" | cut -d ">" -f5 | cut -d "<" -f1'
No comments:
Post a Comment