Print

Print


Hi Max,

You are correct. mpxstat was written before "site" was envisioned and so
was not included in the output. I'll mark this as a bug.

Andy

On Wed, 22 Mar 2017, Max Fischer wrote:

> When using `mpxstats` with the `cgi` or `flat` format, it is missing the `site` field. In the plain XML output, the field is present.
>
> Tested on SL6, xrootd v4.6.0 installed via yum from the official repository.
>
> I have also tried using a sitename without the `::` special characters in the samples. The outcome was the same.
>
> Cheers, Max
>
> XML format:
> ```
> $ mpxstats -p 20333
> <statistics tod="1490206699" ver="v4.6.0" src="f01-101-130-e:0" tos="1490206639" pgm="cmsd" ins="server" pid="14164" site="ALICE::FZK::SE"><stats id="info"><host>f01-101-130-e</host><port>0</port><name>server</name></stats><stats id="buff"><reqs>0</reqs><mem>0</mem><buffs>0</buffs><adj>0</adj><xlreqs>0</xlreqs><xlmem>0</xlmem><xlbuffs>0</xlbuffs></stats><stats id="link"><num>2</num><maxn>2</maxn><tot>2</tot><in>29085</in><out>33174</out><ctime>0</ctime><tmo>0</tmo><stall>0</stall><sfps>0</sfps></stats><stats id="proc"><usr><s>0</s><u>33994</u></usr><sys><s>0</s><u>172973</u></sys></stats><stats id="cms"><role>S</role></stats><stats id="sched"><jobs>530</jobs><inq>0</inq><maxinq>2</maxinq><threads>14</threads><idle>7</idle><tcr>14</tcr><tde>0</tde><tlimr>0</tlimr></stats><stats id="sgen"><as>0</as><et>0</et><toe>1490206699</toe></stats></statistics>
> ```
>
> Flat format:
> ```
> $ mpxstats -p 20333
> tod 1490206708
> ver v4.6.0
> src f01-101-130-e:1094
> tos 1490206648
> pgm xrootd
> ins server
> pid 15684
> info.host f01-101-130-e
> info.port 1094
> info.name server
> buff.reqs 3092
> buff.mem 113770496
> buff.buffs 373
> buff.adj 0
> buff.xlreqs 0
> buff.xlmem 0
> buff.xlbuffs 0
> link.num 326
> link.maxn 346
> link.tot 704
> link.in 3568738723
> link.out 329682288
> link.ctime 1330
> link.tmo 77
> link.stall 0
> link.sfps 0
> proc.usr.s 0
> proc.usr.u 736887
> proc.sys.s 19
> proc.sys.u 543029
> xrootd.num 704
> xrootd.ops.open 952
> xrootd.ops.rf 0
> xrootd.ops.rd 5321
> xrootd.ops.pr 0
> xrootd.ops.rv 1
> xrootd.ops.rs 471
> xrootd.ops.wr 470
> xrootd.ops.sync 0
> xrootd.ops.getf 0
> xrootd.ops.putf 0
> xrootd.ops.misc 1635
> xrootd.sig.ok 0
> xrootd.sig.bad 0
> xrootd.sig.ign 0
> xrootd.aio.num 0
> xrootd.aio.max 0
> xrootd.aio.rej 0
> xrootd.err 0
> xrootd.rdr 0
> xrootd.dly 0
> xrootd.lgn.num 704
> xrootd.lgn.af 0
> xrootd.lgn.au 703
> xrootd.lgn.ua 0
> ofs.role server
> ofs.opr 90
> ofs.opw 0
> ofs.opp -3
> ofs.ups 0
> ofs.han 93
> ofs.rdr 0
> ofs.bxq 0
> ofs.rep 0
> ofs.err 0
> ofs.dly 0
> ofs.sok 0
> ofs.ser 0
> ofs.tpc.grnt 0
> ofs.tpc.deny 0
> ofs.tpc.err 0
> ofs.tpc.exp 0
> oss.paths 1
> oss.paths.0.lp /
> oss.paths.0.rp /export/xrootd/
> oss.paths.0.tot 2121697067008
> oss.paths.0.free 204474556416
> oss.paths.0.ino 15684186112
> oss.paths.0.ifr 15555374836
> oss.space 1
> oss.space.0.name public
> oss.space.0.tot 2121697067008
> oss.space.0.free 204443974600
> oss.space.0.maxf 204443974600
> oss.space.0.fsn 1
> oss.space.0.usg 3218719
> sched.jobs 889
> sched.inq 0
> sched.maxinq 2
> sched.threads 111
> sched.idle 73
> sched.tcr 111
> sched.tde 0
> sched.tlimr 0
> sgen.as 1
> sgen.et 0
> sgen.toe 1490206708
> ```
>
> --
> 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/484


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@abh3 in #484: Hi Max,\n\nYou are correct. mpxstat was written before \"site\" was envisioned and so \nwas not included in the output. I'll mark this as a bug.\n\nAndy\n\nOn Wed, 22 Mar 2017, Max Fischer wrote:\n\n\u003e When using `mpxstats` with the `cgi` or `flat` format, it is missing the `site` field. In the plain XML output, the field is present.\n\u003e\n\u003e Tested on SL6, xrootd v4.6.0 installed via yum from the official repository.\n\u003e\n\u003e I have also tried using a sitename without the `::` special characters in the samples. The outcome was the same.\n\u003e\n\u003e Cheers, Max\n\u003e\n\u003e XML format:\n\u003e ```\n\u003e $ mpxstats -p 20333\n\u003e \u003cstatistics tod=\"1490206699\" ver=\"v4.6.0\" src=\"f01-101-130-e:0\" tos=\"1490206639\" pgm=\"cmsd\" ins=\"server\" pid=\"14164\" site=\"ALICE::FZK::SE\"\u003e\u003cstats id=\"info\"\u003e\u003chost\u003ef01-101-130-e\u003c/host\u003e\u003cport\u003e0\u003c/port\u003e\u003cname\u003eserver\u003c/name\u003e\u003c/stats\u003e\u003cstats id=\"buff\"\u003e\u003creqs\u003e0\u003c/reqs\u003e\u003cmem\u003e0\u003c/mem\u003e\u003cbuffs\u003e0\u003c/buffs\u003e\u003cadj\u003e0\u003c/adj\u003e\u003cxlreqs\u003e0\u003c/xlreqs\u003e\u003cxlmem\u003e0\u003c/xlmem\u003e\u003cxlbuffs\u003e0\u003c/xlbuffs\u003e\u003c/stats\u003e\u003cstats id=\"link\"\u003e\u003cnum\u003e2\u003c/num\u003e\u003cmaxn\u003e2\u003c/maxn\u003e\u003ctot\u003e2\u003c/tot\u003e\u003cin\u003e29085\u003c/in\u003e\u003cout\u003e33174\u003c/out\u003e\u003cctime\u003e0\u003c/ctime\u003e\u003ctmo\u003e0\u003c/tmo\u003e\u003cstall\u003e0\u003c/stall\u003e\u003csfps\u003e0\u003c/sfps\u003e\u003c/stats\u003e\u003cstats id=\"proc\"\u003e\u003cusr\u003e\u003cs\u003e0\u003c/s\u003e\u003cu\u003e33994\u003c/u\u003e\u003c/usr\u003e\u003csys\u003e\u003cs\u003e0\u003c/s\u003e\u003cu\u003e172973\u003c/u\u003e\u003c/sys\u003e\u003c/stats\u003e\u003cstats id=\"cms\"\u003e\u003crole\u003eS\u003c/role\u003e\u003c/stats\u003e\u003cstats id=\"sched\"\u003e\u003cjobs\u003e530\u003c/jobs\u003e\u003cinq\u003e0\u003c/inq\u003e\u003cmaxinq\u003e2\u003c/maxinq\u003e\u003cthreads\u003e14\u003c/threads\u003e\u003cidle\u003e7\u003c/idle\u003e\u003ctcr\u003e14\u003c/tcr\u003e\u003ctde\u003e0\u003c/tde\u003e\u003ctlimr\u003e0\u003c/tlimr\u003e\u003c/stats\u003e\u003cstats id=\"sgen\"\u003e\u003cas\u003e0\u003c/as\u003e\u003cet\u003e0\u003c/et\u003e\u003ctoe\u003e1490206699\u003c/toe\u003e\u003c/stats\u003e\u003c/statistics\u003e\n\u003e ```\n\u003e\n\u003e Flat format:\n\u003e ```\n\u003e $ mpxstats -p 20333\n\u003e tod 1490206708\n\u003e ver v4.6.0\n\u003e src f01-101-130-e:1094\n\u003e tos 1490206648\n\u003e pgm xrootd\n\u003e ins server\n\u003e pid 15684\n\u003e info.host f01-101-130-e\n\u003e info.port 1094\n\u003e info.name server\n\u003e buff.reqs 3092\n\u003e buff.mem 113770496\n\u003e buff.buffs 373\n\u003e buff.adj 0\n\u003e buff.xlreqs 0\n\u003e buff.xlmem 0\n\u003e buff.xlbuffs 0\n\u003e link.num 326\n\u003e link.maxn 346\n\u003e link.tot 704\n\u003e link.in 3568738723\n\u003e link.out 329682288\n\u003e link.ctime 1330\n\u003e link.tmo 77\n\u003e link.stall 0\n\u003e link.sfps 0\n\u003e proc.usr.s 0\n\u003e proc.usr.u 736887\n\u003e proc.sys.s 19\n\u003e proc.sys.u 543029\n\u003e xrootd.num 704\n\u003e xrootd.ops.open 952\n\u003e xrootd.ops.rf 0\n\u003e xrootd.ops.rd 5321\n\u003e xrootd.ops.pr 0\n\u003e xrootd.ops.rv 1\n\u003e xrootd.ops.rs 471\n\u003e xrootd.ops.wr 470\n\u003e xrootd.ops.sync 0\n\u003e xrootd.ops.getf 0\n\u003e xrootd.ops.putf 0\n\u003e xrootd.ops.misc 1635\n\u003e xrootd.sig.ok 0\n\u003e xrootd.sig.bad 0\n\u003e xrootd.sig.ign 0\n\u003e xrootd.aio.num 0\n\u003e xrootd.aio.max 0\n\u003e xrootd.aio.rej 0\n\u003e xrootd.err 0\n\u003e xrootd.rdr 0\n\u003e xrootd.dly 0\n\u003e xrootd.lgn.num 704\n\u003e xrootd.lgn.af 0\n\u003e xrootd.lgn.au 703\n\u003e xrootd.lgn.ua 0\n\u003e ofs.role server\n\u003e ofs.opr 90\n\u003e ofs.opw 0\n\u003e ofs.opp -3\n\u003e ofs.ups 0\n\u003e ofs.han 93\n\u003e ofs.rdr 0\n\u003e ofs.bxq 0\n\u003e ofs.rep 0\n\u003e ofs.err 0\n\u003e ofs.dly 0\n\u003e ofs.sok 0\n\u003e ofs.ser 0\n\u003e ofs.tpc.grnt 0\n\u003e ofs.tpc.deny 0\n\u003e ofs.tpc.err 0\n\u003e ofs.tpc.exp 0\n\u003e oss.paths 1\n\u003e oss.paths.0.lp /\n\u003e oss.paths.0.rp /export/xrootd/\n\u003e oss.paths.0.tot 2121697067008\n\u003e oss.paths.0.free 204474556416\n\u003e oss.paths.0.ino 15684186112\n\u003e oss.paths.0.ifr 15555374836\n\u003e oss.space 1\n\u003e oss.space.0.name public\n\u003e oss.space.0.tot 2121697067008\n\u003e oss.space.0.free 204443974600\n\u003e oss.space.0.maxf 204443974600\n\u003e oss.space.0.fsn 1\n\u003e oss.space.0.usg 3218719\n\u003e sched.jobs 889\n\u003e sched.inq 0\n\u003e sched.maxinq 2\n\u003e sched.threads 111\n\u003e sched.idle 73\n\u003e sched.tcr 111\n\u003e sched.tde 0\n\u003e sched.tlimr 0\n\u003e sgen.as 1\n\u003e sgen.et 0\n\u003e sgen.toe 1490206708\n\u003e ```\n\u003e\n\u003e -- \n\u003e You are receiving this because you are subscribed to this thread.\n\u003e Reply to this email directly or view it on GitHub:\n\u003e https://github.com/xrootd/xrootd/issues/484\n"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/484#issuecomment-288536611"}}}

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