Skip to main content
Question

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

  • March 8, 2017
  • 4 replies
  • 94 views

fmelizard
Safer
Forum|alt.badge.img+20

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

4 replies

rylanatsafe
Safer
Forum|alt.badge.img+14
  • Safer
  • 671 replies
  • March 8, 2017

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

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

  • 14 replies
  • April 26, 2021

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+14
  • Safer
  • 671 replies
  • April 26, 2021

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+14
  • Safer
  • 671 replies
  • May 3, 2021

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).