In a word, nothing that's guaranteed to be stable. I got my start from this reply on the XDMoD list in November 2019. Worked on 8.0:
Mike, The recommended way of doing this would be to use XDMoD's Report Generator to periodically email you a document containing the chart images. https://xdmod.ccr.buffalo.edu/user_manual/?t=Report%20Generator This will only get you the images, though and not the numerical values. The more complex alternative is to use curl to query XDMoD directly. An example of how to download chart images is in the automated regression tests that verify image export: https://github.com/ubccr/xdmod/blob/xdmod9.0/tests/regression/lib/Controllers/UsageChartsTest.php See the chartSettingsProvider() for how to create the data to send and testChartSettings() for where to POST it. To get the raw numbers you can change the 'format' setting from 'png' to 'csv' to get the raw data in csv format. Note that you would be accessing an internal XDMoD api which could change or even be removed in new releases. From: slurm-users <slurm-users-boun...@lists.schedmd.com> on behalf of Kilian Cavalotti <kilian.cavalotti.w...@gmail.com> Date: Tuesday, May 11, 2021 at 1:57 PM To: Slurm User Community List <slurm-users@lists.schedmd.com> Subject: Re: [slurm-users] Cluster usage, filtered by partition On Tue, May 11, 2021 at 5:55 AM Renfro, Michael <ren...@tntech.edu> wrote: > > XDMoD [1] is useful for this, but it’s not a simple script. It does have some > user-accessible APIs if you want some report automation. I’m using that to > create a lightning-talk-style slide at [2]. > > [1] > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopen.xdmod.org%2F&data=04%7C01%7Crenfro%40tntech.edu%7C406944c7097041e8402f08d914ae978f%7C66fecaf83dc04d2cb8b8eff0ddea46f0%7C1%7C0%7C637563562374746702%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Mla%2BlItr2M4XNEzP7UoAAP2z3P%2FPPmfE2%2B8zTwTE4W4%3D&reserved=0 > [2] > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmikerenfro%2Fone-page-presentation-hpc&data=04%7C01%7Crenfro%40tntech.edu%7C406944c7097041e8402f08d914ae978f%7C66fecaf83dc04d2cb8b8eff0ddea46f0%7C1%7C0%7C637563562374746702%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=pkOtpZ7L7qyiK8kICUmJGPioIwzxvCRC0i%2BQOC9usHM%3D&reserved=0 Oh, that looks useful! Is the XDMoD API documented somewhere? Thanks, -- Kilian