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

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
thomasschmeidl
Posts: 166
Joined: Sat Apr 15, 2006 2:14 pm
Location: Germany, Bavaria

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

Post by thomasschmeidl »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: HMScript does not write to Comment Line after upgrade to

Post by KS-Soft Europe »

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
thomasschmeidl
Posts: 166
Joined: Sat Apr 15, 2006 2:14 pm
Location: Germany, Bavaria

Post by thomasschmeidl »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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

Regards
Alex
thomasschmeidl
Posts: 166
Joined: Sat Apr 15, 2006 2:14 pm
Location: Germany, Bavaria

Post by thomasschmeidl »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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.
thomasschmeidl
Posts: 166
Joined: Sat Apr 15, 2006 2:14 pm
Location: Germany, Bavaria

Post by thomasschmeidl »

Thanks - now it works as it did before

Thomas
Post Reply