Hi Zhu Qiang,

Unless I am mistaken, it looks like the command “dump_ops_in_flight” is only 
available as an admin-socket command:
https://github.com/ceph/ceph/blob/master/src/osd/OSD.cc#L1371-L1373

The commands available to ceph-rest-api are, to my knowledge, usually declared 
like so: https://github.com/ceph/ceph/blob/master/src/mon/MonCommands.h

I put the ceph-devel mailing list in copy, perhaps someone else knows if there 
is another way to retrieve that information.

--
David Moreau Simard

On Jul 24, 2014, at 4:48 AM, zhu qiang <[email protected]> wrote:

> Hello Mr. Simard
> 
> 
> I want to use ceph-rest-api to view some debug details from ceph daemons.
> On linux shell I can get this message from below:
> # ceph daemon osd.0 dump_ops_in_flight | python -m json.tool
>   { "num_ops": 0,
>   "ops": []}
> 
> This is my question:
> Can I get this output from ceph-rest-api ?
> 
> Until now I tried some method : curl, python-cephclient ,but I did not get 
> the right respone.
> 
> Best regarding.
> 
> 
> 

N�����r��y����b�X��ǧv�^�)޺{.n�+���z�]z���{ay�ʇڙ�,j��f���h���z��w���
���j:+v���w�j�m��������zZ+�����ݢj"��!�i

Reply via email to