Print

Print


no, it returns also the space : 
/usr/bin/xrdfs storage02.spacescience.ro:1094 query stats p
<statistics tod="1487800443" ver="v4.5.0" src="storage02.spacescience.ro:1094" tos="1487692103" pgm="xrootd" ins="server" pid="27477" site="ALICE::ISS::FILE"><stats id="xrootd"><num>3046</num><ops><open>4479</open><rf>0</rf><rd>2010585</rd><pr>0</pr><rv>13107</rv><rs>3130419</rs><wr>735</wr><sync>0</sync><getf>0</getf><putf>0</putf><misc>8927</misc></ops><sig><ok>0</ok><bad>0</bad><ign>0</ign></sig><aio><num>0</num><max>0</max><rej>0</rej></aio><err>29</err><rdr>0</rdr><dly>0</dly><lgn><num>3046</num><af>0</af><au>3046</au><ua>0</ua></lgn></stats><stats id="ofs"><role>server</role><opr>0</opr><opw>0</opw><opp>0</opp><ups>0</ups><han>0</han><rdr>0</rdr><bxq>0</bxq><rep>0</rep><err>0</err><dly>0</dly><sok>0</sok><ser>0</ser><tpc><grnt>0</grnt><deny>0</deny><err>0</err><exp>0</exp></tpc></stats><stats id="oss" v="2"><paths>1<stats id="0"><lp>"/"</lp><rp>"/storage01/xrdnamespace/home/aliprod/data/"</rp><tot>9612255148</tot><free>206514524</free><ino>1220706304</ino><ifr>1220103627</ifr></stats></paths><space>1<stats id="0"><name>public</name><tot>19224510296</tot><free>420993584</free><maxf>214479060</maxf><fsn>2</fsn><usg>3034571</usg></stats></space></stats></statistics>

and for redirector : 
/usr/bin/xrdfs rd.spacescience.ro:1094 query stats p
<statistics tod="1487800433" ver="v4.5.0" src="rd.spacescience.ro:1094" tos="1487438802" pgm="xrootd" ins="manager" pid="16107" site="ALICE::ISS::FILE"><stats id="xrootd"><num>538007</num><ops><open>967816</open><rf>0</rf><rd>0</rd><pr>0</pr><rv>0</rv><rs>0</rs><wr>0</wr><sync>0</sync><getf>0</getf><putf>0</putf><misc>991361</misc></ops><sig><ok>0</ok><bad>0</bad><ign>0</ign></sig><aio><num>0</num><max>0</max><rej>0</rej></aio><err>336016</err><rdr>984600</rdr><dly>172783</dly><lgn><num>538003</num><af>0</af><au>0</au><ua>538003</ua></lgn></stats><stats id="ofs"><role>manager</role><opr>0</opr><opw>0</opw><opp>0</opp><ups>0</ups><han>0</han><rdr>984600</rdr><bxq>0</bxq><rep>7929</rep><err>336016</err><dly>172783</dly><sok>0</sok><ser>0</ser><tpc><grnt>0</grnt><deny>0</deny><err>0</err><exp>0</exp></tpc></stats><stats id="oss" v="2"><paths>1<stats id="0"><lp>"/"</lp><rp>"/"</rp><tot>35642088</tot><free>30158372</free><ino>2272928</ino><ifr>2107726</ifr></stats></paths><space>0</space></stats></statistics>

the purpose is to get all the data i need from a "query stat" including the space and avoiding a second call :  
/usr/bin/xrdfs rd.spacescience.ro spaceinfo /

i am monitoring the xrootd stats from the stats output but i would need also the reported space, which it seems that is reported by servers but not by redirector ...

Thank you!
Adrian

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/456#issuecomment-281818240
########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1