Forum Discussion
John_Conrad_418
Nimbostratus
Mar 03, 2010Write to Logon Log - Session Variable Existence
Does anybody know of a way to log whether or not a session variable exists?
I am attempting to design a process for predicting potential problems before I enforce new hotfix requirements in Protected Configurations.
My thought was that I could write a "write to logon log" event, but in that the "%session.win_info.hotfixes.%" does not return a value, I get the same result (nothing) whether the hotfix was found or not.
I know that I could return the %session.win_info.hotfixes.hf_list%, but that is pretty messy and I would prefer to return a "1 or 0", "true or false" on the actual hotfix. I suppose I could also write my own registry check and look for the result, but again with the session variables there, it would be nice if I could just write a rule that looked for their existence.
3 Replies
- Mike_61719
Cirrus
Yes, it is possible. The best way would be to enable the IE and HF inspection piece within the pre-logon sequence. Once you enable this, it will spit out the list of variables when you enable the variable tracking.
Go to Device Management -> Troubleshooting tools -> Save user's session variables to Logon Reports.
You can then create a custom variable check. - John_Conrad_418
Nimbostratus
Sorry, maybe I didn't give enough detail.
I'll start by saying, I am a little worried about tuning on "Save user's session variables to logon reports" in production. Do others do this in standard "everyday" operation?
I have the Extended Windows and IE checker enabled and "Save user's session variables to logon reports" turned on on my dev box. So, I am seeing entries like this in the logon log...
...
Session Variable %session.win_info.hotfixes.hf_kb893066%= ' '
...
If I create a Write to Logon Log check
REAL HF: %session.win_info.hotfixes.hf_kb893066%,
BOGUS HF: %session.win_info.hotfixes.hf_kbxxxxxx%,
The logon log reports the following (with no way to distinguish that the "Bogus HF" variable doesn't exsist):
Real HF: ,
BOGUS HF: ,
I wish that the Extedned Windows and IE checker returned an actual value along with the the session variable. Then I could distinguish between a patch being present as "1" or being missing as "null".
Session Variable %session.win_info.hotfixes.hf_kb893066%= ' 1'
Beyond that, there is not much documentation for the logger, so I was hoping that somebody might have found a way to look for the mere presence of the session variable, regardless of the value returned. Something like....
EXIST(%session.win_info.hotfixes.hf_kb893066%) - Mike_61719
Cirrus
Right, it used to work. It would appear to be a bug with FP HF6.0.3 & at least 6.0.3.2.1.
I would change it, test on the 6.1.01 box but I am busy at the moment.
Create a ticket with F5 support.
**EDIT**
If the HF is installed in SP3, you can do a SP check and that appears to work.
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
