New second custom user prompt/reply feature for SSH and newly configured servers


Version 1.x users: You need OL Monitor version 1.9.3c or above to use this feature.

Version 2.x users: You need OL Monitor version 2.1.5a or above to use this feature.

To help with challenges connecting to newly configured servers that have additional prompts, we have added handling to the macro for a second user-defined custom prompt and reply. Space is limited in the OL Monitor configuration screen, so for now using the new feature will require manually editing the .INI file. This article explains how to insert and edit 2 new items into your .INI file.


Note: This article presumes you are familiar with and are using the first custom prompt and reply feature. More info on that feature here:



Step 1:
Open OL Monitor and go into options. In settings location options, select INI file if it is not already selected. Click OK.
From the main OL Monitor screen select Help-Locate OLProcessLog. Click OK on the info box that pops up and close OL Monitor.
Step 2:
A Windows File Explorer window will have launched. In the folder locate the OLMon.INI file and double click to edit in Notepad.
You will see all your settings listed.
Locate the setting named “UserPrompt0” (without quotes)
near it you should also see a setting named “UserReply0”.
We will use these as a template to create 2 similar entries.
Copy the 2 lines and paste a copy of them below. Change the new settings to read ” UserPrompt1″ and “UserReply1”.
After the = signs on each setting name is the setting value. Edit the values to handle the additional Sunquest server prompts. See example screenshot below:
UserPrompt1=”PASSWORD:”
UserReply1=”WHATEVERPASSWORD”
Note: Be sure the UserPrompt1 matches exactly as the prompt is appearing in Sunquest.
Save and close the file.


Note: This article presumes you are familiar with and are using the first custom prompt and reply feature. More info on that feature here:

Misc tab in Online Manual
http://olmonitorblog.azurewebsites.net/?s=custom

Step 1:
Open OL Monitor and go into options. In settings location options, select .INI file if it is not already selected. Click OK.
From the main OL Monitor screen select Help-Locate OLProcessLog. Click OK on the info box that pops up and close OL Monitor.
Step 2:
A Windows File Explorer window will have launched. In the folder locate the OLMon.INI file and double click to edit in Notepad.
You will see all your settings listed.
Locate the setting named “UserPrompt0” (without quotes).
Near it you should also see a setting named “UserReply0”.
We will use these as a template to create 2 similar entries.
Copy the 2 lines and paste a copy of them below. Change the new settings to read “UserPrompt1” and “UserReply1”.
After the = signs on each setting name is the setting value. Edit the values to handle the additional Sunquest server prompts. See example screenshot below:

Note: Be sure the UserPrompt1 matches exactly as the prompt is appearing in Sunquest.
Save and close the file.

Step 3:
Now you can restart OL Monitor.
When Smarterm launches, click on the Smarterm window to keep it in the foreground.
As the macro launches, it reports its status on the Smarterm terminal window.
During the initial login process, in the upper right corner you should see the values of your first and second custom user prompt/reply combos displayed briefly. (The actual reply value for the second combo is hidden. )


At the same time you can see if the macro is now able to get past the new prompts and login to Sunquest.
If you get login errors, make sure your custom prompts match exactly as they appear on the Sunquest screen, and that the replies you have defined are correct.

Problems with logging in to newly configured Sunquest servers and/or servers with new security features

Keywords: SSH, SSL, SSO, PASSWORDS, CUSTOM PROMPT/REPLY FEATURE, LOGIN ISSUES

Increasingly, OL Monitor users have been running into problems with the macro logging in to newly configured Sunquest servers and/or servers with new security features.  SSL, SSO, and some Linux servers present additional hurdles at login that the macro is not programmed to handle.  For most cases, particularly SSL, the Custom Prompt/Reply feature has been adequate to get past additional prompts.  However, some servers present more than one additional prompt to deal with.  For example, an additional Username prompt appears and then a Password prompt:

  USERNAME:

  PASSWORD:

Presently, OL Monitor is only equipped to handle one of these new prompts using the Custom Prompt feature.

Therefore, a user would have to intervene on the SmarTerm macro and type in the USERNAME or PASSWORD to get the macro to the FUNCTION prompt.

However, there is nothing stopping you from recording your own login macro to fix this problem.  Here are instructions on recording the login macro and then adding a line of code to call the OL Monitor macro:

Step 1:  Close OL Monitor and SmarTerm.  Launch SmarTerm and create a new (SSL or Telnet) session.  Configure to connect to your Sunquest server.

Step 2:  SmarTerm should ask if you want to record a login macro; click yes.

Step 3:  Login to Sunquest.  The login macro should stop recording automatically when you reach the FUNCTION prompt.  Otherwise, click stop.

Step 4:  Save the new session and close SmarTerm.  Re-launch SmarTerm and load the new session you just created.  Ensure that the new session logs you into the new system.

Step 5:  Now we will modify the login macro to call the OL Monitor macro.  Press the green button to view macro options.  From the drop-down list at bottom, choose “Pre-Defined session macros”.              In the macro list that appears, choose “login macro”.

Step 6:  Press the edit button to edit the macro.  You will see the macro code.  It is not important to understand this code.  We just need to find the end of the macro code.

Scroll down till you find the line that says End Sub

Place the cursor directly above that line and type Call Ol_Mon.

Click Save and exit the editor.

Step 7:  Close SmarTerm and re-launch the new session to test again. 

You should see the login macro complete, and then the OL Monitor macro take over and begin stepping through the OL log menus.

Step 8:  At this point, if the OL macro has taken over control successfully we are ready to deploy the new session to the OL Monitor folder. 

Click the green triangle button and stop the macro.

Click File- Save As. 

Browse to the OL Monitor folder in Public Documents.  The path is:

C:\Users\Public\Documents\OL_Monitor

Select the existing OL_Monitor.stw session file and click save.

Yes overwrite existing file.

Step 9:  Now close SmarTerm and launch OL Monitor.

Issues with Sunquest 8.2 on Linux servers via Smarterm SSH

Recently had to deal with an absolutely befuddling problem helping a system that was upgrading to Sunquest 8.2 hosted on a Linux server (using SSH of course).
In the normal process, we simply switch the session type to SSH in OL Monitor:

And point the IP to the new server. Sometimes, we have to use the Custom Login/Reply feature to get past an additional server prompt as described here.

If using an older version of Smarterm, you may have to use this method.

However, absolutely none of this was working. If you are having this new problem, here are what the symptoms look like:

Symptoms:
1: Smarterm launches, and you are presented with a new login password challenge such as:

The macro continues but never gets past this line. (Normally we would fix this with the Custom Login/Prompt feature) but we verified the password was being input correctly, yet nothing was happening.

2: Smarterm launches, you are presented with some popups from Smarterm about accepting the crypto key and whatnot, and also a popup asking for password. After successfully entering these, you simply get a blank cursor:

No degree of pressing Enter or F11 gets you past this cursor.

Solution:

The default answer when inquiring about this problem was to upgrade to the latest Smarterm 2016 version. However, after downloading that version from Esker, the problem remained. After an somewhat fruitless exchange with Esker support and an incredible amount of detective work, the LIS manager found a little known patch exists for this very problem:

Here is a Link to the full document

But there is no link to the patch in this document! Compounded by the fact that accodring to the Esker rep: “SmarTerm support has officially moved to Esker All Access”. So, you need to search for your answer here:
https://esker.influitive.com/join/smarterm

Lucky for you we found the answer here:

So finally, here is the link to the patch.
http://download.esker.com/tun_plus/version160/patch/ESK_HA2016_FT009715.zip

Brian’s answer is a godsend, but it’s a little sparse on the details:
-You MUST run command prompt as Administrator
-The built in Admin account may not have the same network shares as the current user, so you may need to copy the file over to the C drive somewhere.
-According to the bulletin: “Applying this patch to earlier versions is at your own risk, and is frowned upon.” (“Frowned upon” is an interesting word choice, so one wonders if it might work on previous versions? But who would be so bold to court such danger?)
-Not everyone is a DOS command line wiz, so here is a screenshot if you need a walkthrough:

Ready for Windows 10: Introducing OL Monitor 2.0!

(Still fully compatible with Windows 7 of course)

It’s here!

After months of coding the new OL Monitor is ready.  2.0 sports the Windows 10 look and also now supports Windows 7 styles as well.  Some key new features have also been added along with one that I had previously believed was not possible.  This is just the beginning as more new features will be added soon. 

New look

New OL Monitor (bottom picture), supports the Windows 10 flat style.  Fonts are easier to read and borders are less jarring.  Part of reason for enabling these aesthetic styles was to be compliant with recommended Microsoft program guidelines.

Here is a demo:

Row Backcolors

But what’s probably really standing out are the row backcolors.  This is one of the most commonly requested features.  It was previously not possible with the standard Microsoft listview control.  This control has been updated and replaced.  It is now possible to specify a backcolor with each of your Turn-Around-Times, but that’s not all!

Filter colors and alert messages

New users of OL Monitor often get confused about the difference between filters and TAT’s.  We do coloring with TAT’s and filter in/out tests using filters.  Well it’s about to get more confusing (and more fun).  There are many situations where you might want to throw in coloring with your inclusive filter.  In addition, it would be very useful to use the more flexible filter language to define colors for special situations.  Now all that and more is possible.  The filter tab now has a new form where you can define a color for your inclusive filter.  Or you can define filters that simply affect color, and do not include or exclude a test.  How’s that for flexibility?!

The new filter color form allows you to see what your color combo is going to look like.  Since there is the possibility of a conflict between the TAT coloring and filter coloring, you can choose whether to override the TAT color.
Notice also that you can have a MessageBar message pop up when the filter condition is met.  The possibilities are endless here.  You can inform techs about important issues at exactly the right time and under certain conditions.  To help the tech quickly identify what test matches the condition, the MessageBar message color will match that of the filter color. Finally these messages will disappear after 15 minutes if not cleared manually, so that the screen does not become cluttered with old information. 
I have a few more features planned for this including the ability to add info about the test into the message with variables such as %AccNum% etc.

What’s happening to current (Ol Monitor 1.X) versions?

OL Monitor 2.0 is a major version upgrade and thus is not a free update.  Development of further features for OL Monitor 1.X has now ended.  Ol Monitor 1.X will still be supported.  Any support issue that cannot be resolved quickly (5-10 minutes) via email will require an extended support plan or support ticket opened.

Price changes

  • At this time pricing for new OL Monitor licenses will remain the same.
  • Is my 1.X OL Monitor license transferable to 2.X?
    No, but you can get an upgrade to your current version at a discount.  To get the discount you must discontinue use of your current version after receiving the replacement 2.X version.  Here is more information about the upgrade offer.
  • Discounts for upgrades scale down as time passes, but you can lock in your savings by requesting a quote now (quotes remain valid for 3 months)
  • As announced in the August 2018 newsletter, there will be a small maintenance fee required for each Ol Monitor license purchased/upgraded hereafter.  The maintenance fee has long been avoided but is necessary to help cover the costs of maintaining the website, documentation, development, etc.

New Years ProcTime fix

Every January 1st after midnight, OL Monitor incorrectly calculates the ProcTime on previous year’s tests due to the fact that the Collect Times and Receive Times appear in the logfiles as month/day only, not specifying year. Year is pulled from log date but on New Years Day (and beyond if tests hang unresulted) this produces a nonsensical negative number. This was pointed out by a member of the Facebook group: “Medical Laboratory Scientists – MLS/MLT(ASCP), AMT, AAB”. (I highly recommend this group for any MLS’s/MLT’s/Lab personnel as it is very informative and entertaining.) As promised, the bug has now been fixed in version 1.90q.

Before:

After:

This issue hasn’t gotten much attention in the past since labs with OL Monitor typically get tests turned out lightning fast, but finally one tech was fast enough to catch it.
Many thanks to the group member for pointing out this long-ignored bug!

Getting past SSH prompts in OL Monitor macro. “Stringwait has timed out”

Previous versions of Smarterm had a pretty involved series of steps to save the SSH connection password.  This appears to be gone in recent versions and we are presented with a new step in the login process:

So what a lot of people are running into is that the macro will hang up at this point and you start getting errors like
“Stringwait has timed out 4 times. Retrying”, “Loops exceeded, aborting.”, and/or “OL >Report menu loop: timeout”.

The prompt will be different for your server.  The workaround to this is to use the custom prompt/reply feature in OL Monitor settings.  To resolve the issue:

  1. Let the macro run to the point where it hangs up as above.
  2. Copy the prompt text Ex: “<ALAB>@<laklabtemp>’s password: “
  3. Paste the text into the custom prompt box in OL Monitor settings
  4. Type in the password in the custom reply box in OL Monitor settings

The macro should reload with the new settings after about 10 seconds but you may still need to close OL Monitor and restart to get the macro working.

Still having issues?:

You can try closing OL Monitor.
Open Smarterm by itself on the machine.
Create a new SSH session to the Sunquest server.
Try to connect, and it will prompt you with the User and Password.
At some point during this, you will be asked to accept the RSA fingerprint to the known HOSTS file, click Yes to all.
See if you can get logged into Sunquest after all this and get to the FUNCTION prompt.
If you can, you don’t need the patch probably and adding that RSA to HOSTS may fix your problem.
If you cannot, and the cursor just hangs and freezes, you need the patch, maybe even need Smarterm 2016 since the patch may or may not work on previous versions.

Still not working?:
Instead of putting the password prompt and reply into the custom login box, put the UserID prompt and reply:

New updater and update notifier for OL Monitor

Youtube demo on Updater/Notifier: https://youtu.be/FsPZEVhrKaw

The old updater that was integrated with the installer was having a number of issues.  Although it seems to be working now, I felt we could do a lot better.  Now included in versions 1.90m and higher is a new and vastly improved updater:
Features of updater:

  • Checks your current version and lets you know if a new version is available.
  • Downloads and launches new version installer if you click yes on update.
  • Keeps a list of your downloaded versions in case you want to rollback later.
  • After downloading the new version, you can click on “What’s new” to see changes between your current version and the new one.
  • Several command line switches for IT pros to utilize.

To use the new updater from OL Monitor (if you have version 1.90m or higher), just click Help-Check for Update:

Don’t have version 1.90m or higher?  No problem, you can get it with the Update Notifier tray application!  The notifier adds a lot to the updater.
Features:

  • Periodically check for updates and get notified
  • Notifications via Windows Tray popup or OL Monitor messagebar
  • Can have updates automatically install
  • Stays out of the way as an icon in Windows Tray

To learn more about these applications see the online help here:

These apps are for registered users of OL Monitor only, contact me for information.

 

Problems with the Public folder

Symptoms of this problem:

  • The Smarterm session is trying to connect to the wrong IP address.  You have set the IP address in Ol Monitor setting but Smarterm is not using that IP.
  • Ol Monitor not refreshing.  Getting message “unable to locate…”
  • Ol Monitor is losing settings changes and you have been using ini file for your settings locations
  • Lots of little issues can crop up when access to this folder gets limited.  Ol Monitor can be working fine and the issue waits to come up after changes were made, Ol Monitor was reinstalled, or the pc was rebooted.

Lately this has been happening more and more.  The problem is that the Public folder was designed to be accessible to all users, making it ideal for storing Ol Monitor’s files which are typically shared between users.  Sadly the the scourge of malware and viruses have found ways to exploit the geniality of the Public folder.  So as part of IT security policy it is getting locked down.  So a call to IT may be necessary to restore access to this folder.  They can specify which programs need access to the folder and avoid opening it up to all users.  The programs which need access are Olmonitor.exe and Stoffice.exe (some other versions of Smarterm may not be named Stoffice.exe)

Below is a workaround that may work for you if you have enough security to change folder access.  Otherwise it should give the IT analyst an idea of what the problem is.

OlMonitor needs access to the following folder:
“C:\Users\Public\Documents\OlMonitor”
You may be able to do this yourself or you might need to get IT to do it for you.

Here are some brief instructions if you are familiar with this.  Otherwise you may want to get IT to help you because sometimes even if you are an admin user they seem to still restrict certain things.

Browse to the folder:

Right-click OlMonitor and select properties.
In the properties box select security:

Then click Edit and you should get this window:

Click Add and the following box comes up.

This is where it gets a little tricky, you can put your username or email into the box and click Check Names.  If you got it right it will underline your name:

Otherwise you will get an error box.  You can try using your windows logon name or your email if your system uses that.  Another thing you could do is add full control of the folder to the USERS group.
It’s a bit of a hassle and takes trial and error and sometimes you end up having to get IT to help anyway if they haven’t given you total admin power over that pc.

Ol Monitor Updater error messages

   Lately there have been some issues with the Ol Monitor updater.
The short answer is: a: click past the error messages, be unreasonably patient, and it eventually works, or
b: use the direct download links I sent to you in email.

If you use the updater here is what to expect:
1. You will get a box saying “Validating AutoUpdater”.

At this point one would assume it has frozen because the validation takes a long time (About 120 seconds), but it has not.

2. You will get the first error box.  Although it recommends ‘No’, click ‘Yes’:

3. Another wait box appearing to be frozen:

This took about 120 seconds on my pc.

4. 2nd ‘error’ message.

This time it recommends ‘Yes’ and it finally takes you to the update.

What happened to the updater?
Thraex software has sadly closed shop.  Thraex produced the Astrum installer software used to install and update Ol Monitor.  As installers go, Astrum was the best and slickest in my opinion but I guess they weren’t marketing enough.  Since their website is down the updater is unable to connect to update itself, but it still works just fine to update Ol Monitor.  I haven’t found a suitable replacement for Astrum as of yet.