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

HMScript does not write to Comment Line after upgrade to 7.x

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



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Tue Jan 22, 2008 3:17 am    Post subject: HMScript does not write to Comment Line after upgrade to 7.x Reply with quote

HM 7.07 run as service on W2003 SP2

We use an Action Profile with the Action "Execute HMScript"

The script contains the line:
SetTestParam %Testname% CommentLine4 Fehler am %dd%.%mm%.%yy% um %hh%:%nn%

This script worked well, but now (after upgrade to 7.06 / 7.07 ) we realize, that it does not work any more with the existing tests (=nothing is written to the comment line).
There are no errors in the system log.

However when you create a new test and assign the action profile to this test, it works.

Is it possible that the format of the test list was changed when upgrading to HM 7.x so that HMScript cannot write to the comment lines?

Regards

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



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Jan 22, 2008 3:55 am    Post subject: Re: HMScript does not write to Comment Line after upgrade to Reply with quote

thomasschmeidl wrote:
This script worked well, but now (after upgrade to 7.06 / 7.07 ) we realize, that it does not work any more with the existing tests (=nothing is written to the comment line).

Sorry, we cannot reproduce the problem. Please, verify start up settings for this particular "Execute HMScript" action.
Any info in "System Log"? If "Record info about successful actions" and "Record info about failed actions" options are enabled in "Options" -> "System Log" tab, HostMonitor will write a record into "System Log" about every performed action, whatever successful or failed. Probably, you have enabled "Time Restriction" option ofr this action?

thomasschmeidl wrote:
Is it possible that the format of the test list was changed when upgrading to HM 7.x so that HMScript cannot write to the comment lines?
Do not think the problem is related to upgrade. We changed nothing in this part.

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
thomasschmeidl



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Tue Jan 22, 2008 11:07 am    Post subject: Reply with quote

Thanks for your prompt reply, Max

In our system the problem is reproducable.

There are two tests:
Test A is "old" (set up some months ago)
Test B is newly created

Both tests are assigned to the same Action Profile containing one single action (=run HMS script)

In both tests Quick log says "Execute HMS script" and "Done"

But only in Test B the CommentLine is changed

I tried several "old" tests and it's all the same with them. The script only works with the new ones.

??

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



Joined: 16 May 2006
Posts: 2832

PostPosted: Tue Jan 22, 2008 11:14 am    Post subject: Reply with quote

Hm. Strange. Could you export one of the "old" tests, that does not work properly, and send it to support@ks-soft.net? What version of HostMonitor did you utilize before upgrade?

Regards,
Max
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Jan 22, 2008 11:50 am    Post subject: Reply with quote

Please provide your script as well.
Do you use commands like SetCurrentFolder or IncludeSubfolders?

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



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Tue Jan 22, 2008 4:03 pm    Post subject: Reply with quote

I will send the file export.txt with an 'old' test and
the file test.hms with the script.

Your questions:
- I don't use SetCurrentFolder or IncludeSubfolders
- we upgraded from 6.84

Regards

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



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Jan 22, 2008 5:56 pm    Post subject: Reply with quote

Your script does not work because test name contains space and you use %TestName% variable without quotation marks.
Simply add "": SetTestParam "%Testname%" ...
Old version of HostMonitor should not accept your script either, but it works somehow...

Regards
Alex


Last edited by KS-Soft on Thu Jan 24, 2008 9:32 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
thomasschmeidl



Joined: 15 Apr 2006
Posts: 166
Location: Germany, Bavaria

PostPosted: Wed Jan 23, 2008 3:55 pm    Post subject: Reply with quote

Thanks - now it works as it did before

Thomas
Back to top
View user's profile Send private message
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