Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
Capability licensing APIs

This document provides a brief description of the Capability_licensing OpEN APIs. It provides the following services:

Example C Application capability_licensing_example

Initialization

In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.

capability_licensing_example

capability_licensing_example.c is a sample application that demonstrates the use of OpEN's Capability_licensing APIs. capability_licensing_example is started from the command line and can be used to exercise the various APIs by specifying arguments on the command line.

Sample Output

Capability_licensing CLI/API Cross Reference

CLI Command OpEN API Reference
(Priv-User Mode)#show license openapiCapabLicenseCountGet()
openapiCapabLicenseTypeGet()
openapiCapabLicenseStatusGet()
openapiCapabLicenseNextIndexGet()
(Priv-User Mode)#show license file <file_number> openapiCapabLicenseParamGet()
openapiCapabLicenseVersionGet()
openapiCapabLicenseKeyGet()
openapiCapabLicenseModelGet()
openapiCapabLicenseModelGet()
openapiCapabLicenseSerialNumberGet()

(Priv-User Mode)#license clear <file_number/all> | openapiCapabLicenseRemove()
openapiCapabLicenseRemoveAll()