View previous topic :: View next topic |
Author |
Message |
spetterpoep
Joined: 30 Apr 2012 Posts: 9
|
Posted: Mon May 14, 2012 6:21 am Post subject: slow shell scripts |
|
|
Hello,
I have a passive RMA connection with an external computer. On this external pc is an autoIT script which i start with a powershell shell script on the hostmonitor. This powershell scripts just contains the path to the test so there shouldn't be any delay here. The autoIT script opens internet explorer and logs in into a website. It runs perfectly (and fast) when I execute it on the external pc itself but when I execute it from the hostmonitor, internet explorer takes ages to load each page. Friday this was all working perfectly and now it's acting strange.
Note that I am still using a trial version of hostmonitor... So maybe this is the problem? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon May 14, 2012 6:30 am Post subject: |
|
|
Quote: | Note that I am still using a trial version of hostmonitor... So maybe this is the problem? |
No, this should not be a problem.
What Windows do you use?
Service Pack?
Internet Explorer?
HostMonitor version?
RMA?
As I remember there is some similar (slow processing) problem related to IE on Windows Vista+ when HTTPS protocol is used...
Quote: | I have a passive RMA connection with an external computer. On this external pc is an autoIT script which i start with a powershell shell script on the hostmonitor |
Not sure I understand. What application starts script?
RMA? RMA started as service? application?
Regards
Alex |
|
Back to top |
|
|
spetterpoep
Joined: 30 Apr 2012 Posts: 9
|
Posted: Mon May 14, 2012 6:36 am Post subject: |
|
|
OS:Windows 7 Enterprise SP1
IE 9
hostmonitor version 9.10
RMA 4.43
RMA is started as an application. autoIT is a scripting language where you can access window controls with. So our scripts starts IE, goes to a certain website and adds some information. Note that the autoIT scripts is an .exe file. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon May 14, 2012 7:22 am Post subject: |
|
|
What protocol is used? HTTP? HTTPS?
Regards
Alex |
|
Back to top |
|
|
spetterpoep
Joined: 30 Apr 2012 Posts: 9
|
Posted: Mon May 14, 2012 7:29 am Post subject: |
|
|
KS-Soft wrote: | What protocol is used? HTTP? HTTPS? |
HTTPS |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon May 14, 2012 7:59 am Post subject: |
|
|
Probably this problem caused by 2 Windows API functions
- WinHttpGetIEProxyConfigForCurrentUser
- WinHttpGetProxyForUrl
that sometimes works very very slow on Windows Vista+ in service mode with HTTPS protocol.
They may work very slow on Windows 7 regardless of service/application mode.
We tried to find explanation in Microsoft manuals but did not find anything usefull.
Possible workarounds:
- use Windows XP/2003
- set "direct to net" connection option (if such option available thru AutoIT, I am not sure)
Regards
Alex |
|
Back to top |
|
|
spetterpoep
Joined: 30 Apr 2012 Posts: 9
|
Posted: Mon May 14, 2012 8:42 am Post subject: |
|
|
I found the problem... I ran rma_cfg.exe as administrator and that caused the problem... Thanks for your help |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon May 14, 2012 8:55 am Post subject: |
|
|
Not sure how this can lead to any problems... rma_cfg.exe does not perform any tests and does not start any scripts. Probably you started RMA using rma_cfg.exe so it was running under udmin account as well.
Normally you should run RMA under admin account, otherwise it will not be able to perform some tests against remote systems.
And this should not lead to such problem
Probably bugs in Windows WinHttpGetProxy functions lead to problems under some user-specific settings
Regards
Alex |
|
Back to top |
|
|
|