Solved an issue with expired license not sending a correct alert when Zabbix is enabled
07-Jul-20 V1.16
Windows Service Pack and Release Id are displayed during execution (if available)
Minor update in Windows Event log message layout
16-Apr-20 V1.15
Environment information display added when script is started
15-Apr-20 V1.14
missing "Expiration" word in case Zabbix was not used problem solved
remaining DEBUG printed line removed
10-Apr-20 V1.13
The script was not getting the latest version of hasp_view (seen after upgrade from V4.10 B202-05 to V4.11 B204-03)
28-Oct-19 V1.12
Updated version for Zabbix with zabbix_sender command executed directly instead of defined in the expiredlicense.bat script:
new command line parameter added -zabbix
.ini file: new parameter zabbix=true/false
The expiredlicense.bat script is no more mandatory then if it is missing, an information message is displayed instead of error
New parameter "-expdat" added for debugging
28-Mar-19 V1.11
Copyright update
19-Nov-2018 - Version 1.10
Works with hasp_view.exe version 1.30 that adds the "-all" parameter working with -report to list all available licenses on the server in a text file. Please note if hasp_view.exe is older than version 1.30, "-all" is ignored
"tick=<value>" parameter in the .ini file allows for values "1", "y", "yes" or "true" (case insensitive). All other values invalidate -tick
sendmail.ps1 and sendmail_html.ps1 scripts examples have been updated with $MailServer and $Port. These parameters have to be customized with some other parameters.
09-Nov-2018 - Version 1.9
minor corrections in script referring to -file instead of -ini
added -nbhours parameter for backup/spare licenses
added -tick parameter to execute external script even if no alert is detected (counter alert for monitoring software)
Notes:
expiredlicense.bat example updated to use current folder instead of forced C:\Charon
sendmail_html.ps1 and sendmail.ps1 scripts updated with new -folder parameter which is sent by default by the expiredlicense.bat script
02-Oct-2018 - Version 1.8
new parameter added "-haspview <hasp_view.exe location>" to specify the location of the hasp_view.exe file.
If this parameter is not specified then the script searches for the location itself depending on Charon installation folder.
It is used in case a license server performs the checks instead of the server hosting the Charon virtual machines.
The "-usevanilla" parameter is ignored if this parameter is defined.
new parameter added "-ini <file>" to specify a file where the -folder, -nbdays, -nbhours, -usevanilla, -haspview and -tick parameters can be stored.
Priority goes to the parameters passed in the command line then those in the specified file.
The file is used to facilitate updates in the parameters passed in the tasks scheduler (update the file instead of the task).
04-Oct-2017 - Version 1.7
Output colors reviewed for better readability in interactive mode
Write-Host and Write-Eventlog now in the same function
27-Sep-2017 - Version 1.6
Update for compatibility with new licenses including time in the expiration date resulting in script failure
19-Sep-2017 - Version 1.5
Added an option to use the vanilla hasp_view.exe file as a workaround for the bug mentioned above
18-Sep-2017 - Version 1.4
Some updates on displayed errors (colored)
Check added for license expiration date display, following bug introduced in Charon-AXP/VAX/PDP builds 18304 and 18305 (hasp_view.exe v1.26)
25-Aug-2016 - Version 1.3
Updated for CHARON-AXP/VAX V4.8 ("CHARONLocation" registry update)
02-Jun-2016 - Version 1.2
Minor update on debug display + product name issue with spaces removed solved