[slurm-users] Setting up slurmrestd

Karl Lovink karl at lovink.net
Fri Jan 8 22:14:34 UTC 2021

Hi Luke,

Thanks it’s working now. Thanks. One last question, is it possible to create a non-expiring token. Yes, I know it is not secure....

Sincerely yours,

> On 8 Jan 2021, at 20:25, Luke Yeager <lyeager at nvidia.com> wrote:
> There's this: https://slurm.schedmd.com/rest.html
> From my personal notes:
> Install these packages before re-compiling Slurm (ubuntu 20.04): libhttp-parser-dev, libjwt-dev, and libyaml-dev
> Setup JWT using these instructions: https://slurm.schedmd.com/jwt.html
> Create /etc/slurm/slurmrest.conf with contents like this:
> include {{ _sysconf_dir }}/slurm.conf
> AuthType=auth/jwt
> Run like this: slurmrestd -f /etc/slurm/slurmrestd.conf
> -----Original Message-----
> From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Karl Lovink
> Sent: Friday, January 8, 2021 11:04 AM
> To: slurm-users at schedmd.com
> Subject: Re: [slurm-users] Setting up slurmrestd
> External email: Use caution opening links or attachments
> Hash: SHA256
> Hello,
> I'm trying to configure slurmrestd but I haven't been very successful so far. The plan is to use splunk to approach the endpoints. To test the communication with slurmrestd I am now using curl. However, I always get "Authentication failure" back. I think there are two options to authenticate: JWT and an API key. I would like to use the API key. slurmrestd, curl and soon Splunk will run on the same machine. So communication via localhost is sufficient.
> Is there somewhere and HOWTO to configure this? And can somebody help me to setup this.
> Sincerely,
> Karl
> ePNpWwgAg4/m39mUv3ac4ZS4NxPErHccymUEELLagPIidUdbPa+NV9VagCoCbjvN
> bM38k4X4Biud0AEGQ8yD5YDDJYZplYzViTJUF1wQr1aObU6NRgAj426rEFRZeP7j
> pNL42QXh5/0szNYrrtH9c1UY+ALvwFR0CEpphvdoySa5tTm73zsSOgzD6CZN+AIY
> g2bou6dLPBTB5v9y5WgjiC/9gdZxmtSv80Z72r6uWzKwVdI5pOattkjt9AFNy+Wa
> mTYUN9Zix9u6ILeQ08poOLR2dMyfHbVtoL4lk4lV/yTyN7+9m2VlfTjM9ondyYuT
> Bt7ToUEECLKL5/mMTuEz0RCC5xuUsA==
> =4ZMz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20210108/737a79c2/attachment-0002.htm>

More information about the slurm-users mailing list