# Dynamic Server-level Resources

**URL:** <https://community.openpbs.org/t/dynamic-server-level-resources/695>\
**Category:** Users/Site Administrators\
**Created:** [September 29, 2017, 12:29pm UTC](https://community.openpbs.org/t/dynamic-server-level-resources/695 "2017-09-29T12:29:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clleroy](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@clleroy](https://community.openpbs.org/u/clleroy)\
**Post date:** [September 29, 2017, 12:29pm UTC](https://community.openpbs.org/t/dynamic-server-level-resources/695/1 "2017-09-29T12:29:34Z")

</div>

Hello all,

Did anyone succeed in configuring dynamic resources at the server level (see p254 of the admin guide or here(\*)).  
When I do a qstat I can see my job requiring the good resource(\*\*), but the scheduler does’nt seem to take it into account and submit the job on the node.

Any Idea?  
Thanks in advance  
Christine

(\*\*)  
qstat -f  
…  
Resource\_List.licm = 1777711111111111  
…  
comment = Job run at Fri Sep 29 at 14:26 on (…  
…

(\*)

1. Define the resources, for example floatlicense  
Qmgr: create resource floatlicense type=long
2. Write a script, for example [serverdyn.pl](http://serverdyn.pl), that returns the available amount of the resource via stdout, and place it on the server host. For example, it could be placed in /usr/local/bin/serverdyn.pl
3. Restart the server. See section 5.13.3, “Restart Steps for Custom Resources Defined via resourcedef File”, on page 242.
4. Configure the scheduler to use the script by adding the resource and the path to the script in the server\_dyn\_res line of PBS\_HOME/sched\_priv/sched\_config: Linux: server\_dyn\_res: “floatlicense !/usr/local/bin/serverdyn.pl”
5. Add the new dynamic resource to the resources: line in PBS\_HOME/sched\_priv/sched\_config:  
resources: “ncpus, mem, arch, […], floatlicense”
6. Restart the scheduler. See section 5.13.3, “Restart Steps for Custom Resources Defined via resourcedef File”, on page 242.

To request this resource, the job’s resource request would include:  
-l floatlicense=

---

<div class="post-metadata">

**Author:** ![clleroy](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@clleroy](https://community.openpbs.org/u/clleroy)\
**Post date:** [September 29, 2017, 1:41pm UTC](https://community.openpbs.org/t/dynamic-server-level-resources/695/2 "2017-09-29T13:41:33Z")

</div>

oups, sorry for the noise, re-editing the /var/spool/pbs/sched\_priv/sched\_config with the res\_dyn line did the trick, maybe a bad character in my previous config.

Again, sorry for the noise…  
Cheers  
Christine
