Skip to main content
Solved

Check which floating license


Hi,

 

 

Is it possible to figure out programatically what license FME is using?

 

 

i.e. if I have multiple versions of FME on a machine to check using Python if 'c:\\fme2013\\fme.exe' is using a professional or oracle license.

 

 

Cheers

 

 

-James

Best answer by david_r

Hi James,

 

 

the easiest way is probably this, using Python:

 

 

lm = fmeobjects.FMELicenseManager() if lm.isReaderLicensed('ORACLE8I'):     print "Oracle is licensed" else:     print "Oracle is NOT licensed"

 

The parameter for isReaderLicensed() corresponds to the short name of any FME format. The format short name is listed in the FME reader gallery:

 

 

 

 

Note that the getLicenseType() method will only tell you the if the license if floating or node locked, etc.

 

 

David
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

sigtill
Supporter
Forum|alt.badge.img+24
  • Supporter
  • May 2, 2013
Hi James!

 

 

Have a look at FME_MacroValues and print out all available from here:

 

http://fmepedia.safe.com/AnswersQuestionDetail?id=906a0000000ck4aAAA

Forum|alt.badge.img
  • May 2, 2013
Not sure what you mean by 'oracle license', but if you are talking about the FME license, then you can get the license manager and its type in python like this:

 

 

import fmeobjects

 

lm = fmeobjects.FMELicenseManager()

 

lic_type = lm.getLicenseType()

david_r
Celebrity
  • Best Answer
  • May 2, 2013
Hi James,

 

 

the easiest way is probably this, using Python:

 

 

lm = fmeobjects.FMELicenseManager() if lm.isReaderLicensed('ORACLE8I'):     print "Oracle is licensed" else:     print "Oracle is NOT licensed"

 

The parameter for isReaderLicensed() corresponds to the short name of any FME format. The format short name is listed in the FME reader gallery:

 

 

 

 

Note that the getLicenseType() method will only tell you the if the license if floating or node locked, etc.

 

 

David

Thanks Guys. Very helpful.

 

 

lm.isWriterLicensed('ORACLE8I') is the method I'm looking for. The Reader version will always return True, because licenses restrict writers not readers.

 

 

Although if you have multiple versions of FME on a single computer like I do, which version is the method going to return? I would say it depends on which fmeobjects my sys.path points too.

 

 

@Muratgu - Oracle License is the 2nd most outter ring in this chart: http://www.safe.com/fme/fme-technology/fme-desktop/fme-editions/

 

 

 


david_r
Celebrity
  • May 3, 2013
Hi James,

 

 

glad to hear it worked. Concerning:

 

 

The Reader version will always return True, because licenses restrict writers not readers.

 

  This does not match my experiences (the code I posted was tested successfully using FME2013sp1). Care to elaborate?

 

  David

Hi David

 

 

Our office has Professional and Oracle Spatial licenses.

 

 

Professional can read any feature type.

 

 

Perhaps you've used the Base version which is limited in readers/writers and transformers.

 

 

-James

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings