XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.5.6, 2.6.3
    • None

    Description

      Current Situation

      • Users of subscription licenses receive warnings and errors about expiration of licenses from the JOC Cockpit GUI.
      • Users would like to receive e-mail notification about upcoming license expiration and expired licenses.

      Desired Behavior

      • A Unix Shell implementation is available, see next chapter.
      • A JITL CheckLicenseJob Job Template should be added that implements the functionality of the Unix Shell solution.

      Unix Shell Solution

      • The attached Unix Shell solution is used to send e-mail in case of license expiration:
      • check-license.sh
        • Shell script applicable for Unix bash and the jq utility.
        • For usage run: ./check-license.sh -h
          • Example:
            ./check-license.sh --url=https://joc-2-0-primary.sos:7443 --user=root --password=root
            

            runs with defaults for a 60 days license expiration check

          • Example
            ./check-license.sh --url=https://joc-2-0-primary.sos:7443 --user=root --password=root --validity-days=90
            

            runs a 90 days license expiration check

        • The script returns exit code 2 for an expired license, exit code 3 for upcoming license expiration.
      • pduCheckLicenseShell.workflow.json
        Sample workflow to run the check-license.sh script and to forward output by mail.
        We might implement this from a new JITL Job that will be platform independent.

       

      Attachments

        Issue Links

          Activity

            People

              ur Uwe Risse
              ap Andreas Püschel
              Ajay Kumbhkar Ajay Kumbhkar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: