Skip to main content
Question

How can I programmatically get the FME Registration Key or Machine Code?


fmelizard
Contributor
Forum|alt.badge.img+17

For my workflow, I need to expose this value in an attribute. What are my options?

4 replies

rylanatsafe
Safer
Forum|alt.badge.img+13

One of our customers identified that this is possible using FMEObjects and Python:

import fmeobjects
lm = fmeobjects.FMELicenseManager()
print lm.getLicenseProperty('MACHINE CODE')

rylanatsafe wrote:

One of our customers identified that this is possible using FMEObjects and Python:

import fmeobjects
lm = fmeobjects.FMELicenseManager()
print lm.getLicenseProperty('MACHINE CODE')

This seems to work on FME Desktop with a fixed license.   If using a floating license or on FME Server then "MACHINE CODE" is not defined. 

Any suggestions on how to do this when using a floating license and/or on Server?


rylanatsafe
Safer
Forum|alt.badge.img+13
neilhellas wrote:

This seems to work on FME Desktop with a fixed license.   If using a floating license or on FME Server then "MACHINE CODE" is not defined. 

Any suggestions on how to do this when using a floating license and/or on Server?

Hi @neilhellas​ , for FME Server you can use the authenticated REST API endpoint:

/fmerest/v3/licensing/machinekey

I'll share your question regarding the floating license with my colleagues and hopefully we can find an answer for you!


rylanatsafe
Safer
Forum|alt.badge.img+13
neilhellas wrote:

This seems to work on FME Desktop with a fixed license.   If using a floating license or on FME Server then "MACHINE CODE" is not defined. 

Any suggestions on how to do this when using a floating license and/or on Server?

For FME Desktop, you can use the following command—which could be used with the SystemCaller transformer—to retrieve the value:

<path_to>/fme.exe MACHINE_KEY

This command simply returns the machine key (e.g. 1-234-567-890).


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