On Wed, 22 Jun 2011 13:53:00 -0700, Jerry Smith <[email protected]> wrote: Non-text part: multipart/alternative > Has anyone thought of/started hacking at, a plugin to contact flexlm and > create something like a generic resource that can be counted and applied to > jobs? > > /not volunteering...just yet :-)
That would be great. The only other idea I've heard would be to set up firewall rules to allow contact to a license server only if you have allocated licenses to your job. However, that doesn't take into account the number of licenses like you said. (I also know nada about flexlm so that could be a very naive idea) mark > --Jerry > > Mark A. Grondona wrote: > > On Wed, 22 Jun 2011 12:01:58 -0700, Andrew Roosen > <[email protected]><mailto:[email protected]> wrote: > Non-text part: multipart/mixed > > > I want to hack together a way of restricting jobs to use only the > licenses they request. The simplest scheme I could come up with is > based on a prolog checking the current job for requested licenses and > "doing stuff' so only those jobs can access the licensed software. > > There does not appear to be a way, however, to view information about > licenses except with sview, which is obviously not suitable for > scripting. Attached is a small patch that modifies squeue to be able > to display license information using the %w format option: there > aren't many letters left to choose from! > > > > You could also use the output of 'scontrol show job jobid=X' or > probably the Perl API. (in the interim until your patch is accepted). > > mark > > > > > Cheers, > Andy Roosen > > > Attachment: slurm-2.2.4.patch (application/octet-stream) > > Non-text part: text/html
