This library allows partner applications to check validity and applicability of licenses for a given feature. JUNOS provides various CLI support for installing, deleting, and veiwing licenses, which is covered in "Managing JUNOS Licenses" in the JUNOS Software Installation and Upgrade Guide.
License validity can be permanent, count-down, date-based, or invalid:
- Permanent validity enables feature(s) indefinitely.
- Count-down validity specifies a certain amount of time after which the license is invalid. During this period, the feature described in the license is available for use. To suspend a count-down license, the user simply unconfigures the applicable feature. To resume the license, the user reconfigures the feature.
- Date-based validity specifies the date before which a feature is usable. For instance, a date-based license could be valid from installation until January 15, 2010. Users cannot suspend date-based licenses.
Each of the licensed features has a unique feature ID. Feature IDs will be assigned to SDK applications as part of a partnership agreement and not through the API provided.
- Invalid validity means that the licensed feature is configured (that is, used) but there is no valid license installed (that is, either no license is installed or else a count-down or date-based license is installed but is expired).
License keys are entered using JUNOS licensing infrastructure, that is, using CLI commands by the administrator of the device. No API will be provided for installing or removing a license for a given feature.
There is an order in which the basic set of functions should be called for interfacing with the licensing infrastructure:
- Initialize SDK licensing libray by calling junos_license_init().
- If the application is interested in license event notifications about expiry, grace period expirey, or scale cap, then it needs to indicate the junos_license_register_notifications() function.
- If an application wants to check the validity of a license for a particular feature, then it can do so by calling junos_license_check_validity().
- Before an application terminates, clean up resources allocated for feature information and shut down the SDK licensing library by calling junos_license_close().
© 2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:23:46 2010 for libjunos-license by Doxygen 1.4.5