Forum Discussion
wtl1_136682
Mar 14, 2018Nimbostratus
custom clock format variable in message box
I would like to display the av db time variable in a message box in human readable format. I was trying to create a custom variable that would format it to human readable but it doesn't seem to work....
Stanislas_Piro2
Mar 14, 2018Cumulonimbus
You can use following variable assign :
session.av_time_human_readable = clock format [mcget {session.check_software.last.av.item_1.db_time}]
or
session.av_time_human_readable = return [clock format [mcget {session.check_software.last.av.item_1.db_time}]]
but not with brackets starting line.
then in the message box, use following text:
Last AV DB time is %{session.av_time_human_readable}
to answer to the other question, APM can't read irule variables, only session variables. so after executing the irule code, use ACCESS::session data set command to store irule variable to session variable.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects