Gravatar for prabhatkumar.singh@honeywell.com

Question by prabhatsingh2011, Jun 8, 2017 1:22 AM

Check License expire date and Diagnostic page in windows powershell

Hi ,

I am writing some scheduled task using powershell which will check for coveo license expiration date and Coveo diagnostic page health and trigger mails. Do we have any scripts available which can achieve this ?

1 Reply
Gravatar for sbelzile@coveo.com

Answer by Sébastien Belzile, Jun 8, 2017 10:25 AM

None out of the box.

Coveo license: can easily be done with an API key and this REST call to the license service.

Diagnostic page: there is a functionality called the diagnostic package. It is meant to be an easy way to retrieve relevant diagnostic information quickly. You could probably use that.

With a decompiler and take a look at the class `CoveoDiagnosticPackage.aspx.cs` on the `Coveo.SearchProvider.Application` dll. This is the entry point. I think you will be interested by the class `CoveoDiagnosticPackageBuilder` and the class `CoveoDiagnosticFileFactory`.

If you get to have something working, I think that would be something interesting to share on GitHub, or blog about.

Ask a question