Automic Workload Automation

 View Only

  • 1.  How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 11, 2025 06:42 AM

    Dear community,

    we recently came across the possibility to use the feature EXECUTE_ON_CERTIFICATE_EXPIRING in UC_SERVER_TLS_SETTINGS as described in the documentation filed under "Server Certificate Management".

    It's stated:

    The following script variables can be read from the read buffer:

    • EXPIRATION_DATE#

      Certificate expiration date in UTC.

    • SERVER_NAME#

      Name of the relevant server process.

    Question

    How do we have read those two variables in process tab in a CALL-object? We tried it the following way but didn't succeed:

    ! Read the buffer
    :READ &EXP_DATE#     ,,, "EXPIRATION_DATE#",
    :READ &SV_NAME#      ,,, "SERVER_NAME#",
     
    ! Put messages
    :PUT_ATT SUBJECT = "Zertifikats-Monitoring: &$CLIENT_DESC# - &$SYSTEM# [&$CLIENT#]"
    :PUT_ATT CALL_TEXT = '&EXP_DATE# / &SV_NAME#'
    The objects remains generating...
    Any help out there?
    Kind regards
    André


    ------------------------------
    comdirect – eine Marke der Commerzbank AG
    ------------------------------


  • 2.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 11, 2025 09:53 AM

    Hi Andre,

    you have to use the exact name of the script variables in the READ command:

    :read &EXPIRATION_DATE#,,,
    :read &SERVER_NAME#,,,

    Afterwards you can create new variables and assign the content of those.

    regards,
    Peter



    ------------------------------
    Automic Certified Professional/Expert & Broadcom Knight

    For AUTOMIC trainings please check https://www.qskills.de/qs/workshops/automic/
    ------------------------------



  • 3.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Broadcom Employee
    Posted Feb 12, 2025 02:46 AM
    Edited by Markus Embacher Feb 12, 2025 03:04 AM

    Hi André,

    please have a look at the syntax of the :READ command. There are a couple of examples in the documentation:

    https://docs.automic.com/documentation/webhelp/english/AA/24.3/DOCU/24.3/Automic%20Automation%20Guides/Content/Script/Reference/READ.htm

    The first parameter has to be exactly the name of the variable which you would like to read.

    Regards, Markus




  • 4.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 17, 2025 05:09 AM
    Edited by Andre Eymann Feb 17, 2025 05:10 AM

    Thanks a lot Peter!

    I would try it the following way within a CALL-Object (process tab).

    Does that look good to you?

    ! read buffer variables
    :read &EXPIRATION_DATE#,,, 
    :read &SERVER_NAME#,,, 
     
    ! set local variables
    :SET &EXP_DATE# = &EXPIRATION_DATE#
    :SET &SVR_NAME# = &SERVER_NAME#
     
    ! put messages
    :PUT_ATT SUBJECT = "Zertifikats-Monitoring: &$CLIENT_DESC# - &$SYSTEM# [&$CLIENT#]"
    :PUT_ATT CALL_TEXT = '&EXP_DATE# / &SVR_NAME#'



    ------------------------------
    comdirect – eine Marke der Commerzbank AG
    ------------------------------



  • 5.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 17, 2025 08:28 AM

    Hi Andre,

    this looks OK.

    regards,
    Peter



    ------------------------------
    Automic Certified Professional/Expert & Broadcom Knight

    For AUTOMIC trainings please check https://www.qskills.de/qs/workshops/automic/
    ------------------------------



  • 6.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 18, 2025 02:54 AM

    Thanks Peter.

    I assume it might work if the call gets triggered/executed by the system. If i execute the call object with my user it hangs "generating".



    ------------------------------
    comdirect – eine Marke der Commerzbank AG
    ------------------------------



  • 7.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 19, 2025 01:35 AM

    Hi Andre,

    some days ago, I have implemented the mechanism on my v24.3 system - it's working as expected.

    If you have started the CALL manually, there must be a dialog "Eingabeaufforderungen" waiting for the input of the read commands.

    regards,
    Peter



    ------------------------------
    Automic Certified Professional/Expert & Broadcom Knight

    For AUTOMIC trainings please check https://www.qskills.de/qs/workshops/automic/
    ------------------------------



  • 8.  RE: How to read e.g. EXPIRATION_DATE# from buffer (for EXECUTE_ON_CERTIFICATE_EXPIRING)

    Posted Feb 19, 2025 03:11 AM

    That sound perfect Peter.

    I think this issue can be closed then.



    ------------------------------
    comdirect – eine Marke der Commerzbank AG
    ------------------------------