PDA

View Full Version : Flexlm not reading Solaris Sun demo licenses



kartikflexlm
09-16-2010, 06:34 PM
We had a licensing issue on one of our servers. We are using Sun Workshop compilers and the Flex license manager. The Sun Workshop compilers are EOL by Sun and Sun no longer supports this product. The compilers seem to use Flexlm for getting their licenses.



Sun has a procedure for granting unending any node license to those still using the compilers, I followed the procedure set by Sun at: http://www.sun.com/software/licensingcenter/sundev.xml it does not seem to work because the license manager gives errors. The users however are able to run their compiles on the system. I am concerned that this may be a temporary success.



We have an existing solaris 2.6 server on which the compiler and license manager work without issues. All files were copied from there and moved to a solaris 10 system. Since Sun provides any node unending demo licenses the licensing should work on the new system, the license manager however gives errors(see below)





Here is some output:

# ./lmver suntechd

lmver - Copyright (C) 1989-1998 Globetrotter Software, Inc.

FLEXlm 6.1b (libmgr_as.a), Copyright (C) 1988-1998 Globetrotter Software, Inc.

FLEXlm 6.1b (libmgr_s.a), Copyright (C) 1988, 1998 Globetrotter Software, Inc.

FLEXlm 6.1b (liblmgr.a), Copyright (C) 1988-1998 Globetrotter Software, Inc.



# ./lmver lmgrd.ste

lmver - Copyright (C) 1989-1998 Globetrotter Software, Inc.

FLEXlm Copyright 1988-1998, Globetrotter Software, Inc.

FLEXlm 6.1b (libmgr_s.a), Copyright (C) 1988, 1998 Globetrotter Software, Inc.

FLEXlm 6.1b (liblmgr.a), Copyright (C) 1988-1998 Globetrotter Software, Inc.

#



# pwd

/opt/SUNWspro/license_dir

# ls -al

total 17

drwxrwxr-x 2 root sys 7 Sep 16 10:30 .

drwxrwxr-x 17 root sys 18 Sep 14 10:17 ..

-rw------- 1 root other 881 Sep 14 11:01 nohup.out

-rw-r--r-- 1 root other 151 Sep 13 11:32 sunpro.lic,1

-rw-r--r-- 1 root other 274 Sep 14 16:37 sunpro.lic,2

-rw-r--r-- 1 root other 151 Sep 16 10:30 sunpro.lic,demo1

-rw-r--r-- 1 root other 151 Sep 14 17:23 sunpro.lic,node

#

# more sunpro.lic,2

SERVER mf-ny 80a2333c 7588

DAEMON suntechd /etc/opt/licenses/suntechd /etc/opt/licenses/daemon_options INCREMENT sunpro.cc suntechd 4.200 01-jan-00 3 2B2A2011BD5E3D0BF08A VENDOR_STRING="0"

INCREMENT sunpro.c suntechd 4.200 01-jan-00 3 CBEA70015D15A6A95534 VENDOR_STRING="0"



# more sunpro.lic,demo1

INCREMENT sunpro.cc suntechd 4.200 01-jan-0 0 EB2A50F1AEAA11C77DC8 "0" DEMO INCREMENT sunpro.c suntechd 4.200 01-jan-0 0 5BCA20A1162D9A7D5CCE "0" DEMO #



# cd /usr/tmp

# more license_log

10:31:10 (lmgrd) -----------------------------------------------

10:31:10 (lmgrd) Please Note:

10:31:10 (lmgrd)

10:31:10 (lmgrd) This log is intended for debug purposes only.

10:31:10 (lmgrd) There are many details in licensing policies

10:31:10 (lmgrd) that are not reported in the information logged

10:31:10 (lmgrd) here, so if you use this log file for any kind

10:31:10 (lmgrd) of usage reporting you will generally produce

10:31:10 (lmgrd) incorrect results.

10:31:10 (lmgrd)

10:31:10 (lmgrd) -----------------------------------------------

10:31:10 (lmgrd)

10:31:10 (lmgrd)

10:31:10 (lmgrd) FLEXlm (v6.1b) started on mf-ny (Sun) (9/16/2010)

10:31:10 (lmgrd) FLEXlm Copyright 1988-1998, Globetrotter Software, Inc.

10:31:10 (lmgrd) US Patents 5,390,297 and 5,671,412.

10:31:10 (lmgrd) World Wide Web: http://www.globetrotter.com

10:31:10 (lmgrd) License file(s): /etc/opt/licenses/licenses_combined

10:31:10 (lmgrd) lmgrd tcp-port 7588

10:31:10 (lmgrd) Starting vendor daemons ...

10:31:10 (lmgrd) Started suntechd (internet tcp_port 50989 pid 18143)

10:31:10 (suntechd) FLEXlm version 6.1b

10:31:10 (suntechd) Using options file: "/etc/opt/licenses/daemon_options"

10:31:10 (suntechd) Server started on mf-ny for: sunpro.cc

10:31:10 (suntechd) sunpro.c

10:31:10 (suntechd) Wrong hostid on SERVER line for license file:

10:31:10 (suntechd) /etc/opt/licenses/licenses_combined

10:31:10 (suntechd) SERVER line says 80a2333c, hostid is 85050476

10:31:10 (suntechd) Invalid hostid on SERVER line

10:31:10 (suntechd) Disabling 3 licenses from feature sunpro.cc(2B2A2011BD5E3D0BF08A)

10:31:10 (suntechd) Disabling 3 licenses from feature sunpro.c(CBEA70015D15A6A95534)

10:31:10 (suntechd) Not logging IN messages

10:31:10 (suntechd) Not logging OUT messages

10:31:10 (suntechd) Not logging QUEUED messages

10:31:10 (suntechd) FEATURE sunpro.cc LICENSE LINGER set to 60 seconds

10:31:10 (suntechd) FEATURE sunpro.c LICENSE LINGER set to 60 seconds

10:35:10 (suntechd) No valid hostids, exiting

10:35:10 (lmgrd) Please correct problem and restart daemons #



Please help us fix this problem.

RobertDickau
09-17-2010, 08:17 AM
The issue seems to be that the licenses generated for the license server with hostid 80a2333c are being launched on a server with hostid 85050476:

10:31:10 (suntechd) SERVER line says 80a2333c, hostid is 85050476

It seems too that the new licenses in sunpro.lic,demo1 are uncounted and do not require a license server. As described at the bottom of http://www.sun.com/software/licensingcenter/sundev.xml, you should just copy the new uncounted, permanent licenses to the documented location. (It sounds as if you might want to adjust the license text file so that each line begins with INCREMENT and ends with DEMO.)

kartikflexlm
09-17-2010, 08:33 AM
I did put in the Sun demo licenses into the place specified by Sun, however, when I do a lmstat -A I see an error message.

RobertDickau
09-17-2010, 09:04 AM
I believe lmstat shows only served licenses, not unserved licenses such as the new permanent, uncounted license file.

I gather from that Sun page that the licensed tools should be able to acquire their licenses from the new unserved license file, without needing a server to be running.

kartikflexlm
09-17-2010, 10:04 AM
I shut down the license server but the compiler does not work at that time.

Also the Sun demo license contains the word suntechd which is a daemon, why would it contain that if it did not need the license manager?

INCREMENT sunpro.c suntechd 4.200 01-jan-0 0 5BCA20A1162D9A7D5CCE "0" DEMO

It almost seems to me that the license server has got to be made to read the elementary license file at: /opt/SUNWspro/license_dir

When I give that license file to lmreread it gives me an error.....it continues to read the /etc/opt/licenses/licenses_combined file which was essentially copied over from a legacy system on which everything works - thats the system to which the product was originally licensed to.

RobertDickau
09-17-2010, 10:43 AM
The new license should not need a server (as with lmstat, lmreread is only for served licenses). Every license is tied to a particular publisher/ISV/producer, even if a server is not used, which is why "suntechd" appears in the INCREMENT line.

Can you use lmpath to point to the new license file?

kartikflexlm
09-17-2010, 10:47 AM
I do not have the lmpath command.
These are the commands I have:

# pwd
/etc/opt/licenses
# ls -al
total 106
drwxrwxr-x 2 root sys 26 Sep 16 10:23 .
drwxr-xr-x 3 root sys 3 Jan 30 2007 ..
-rw-r--r-- 1 root other 3812 Apr 18 2003 LIC_CONFIG_FILE
-rw-r--r-- 1 root other 3812 Apr 18 2003 LIC_CONFIG_FILE.combined
-rwxr--r-- 1 root other 37208 Apr 18 2003 LIC_CONFIG_SCRIPT
-rwxr--r-- 1 root sys 16481 Dec 24 1999 adjust_flexlm_owner
-rw-r--r-- 1 root other 104 Mar 1 2006 daemon_options
-rw-r--r-- 1 root other 7 Apr 18 2003 flexlm_owner
lrwxrwxrwx 1 root other 35 Sep 13 12:33 lic.SUNW -> /opt/SUNWste/license_tools/lic.SUNW
lrwxrwxrwx 1 root other 42 Sep 13 12:33 lic2.0_reconfig -> /opt/SUNWste/license_tools/lic2.0_reconfig
-rwxr-x--- 1 root staff 549 Dec 24 1999 lic_srvr_start
-rw-r--r-- 1 root other 274 Sep 14 16:37 licenses_combined
-rw-r--r-- 1 root other 274 Sep 14 16:37 licenses_combined.BAK
-rw-r--r-- 1 root other 274 Sep 14 16:39 licenses_combined.DUP
lrwxrwxrwx 1 root other 30 Sep 13 12:33 lit -> /opt/SUNWste/license_tools/lit
lrwxrwxrwx 1 root other 34 Sep 13 12:33 lit_tty -> /opt/SUNWste/license_tools/lit_tty
lrwxrwxrwx 1 root other 33 Sep 13 12:33 lmdiag -> /opt/SUNWste/license_tools/lmdiag
lrwxrwxrwx 1 root other 33 Sep 13 12:33 lmdown -> /opt/SUNWste/license_tools/lmdown
lrwxrwxrwx 1 root other 36 Sep 13 12:33 lmgrd.ste -> /opt/SUNWste/license_tools/lmgrd.ste
lrwxrwxrwx 1 root other 35 Sep 13 12:33 lmhostid -> /opt/SUNWste/license_tools/lmhostid
lrwxrwxrwx 1 root other 35 Sep 13 12:33 lmremove -> /opt/SUNWste/license_tools/lmremove
lrwxrwxrwx 1 root other 35 Sep 13 12:33 lmreread -> /opt/SUNWste/license_tools/lmreread
lrwxrwxrwx 1 root other 33 Sep 13 12:33 lmstat -> /opt/SUNWste/license_tools/lmstat
lrwxrwxrwx 1 root other 32 Sep 13 12:33 lmver -> /opt/SUNWste/license_tools/lmver
-rw-r--r-- 1 root other 26 Apr 18 2003 sunpro.loc
lrwxrwxrwx 1 root other 35 Sep 13 12:33 suntechd -> /opt/SUNWste/license_tools/suntechd
#

RobertDickau
09-17-2010, 11:35 AM
In that case, can you modify $HOME/.flexlmrc or set the SUNTECHD_LICENSE_FILE environment variable to point to the new license file?

(Current versions of the FlexNet Publisher utilities such as lmpath are available here (http://www.flexerasoftware.com/support.htm), but what I've described is what lmpath does...)

kartikflexlm
09-17-2010, 02:13 PM
This seems to work, I want to be sure I am getting all the messages that the license daemon spits out. Previously the:
root 3162 3161 0 13:59:54 ? 0:00 suntechd -T mf-ny 6.1 4 -c /etc/opt/licenses/licenses_combined
process would die after a fe w attemps of retrying the hostid.

Now I see both daemons persisting-
The one above and this:
root 3161 13801 0 13:59:54 pts/1 0:00 /etc/opt/licenses/lmgrd.ste -c /etc/opt/licenses/licenses_combined

This is what I see as the output of the command:
# more FILE
13:59:53 (lmgrd) -----------------------------------------------
13:59:53 (lmgrd) Please Note:
13:59:53 (lmgrd)
13:59:53 (lmgrd) This log is intended for debug purposes only.
13:59:53 (lmgrd) There are many details in licensing policies
13:59:53 (lmgrd) that are not reported in the information logged
13:59:53 (lmgrd) here, so if you use this log file for any kind
13:59:53 (lmgrd) of usage reporting you will generally produce
13:59:53 (lmgrd) incorrect results.
13:59:53 (lmgrd)
13:59:53 (lmgrd) -----------------------------------------------
13:59:53 (lmgrd)
13:59:53 (lmgrd)
13:59:53 (lmgrd) lmgrd running as root:
13:59:53 (lmgrd) This is a potential security problem
13:59:53 (lmgrd) And is not recommended
13:59:53 (lmgrd) FLEXlm (v6.1b) started on mf-ny (Sun) (9/17/2010)
13:59:53 (lmgrd) FLEXlm Copyright 1988-1998, Globetrotter Software, Inc.
13:59:53 (lmgrd) US Patents 5,390,297 and 5,671,412.
13:59:53 (lmgrd) World Wide Web: http://www.globetrotter.com
13:59:53 (lmgrd) License file(s): /etc/opt/licenses/licenses_combined
13:59:53 (lmgrd) lmgrd tcp-port 7588
13:59:53 (lmgrd) Starting vendor daemons ...
13:59:53 (lmgrd) Started suntechd (internet tcp_port 39018 pid 3162)
13:59:53 (suntechd) FLEXlm version 6.1b
13:59:53 (suntechd) Using options file: "/etc/opt/licenses/daemon_options"
13:59:53 (suntechd) Server started on mf-ny for: sunpro.cc
13:59:53 (suntechd) sunpro.c
13:59:53 (suntechd) Not logging IN messages
13:59:53 (suntechd) Not logging OUT messages
13:59:53 (suntechd) Not logging QUEUED messages
13:59:53 (suntechd) FEATURE sunpro.cc LICENSE LINGER set to 60 seconds
13:59:53 (suntechd) FEATURE sunpro.c LICENSE LINGER set to 60 seconds

kartikflexlm
09-17-2010, 02:47 PM
I am still getting errors on this:
# /etc/opt/licenses/lmstat -A
lmstat - Copyright (C) 1989-1998 Globetrotter Software, Inc.
Flexible License Manager status on Fri 9/17/2010 14:42

Error getting status: Cannot find license file -1,359:2 (No such file or directory)
#

but compiles work

RobertDickau
09-17-2010, 03:40 PM
I think that's expected: the uncounted licenses do not require a license server, and therefore lmstat doesn't show anything related to them, but the licensed code can check out features from the unserved license file.

kartikflexlm
09-20-2010, 08:07 AM
I saw something about running the compiler with the -xlicinfo option to get status, this is what it says about the -zlicinfo option: " You can find out information on the status of your license by using the -xlicinfo option. When you do that, no compilation is done and no license is checked out. The compiler returns information on the status of the licensing system, including a list of licensed users."

Now, it states that the Sun Workshop Compiler will never expire - that shows that the demo licenses from Sun are in place. But it shows total licenses as zero and the available licenses as zero.

From: http://www.sun.com/software/licensingcenter/ws3.0_sparc.txt
the RTU is set to 0, I read somewhere that this means infinite. So do you think that everything is in place?

# ./cc -xlicinfo

License server : (Null)

Sun WorkShop Compiler C Version 4.200 expires on : Never

Total Licenses : 0 Licenses Available : 0

Using LM_LICENSE_FILE = /opt/SUNWspro/bin/./../SC4.2/bin/../../license_dir/sunpro.lic,node

The information above is for the first occurrence of the requested
feature in the first license server on the list.
Set the LM_LICENSE_FILE environment variable differently to
see information about other license servers or use lmstat(1).
#

kartikflexlm
09-20-2010, 08:24 AM
More about the "0" licenses:
From: http://4bcad.com/doc/notes/sun_license_mgr_flex
"To identify a demo license, make sure you have:

* a definite expiration date, which should be about 30 days since the
password is requested.

* 0 (zero) number of users ( means unlimited, and is located after the
date ).

* the keyword "DEMO" at the end of the FEATURE line."

so, does this mean that I indeed have unlimited licenses(0 users) and that they are never ending?

RobertDickau
09-20-2010, 09:27 AM
Correct, a count of zero means "uncounted", and an expiration of 1-jan-0 means "permanent".

kartikflexlm
09-20-2010, 09:35 AM
Is this expected output, seems to be using the correct license file:

# ./cc -xlicinfo

License server : (Null)

Sun WorkShop Compiler C Version 4.200 expires on : Never

Total Licenses : 0 Licenses Available : 0

Using LM_LICENSE_FILE = /opt/SUNWspro/bin/./../SC4.2/bin/../../license_dir/sunpro.lic,node

The information above is for the first occurrence of the requested
feature in the first license server on the list.
Set the LM_LICENSE_FILE environment variable differently to
see information about other license servers or use lmstat(1).
#

kartikflexlm
09-20-2010, 11:49 AM
should I be concerned about:
Total Licenses : 0 Licenses Available : 0
in the cc -xlicinfo output?

RobertDickau
09-20-2010, 12:33 PM
I'm not familiar with their cc implementation, so I can only guess what -xlicinfo does. In general, though, a count of zero means "uncounted", so as long as compilation works...

iscbill
10-30-2012, 04:49 PM
[QUOTE=kartikflexlm;460080]We had a licensing issue on one of our servers. We are using Sun Workshop compilers and the Flex license manager. The Sun Workshop compilers are EOL by Sun and Sun no longer supports this product. The compilers seem to use Flexlm for getting their licenses.

Sun has a procedure for granting unending any node license to those still using the compilers, I followed the procedure set by Sun at: http://www.sun.com/software/licensingcenter/sundev.xml it does not seem to work because the license manager gives errors. The users however are able to run their compiles on the system. I am concerned that this may be a temporary success.

-----------------------------------------------------

Hi Kartikflexlm,

I was wondering if you resolved your license issue as I'm having a similar problem.

The company I joined recently has an old Sun server running Solaris 8 and Sun WorkShop 6 software with a node-locked license. The hardware has failed and we are attempting to recover from a backup. If the backup needs to be restored to a different host then the hostid will be different and the license/compilers won't work.

There are some options on the Internet for changing hostid settings but I'd prefer to get a new license as mentioned in your posting. When I followed your web link, I was brought to a generic Oracle site so I was wondering if you had more details about the license conversion process.

I will also try to follow up with Oracle to see if they will consider supporting such an old Sun product.

Thank you,

iscbill.

kartikflexlm
10-31-2012, 09:49 AM
We tried changing the hostid but that did not work. We switched over to gcc.....
I think the errors are expected and that the compiler will work
Oracle has discontinued ALL support - calling them won't help