{"id":1304,"date":"2018-11-28T02:57:51","date_gmt":"2018-11-28T02:57:51","guid":{"rendered":"http:\/\/olmonitorblog.azurewebsites.net\/?p=1304"},"modified":"2021-04-07T22:20:51","modified_gmt":"2021-04-07T22:20:51","slug":"getting-pass-ssh-prompts-in-ol-monitor-macro","status":"publish","type":"post","link":"http:\/\/olmonitorblog.azurewebsites.net\/?p=1304","title":{"rendered":"Getting past SSH prompts in OL Monitor macro.  &#8220;Stringwait has timed out&#8221;"},"content":{"rendered":"<p>Previous versions of Smarterm had a pretty <a href=\"http:\/\/olmonitorblog.azurewebsites.net\/?p=75\">involved series of steps<\/a> to save the SSH connection password.\u00a0 This appears to be gone in recent versions and we are presented with a new step in the login process:<br \/>\n<img loading=\"lazy\" class=\"alignnone wp-image-1305 size-full\" src=\"\/wp-content\/uploads\/2018\/11\/image002.png\" alt=\"\" width=\"826\" height=\"130\" srcset=\"\/wp-content\/uploads\/2018\/11\/image002.png 826w, \/wp-content\/uploads\/2018\/11\/image002-300x47.png 300w, \/wp-content\/uploads\/2018\/11\/image002-768x121.png 768w, \/wp-content\/uploads\/2018\/11\/image002-700x110.png 700w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/><br \/>\n<img loading=\"lazy\" class=\"alignnone size-full wp-image-1306\" src=\"\/wp-content\/uploads\/2018\/11\/ScreenShot271.jpg\" alt=\"\" width=\"574\" height=\"51\" srcset=\"\/wp-content\/uploads\/2018\/11\/ScreenShot271.jpg 574w, \/wp-content\/uploads\/2018\/11\/ScreenShot271-300x27.jpg 300w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>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<br \/>\n&#8220;Stringwait has timed out 4 times. Retrying&#8221;, &#8220;Loops exceeded, aborting.&#8221;, and\/or &#8220;OL &gt;Report menu loop: timeout&#8221;.<\/p>\n<p>The prompt will be different for your server.\u00a0 The workaround to this is to use the <a href=\"http:\/\/olmonitor.com\/ManualM\/window_3_6.htm#id_9\">custom prompt\/reply feature<\/a> in OL Monitor settings.\u00a0 To resolve the issue:<\/p>\n<ol>\n<li>Let the macro run to the point where it hangs up as above.<\/li>\n<li>Copy the prompt text Ex: &#8220;&lt;ALAB&gt;@&lt;laklabtemp&gt;&#8217;s password: &#8220;<\/li>\n<li>Paste the text into the custom prompt box in OL Monitor settings<\/li>\n<li>Type in the password in the custom reply box in OL Monitor settings<\/li>\n<\/ol>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1308\" src=\"\/wp-content\/uploads\/2018\/11\/ScreenShot267.jpg\" alt=\"\" width=\"190\" height=\"88\" \/><\/p>\n<p>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.<\/p>\n<p><strong>Still having issues?:<\/strong><\/p>\n<p>You can try closing OL Monitor.<br \/>\nOpen Smarterm by itself on the machine.<br \/>\nCreate a new SSH session to the Sunquest server.<br \/>\nTry to connect, and it will prompt you with the User and Password.<br \/>\nAt some point during this, you will be asked to accept the RSA fingerprint to the known HOSTS file, click Yes to all.<br \/>\nSee if you can get logged into Sunquest after all this and get to the FUNCTION prompt.<br \/>\nIf you can, you don&#8217;t need the patch probably and adding that RSA to HOSTS may fix your problem.<br \/>\nIf you cannot, and the cursor just hangs and freezes, you need the <a href=\"http:\/\/olmonitorblog.azurewebsites.net\/?p=1346\">patch<\/a>, maybe even need Smarterm 2016 since the patch may or may not work on previous versions.<\/p>\n<p><strong>Still not working?:<\/strong><br \/>\nInstead of putting the password prompt and reply into the custom login box, put the UserID prompt and reply:<br \/>\n<img loading=\"lazy\" class=\"alignnone size-full wp-image-1361\" src=\"\/wp-content\/uploads\/2018\/11\/usernameonhost.png\" alt=\"\" width=\"190\" height=\"53\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previous versions of Smarterm had a pretty involved series of steps to save the SSH connection password.\u00a0 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<\/p>\n<p><a class=\"moretag\" href=\"http:\/\/olmonitorblog.azurewebsites.net\/?p=1304\">Continue Reading&hellip;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[81,91,1],"tags":[],"_links":{"self":[{"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/1304"}],"collection":[{"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1304"}],"version-history":[{"count":6,"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/1304\/revisions"}],"predecessor-version":[{"id":1362,"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=\/wp\/v2\/posts\/1304\/revisions\/1362"}],"wp:attachment":[{"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1304"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/olmonitorblog.azurewebsites.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}