# Licenses valid for 0 Floating hosts

**URL:** <https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275>\
**Category:** Users/Site Administrators\
**Created:** [November 6, 2018, 4:16am UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275 "2018-11-06T04:16:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuxiaopiao](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@liuxiaopiao](https://community.openpbs.org/u/liuxiaopiao)\
**Post date:** [November 6, 2018, 4:16am UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/1 "2018-11-06T04:16:37Z")

</div>

Hi there,  
I have applied one PBS Pro trial license and tried to install PBS Pro 14.2.6. The detailed steps are as follows:

1. Create one account in [https://secure.altair.com/UserArea/license\_man.php](https://secure.altair.com/UserArea/license_man.php) and applied 30 days free trial license for 0.03 HWU with hostid 00001701A3E0,hostid type “Ethernet”. Save license file as “altair-serv.cfg”
2. Download the Altair License Server and add the “altair-serv.cfg” license file.
3. Check the license server is running.

> [opc@pbsproserver usr]$ sudo systemctl status altairlmxd.service  
> ● altairlmxd.service - LSB: Altair\_Lmxd for Altair products  
> Loaded: loaded (/etc/rc.d/init.d/altairlmxd; bad; vendor preset: disabled)  
> Active: active (running) since Tue 2018-11-06 02:12:04 GMT; 2h 5min ago  
> Docs: man:systemd-sysv-generator(8)  
> Tasks: 21  
> Memory: 724.0K  
> CGroup: /system.slice/altairlmxd.service  
> └─1988 /usr/local/altair/licensing13.0/bin/lmx-serv -b -c /usr/local/altair/licensing13.0/altair-serv.cfg  
> Nov 06 02:12:04 pbsproserver systemd[1]: Starting LSB: Altair\_Lmxd for Altair products…  
> Nov 06 02:12:04 pbsproserver altairlmxd[1924]: Starting Altair License Manager…  
> Nov 06 02:12:04 pbsproserver altairlmxd[1924]: The Altair License Manager was successfully started.  
> Nov 06 02:12:04 pbsproserver systemd[1]: Started LSB: Altair\_Lmxd for Altair products.

1. Created user pbsdata and install pbs standalone server.
2. Start pbs service.

> [opc@pbsproserver licensing13.0]$ sudo systemctl status pbs  
> ● pbs.service - Portable Batch System  
> Loaded: loaded (/opt/pbs/libexec/pbs\_init.d; enabled; vendor preset: disabled)  
> Active: active (running) since Tue 2018-11-06 03:17:37 GMT; 55min ago  
> Docs: man:pbs(8)  
> Process: 12128 ExecStop=/opt/pbs/libexec/pbs\_init.d stop stop (code=exited, status=0/SUCCESS)  
> Process: 12788 ExecStart=/opt/pbs/libexec/pbs\_init.d start start (code=exited, status=0/SUCCESS)  
> Tasks: 12  
> Memory: 11.8M  
> CGroup: /system.slice/pbs.service  
> ├─12831 /opt/pbs/sbin/pbs\_comm  
> ├─12859 /opt/pbs/sbin/pbs\_mom  
> ├─12871 /opt/pbs/sbin/pbs\_sched  
> ├─13067 /opt/pbs/sbin/pbs\_ds\_monitor monitor  
> ├─13097 /opt/pbs/pgsql/bin/postgres -D /var/spool/pbs/datastore -p 15007  
> ├─13106 postgres: logger process  
> ├─13109 postgres: checkpointer process  
> ├─13110 postgres: writer process  
> ├─13111 postgres: wal writer process  
> ├─13112 postgres: autovacuum launcher process  
> ├─13113 postgres: stats collector process  
> ├─13129 postgres: pbsdata pbs\_datastore 10.0.0.253(48344) idle  
> └─13143 /opt/pbs/sbin/pbs\_server.bin  
> Nov 06 03:17:32 pbsproserver pbs\_init.d[12788]: PBS sched  
> Nov 06 03:17:33 pbsproserver su[12893]: (to pbsdata) root on none  
> Nov 06 03:17:33 pbsproserver su[12926]: (to pbsdata) root on none  
> Nov 06 03:17:33 pbsproserver su[12988]: (to pbsdata) root on none  
> Nov 06 03:17:33 pbsproserver su[13022]: (to pbsdata) root on none  
> Nov 06 03:17:33 pbsproserver su[13068]: (to pbsdata) root on none  
> Nov 06 03:17:37 pbsproserver pbs\_init.d[12788]: Connecting to PBS dataservice…connected to PBS dataservice@pbsproserver  
> Nov 06 03:17:37 pbsproserver pbs\_init.d[12788]: Licenses valid for 0 Floating hosts  
> Nov 06 03:17:37 pbsproserver pbs\_init.d[12788]: PBS server  
> Nov 06 03:17:37 pbsproserver systemd[1]: Started Portable Batch System.

1. Checked the server log:

> 11/06/2018 03:17:37;0004;Server@pbsproserver;Svr;Server@pbsproserver;Hostid is 0x000afd00  
> 11/06/2018 03:17:37;0004;Server@pbsproserver;Svr;Server@pbsproserver;Licenses valid for 0 Floating hosts

1. When submit job and trace it,

> [opc@pbsproserver server\_logs]$ tracejob 0  
> Job: 0.pbsproserver  
> 11/06/2018 03:04:59 L Considering job to run  
> 11/06/2018 03:04:59 L Could not run job - unable to obtain 1 cpu licenses. avail\_licenses=0  
> 11/06/2018 03:04:59 S enqueuing into workq, state 1 hop 1

Not sure why the license invalid. And my hostid is like this:

> [root@pbsproserver bin]# ./almutil -hostid  
> AltairLM End-user Utility v13.0.0 build 156135 (Jun 3 2016)  
> Copyright (C) 2016 Altair Engineering, Inc. All rights reserved.  
> ETHERNET: ens3  
> Hostid: 00001701A3E0  
> ETHERNET: virbr0  
> Hostid: 525400F20968  
> ETHERNET: virbr0-nic  
> Hostid: 525400F20968

Could you please help me find why the license invalid? Thanks a lot!

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [November 6, 2018, 9:33am UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/2 "2018-11-06T09:33:18Z")

</div>

1. Could you please share the output of the below commands:

- qmgr -c “p s”
- qstat -Bf

1. Did you create a floating license file or a socket license file ?

2. If you have created a socket license file, then you have to save the license file on the PBS Server host  
and run the below command  
qmgr -c “set server pbs\_license\_info=/path/to/saved/license/file/altair\_lic.dat”

3. If you have created a floating license file , then you have to point the PBS Server to checkout the licenses from the license server.  
qmgr -c “set server pbs\_license\_info=6200@hostname-of-the-license-server”

Please note that you are using a commercial product, hence please contact the support team of your region.  
This forum is for PBS Professional Open Source community.

Thank you

---

<div class="post-metadata">

**Author:** ![liuxiaopiao](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@liuxiaopiao](https://community.openpbs.org/u/liuxiaopiao)\
**Post date:** [November 6, 2018, 1:54pm UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/3 "2018-11-06T13:54:57Z")

</div>

Thanks a lot for the reply.

1. output for qmgr and qstat

> [root@pbsproserver ~]# qmgr -c “p s”  
> Unknown Host.  
> qmgr: cannot connect to server s”  
> [root@pbsproserver ~]# qstat -Bf  
> Server: pbsproserver  
> server\_state = Active  
> server\_host = [pbsproserver.sub003090.vcnplugin.com](http://pbsproserver.sub003090.vcnplugin.com)  
> scheduling = True  
> total\_jobs = 1  
> state\_count = Transit:0 Queued:1 Held:0 Waiting:0 Running:0 Exiting:0 Begun  
> :0  
> acl\_roots = root  
> default\_queue = workq  
> log\_events = 511  
> mail\_from = adm  
> query\_other\_jobs = True  
> resources\_default.ncpus = 1  
> default\_chunk.ncpus = 1  
> scheduler\_iteration = 600  
> FLicenses = 0  
> resv\_enable = True  
> node\_fail\_requeue = 310  
> max\_array\_size = 10000  
> pbs\_license\_info = /usr/local/altair/licensing13.0/altair\_lic.dat  
> pbs\_license\_min = 1  
> pbs\_license\_max = 2147483647  
> pbs\_license\_linger\_time = 31536000  
> license\_count = Avail\_Global:0 Avail\_Local:0 Used:0 High\_Use:0 Avail\_Socket  
> s:0 Unused\_Sockets:0  
> pbs\_version = 14.2.6.20180327140341  
> eligible\_time\_enable = False  
> max\_concurrent\_provision = 5

1. I am creating one floating license file.
2. I have run the below command:

> `qmgr -c ` `"set server pbs_license_info=/usr/local/altair/licensing13.0/altair_lic.dat"`

I have tried to contact the support in my region but no one answered the phone. Will try it tomorrow.

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [November 6, 2018, 2:04pm UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/4 "2018-11-06T14:04:02Z")

</div>

> [@liuxiaopiao](#):
>
> /usr/local/altair/licensing13.0/altair\_lic.dat

Please let us know whether your license file has this format

FEATURE xxxxxxxxxxxxx  
{  
VENDOR = ALTAIR  
COUNT = xxxxxx  
KEYTYPE = EXCLUSIVE  
VERSION = xxx  
START = 2018-11-xx  
END = 2018-11-xx  
BORROW = 336  
SHARE = CUSTOM|VIRTUAL  
COMMENT = " Server Info: ETHERNET = xxxxxxxxxx"  
SN = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”  
KEY =

############### or this format #################################  
FEATURE xxxxxx  
{  
VENDOR = ALTAIR  
VERSION = 12.0  
START = 2018-09-xx  
END = 2018-10-xx  
SHARE = xxxx  
COMMENT = " Server Info: ETHERNET:xxxx, Failover Server Info: "  
OPTIONS = “ **SOCKETS** =xxx:CORES=xxx”

---

<div class="post-metadata">

**Author:** ![liuxiaopiao](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@liuxiaopiao](https://community.openpbs.org/u/liuxiaopiao)\
**Post date:** [November 6, 2018, 2:08pm UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/5 "2018-11-06T14:08:42Z")

</div>

Thansk a lot for the quick response. My license file is like

> FEATURE xxxxxxxxxxxxx  
> {  
> VENDOR = ALTAIR  
> COUNT = xxxxxx  
> KEYTYPE = EXCLUSIVE  
> VERSION = xxx  
> START = 2018-11-xx  
> END = 2018-11-xx  
> BORROW = 336  
> SHARE = CUSTOM|VIRTUAL  
> COMMENT = " Server Info: ETHERNET = xxxxxxxxxx"  
> SN = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”  
> KEY =

And it seemed I need to try “qmgr -c “set server pbs\_license\_info=6200@hostname-of-the-license-server”” this.

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [November 6, 2018, 2:09pm UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/6 "2018-11-06T14:09:25Z")

</div>

> [@liuxiaopiao](#):
>
> - I am creating one floating license file.

Sorry, saw this late . if you have a floating license file.

- then you need to download Altair License Manager v14.0
- deploy this license file (altair\_lic.dat) to /usr/local/altair/licensing13.0
- start the license services /etc/init.d/altairlmxd start
- qmgr -c “set server pbs\_license\_info=6200@hostname-of-altair-license-manager-system”

Note: Altair License Manager should be deployed on the system which has the MAC ID mentioned in the license file. Altair License Manager can be hosted on the PBS Server system or a different system.

---

<div class="post-metadata">

**Author:** ![liuxiaopiao](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@liuxiaopiao](https://community.openpbs.org/u/liuxiaopiao)\
**Post date:** [November 6, 2018, 2:30pm UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/7 "2018-11-06T14:30:02Z")

</div>

Thanks a lot. It is working now.  
I have followed your steps and now it is working. Thanks so much!

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [November 6, 2018, 2:35pm UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/8 "2018-11-06T14:35:27Z")

</div>

Nice one ! Thank you

---

<div class="post-metadata">

**Author:** ![liuxiaopiao](https://avatars.discourse-cdn.com/v4/letter/l/65b543/32.png) [@liuxiaopiao](https://community.openpbs.org/u/liuxiaopiao)\
**Post date:** [November 7, 2018, 12:26am UTC](https://community.openpbs.org/t/licenses-valid-for-0-floating-hosts/1275/9 "2018-11-07T00:26:20Z")

</div>

Thanks so much for your help!
