Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Licensing in NS

Created: 27 Apr 2011 • Updated: 13 May 2011 | 5 comments
peeyushd's picture
This issue has been solved. See solution.

Hello All,

I am having some confusion regarding the current NS Licensing mechanism.

We have a "Agent Based" licensing enabled in our product. Now if I have a un-managed client computer which is not registered with NS, now when I install Symantec Management Agent on the client computer through NS console and push my plug-in on that computer, should the license be consumed at that time ?

When actually the license run ?

Thanks,

Peeyush Dongre

Comments 5 CommentsJump to latest comment

dj84.jal's picture

In case of PreOS, the Altiris agent and DS agent are already installed in the Client machine and they send the basic inventory to the NS, so after sending the basic inventory the license gets consumed.

 

In the another case, if you install the altiris agent and DS agent on the client machine then you need to send the basic inventory to the NS manually so after that license will get consumed.

peeyushd's picture

Thanks for the reply...

I have searched regarding the reclamation of the licenses but didn't find much info. I have a case where I want that my computer resource claims licenses from two solutions concurrently ( for e.g. Sol1 & Sol2 ) . If I boot my client computer into PreOS containing Agent plug-in of solution ( Sol1), it will consume its license. Now I call "RequestLicense" API of ILicensingPolicy befor scheduling of my task and provide LicensingGuid as the Product guid os another solution ( Soln2). As per the Licensing definition, it should consume one license of Soln2 also. When I checked with the "LicenseInUse" and "LicenStatus" table it showed me that the client computer is consuming two licenses ( Sol1 & Sol2 ).

I checked the license status after some time ( not remember the exact delay ), I found that Soln2 license is automatically reclaimed ?

I found that we can specify reclaim information in the licensing policy XML but that tags are too optional. If NS is doing reclamation of licenses then on what basis it identifies that the particular license should be reclaimed ?

Thanks,

dj84.jal's picture

License uses for resources which are not valid or are no longer relevent should be cleared up by calling ReclaimLicense on the licensing policy. Automated reclamation is part of the standard licensing policies, so this method applies mainly to those who develop custom licenses. If you have developed or plan to develop custom licenses, you should consider overriding the Synchronize method to perform any additional reclamations that may be required. To do this, call ReclaimLicense while in that method.

 

Please find the below url for more detail:

https://www-secure.symantec.com/connect/articles/i...

 

Thanks,

Dipak Jain

SOLUTION
peeyushd's picture

As we are using "Agent Based Licensing" in our solution, license will get consumed only when we install our Agents on the client system.

I have a following use case :- I have installed two solutions ( Sol1 & Sol2 ) . I booted the client machine in PreOS having Plug-ins of the Sol1 so they consume its license properly when basic inventory is send in Pre-OS. If I want that it should consume the license of Sol2 also when I execute one particular task. I tried this by providing the Product GUID of Sol2 in Check Licensing code and it successfully consumes license of Sol2 but after some time ( When Licensing scheduler runs ) the license get automatically re-claimed.

Is there any way that we can manually claim the license through Code ?

Thanks.

dj84.jal's picture

The solution will consume only the license of which agent plugin is installed.

 

Thanks,

Dipak Jain