« Back to Technical Questions

Application distribution/ licensing control

Combination View Flat View Tree View
Hello

Will an application packaged with the development authorization certificate be able to be installed on any AXP blade?
If so, how do you suggest me to limit the software to be installed only in one machine?

Outside AXP, I use an usb dongle (hardware key). My application checks its presence before starting.

Authorization bundles do not limit installation to a single blade.  For example, an authorization bundle for an NME blade will allow the application to be installed on any NME-APPRE-302-K9, NME-APPRE-502-K9, and NME-APPRE-522-K9 platforms.
 
There are 2 possibilities for allowing your application to start on 1 blade that I can think of:
The first is using the MAC address.  If you run "ifconfig" from within your application, you should be able to parse out the MAC address of the ethernet card.  If the address matches the machine you want to run on, allow your application to start.  If not, do not allow your application to start.
The second is to use the CLI "show license udi."  This is how each blade can be uniquely identified.  From within your application, you can run the following command:
> appreapi --mode exec "show license udi"
This will give you a UDI which is unique to your blade. 
 
Your startup script can parse the output from one of the solutions above and determine if the application should start or not.  Once the application has been debugged, you might want to be careful about allowing console access to the application because if you do the startup script could be modified to omit this check.
 
There may be other ways to limit to the machine you're running on, these are just a couple of suggestions I thought of.  I hope it helps.
 
-Carl

Most partners implement their own licensing mechanism either using CLI or using Web Interface. Their application only runs once appropriate license keys are entered. You can implement a similar mechanism. As Carl suggested, you can either use mac address or AXP CLI 'show license UDI' and can limit the license to a particular device.

Thank you Carl and Anurag!