<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>There's this: <a href="https://slurm.schedmd.com/rest.html"><font color="#0563C1"><u>https://slurm.schedmd.com/rest.html</u></font></a></div>
<div> </div>
<div>From my personal notes:</div>
<ul style="margin:0;padding-left:36pt;">
<li>Install these packages before re-compiling Slurm (ubuntu 20.04): libhttp-parser-dev, libjwt-dev, and libyaml-dev</li><li>Setup JWT using these instructions: <a href="https://slurm.schedmd.com/jwt.html"><font color="#0563C1"><u>https://slurm.schedmd.com/jwt.html</u></font></a></li><li>Create /etc/slurm/slurmrest.conf with contents like this:</li></ul>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">include {{ _sysconf_dir }}/slurm.conf</span></font></div>
<div style="padding-left:36pt;"><font face="Courier New" size="2"><span style="font-size:10pt;">AuthType=auth/jwt</span></font></div>
<ul style="margin:0;padding-left:36pt;">
<li>Run like this: <font face="Courier New" size="2"><span style="font-size:10pt;">slurmrestd -f</span></font><font face="Courier New" size="2"><span style="font-size:10pt;"> /etc/slurm</span></font><font face="Courier New" size="2"><span style="font-size:10pt;">/slurmrestd.conf
0.0.0.0:682</span></font><font face="Courier New" size="2"><span style="font-size:10pt;">0</span></font></li></ul>
<div> </div>
<div>-----Original Message-----<br>

From: slurm-users <slurm-users-bounces@lists.schedmd.com> On Behalf Of Karl Lovink<br>

Sent: Friday, January 8, 2021 11:04 AM<br>

To: slurm-users@schedmd.com<br>

Subject: Re: [slurm-users] Setting up slurmrestd</div>
<div> </div>
<div>External email: Use caution opening links or attachments</div>
<div> </div>
<div> </div>
<div>-----BEGIN PGP SIGNED MESSAGE-----</div>
<div>Hash: SHA256</div>
<div> </div>
<div>Hello,</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Is there somewhere and HOWTO to configure this? And can somebody help me to setup this.</div>
<div> </div>
<div>Sincerely,</div>
<div>Karl</div>
<div> </div>
<div> </div>
<div>-----BEGIN PGP SIGNATURE-----</div>
<div> </div>
<div>iQEzBAEBCAAdFiEEdAEe0RRL+gREs9oxGJor1wjGePMFAl/4rKIACgkQGJor1wjG</div>
<div>ePNpWwgAg4/m39mUv3ac4ZS4NxPErHccymUEELLagPIidUdbPa+NV9VagCoCbjvN</div>
<div>bM38k4X4Biud0AEGQ8yD5YDDJYZplYzViTJUF1wQr1aObU6NRgAj426rEFRZeP7j</div>
<div>pNL42QXh5/0szNYrrtH9c1UY+ALvwFR0CEpphvdoySa5tTm73zsSOgzD6CZN+AIY</div>
<div>g2bou6dLPBTB5v9y5WgjiC/9gdZxmtSv80Z72r6uWzKwVdI5pOattkjt9AFNy+Wa</div>
<div>mTYUN9Zix9u6ILeQ08poOLR2dMyfHbVtoL4lk4lV/yTyN7+9m2VlfTjM9ondyYuT</div>
<div>Bt7ToUEECLKL5/mMTuEz0RCC5xuUsA==</div>
<div>=4ZMz</div>
<div>-----END PGP SIGNATURE-----</div>
<div> </div>
<div> </div>
</span></font>
</body>
</html>