KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

slow shell scripts

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
spetterpoep



Joined: 30 Apr 2012
Posts: 9

PostPosted: Mon May 14, 2012 6:21 am    Post subject: slow shell scripts Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon May 14, 2012 6:30 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
spetterpoep



Joined: 30 Apr 2012
Posts: 9

PostPosted: Mon May 14, 2012 6:36 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon May 14, 2012 7:22 am    Post subject: Reply with quote

What protocol is used? HTTP? HTTPS?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
spetterpoep



Joined: 30 Apr 2012
Posts: 9

PostPosted: Mon May 14, 2012 7:29 am    Post subject: Reply with quote

KS-Soft wrote:
What protocol is used? HTTP? HTTPS?

HTTPS
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon May 14, 2012 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
spetterpoep



Joined: 30 Apr 2012
Posts: 9

PostPosted: Mon May 14, 2012 8:42 am    Post subject: Reply with quote

I found the problem... I ran rma_cfg.exe as administrator and that caused the problem... Thanks for your help
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Mon May 14, 2012 8:55 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index