Complete license info

Hi,

How do we access the complete information about plugin license?

We need to know activated, grace, expired, missing license.

We are using CounterMethod as below

_myServerLicense.CounterMethod = LicenseInformation.CounterMethodEnum.CountByCounter;

so if any missing, expired , we can block the plugin from working.

Any ways to force customer activate the license after doing all the required mapping in plugin?

We tried some ways, but result vary.

VideoOS.Platform.License.ResolvedLicenseCount res = new ResolvedLicenseCount(Definition.PluginId, _myServerLicense);

  string stemp = res.Activated.ToString() + " " + res.Available.ToString() + " " + res.Expired.ToString() + " " + res.Missing.ToString() + " " + res.Temporary.ToString() + " " + res.TotalActivated.ToString() + " " + res.Used.ToString();

I am guessing you are already familiar with the Server Connection License sample. This would be my first response to explore that sample on licensing and “CounterMethod”.

No, you cannot force the customer to run a license activation.

The Management Server is able to do an automatic license activation if setup to do so. If this has been setup your plugin can signal that an automatic license activation is desired. To do this use the message.

--

String VideoOS.Platform.Messaging.MessageId.System.LicenseAutomaticUpdateRequest = “System.LicenseAutomaticUpdateRequest” [static]

-

Can be sent by a MIP plug-in running in the Management Client or Management Administrator, to indicate that its license information has changed.

The environment will then call the PluginLicenseRequest methods to get a new set of license requests.

The information will be stored on the server and used during next automatic license activation - usually scheduled to be performed within a few minutes.

.

Note: Supported from 2016.

--

You see results vary.. If you see what you believe is inconsistent behavior please try to describe the details.

Hi @Bo Ellegård Andersen (Milestone Systems)​ ,

Yes we have used this “Server Connection License sample” as reference.

We just have one doubt, we have provided expired date to test while added new item

ItemTrial = true,

ItemTrialEnd = DateTime.UtcNow + TimeSpan.FromDays(-1)

and it show as below without license activationbut once we restart the management client we get like below

You can see from above pictures that all the “grace period expired” item are shown in “In grace period” after closing and opening management client.

In the Server Connection License sample there is three occurrences where ActivateTrialsConfiguredLicenseItems is used. This should reuse deleted items without new activation but i think it is causing the plugin sample to behave erratic. I would appreciate if you could try to remove the three occurrences from the code and test and give me feedback. In my testing I did see the behavior you have documented with the screen captures above, but when removing ActivateTrialsConfiguredLicenseItems use from the code I think all behaved perfect. Your feedback will be appreciated.

Hi @Bo Ellegård Andersen (Milestone Systems)​ ,

Yes, after doing the suggested changes its working, thank you

We have provided ItemTrialEnd = DateTime.UtcNow + TimeSpan.FromDays(1) and waiting for it to expire and come to ‘graceperiod expired’ column, so we can take action

Thank you for the feedback.

In MIPSDK 2019R1 we will have removed the use of ActivateTrialsConfiguredLicenseItems from the Server Connection License sample.