In the tests for virtual machines, I am using one of the Comment Lines to specify the corresponding virtual host and I display it in the Test Detail Area.
Unfortunately, our engineers are often moving the virtual machines to different hosts, so that I have to constantly adjust the tests' Comment lines.
Is there a way to automate this, assuming that I can dinamically find what virtual machine is in which host, either with a script or from a (always current) table. Updating this field once a day would be sufficient.
Another application would be to automatically put in a Comment line the IP which corresponds to the Test Properties' "Address" field, in case this address is a DNS or NetBIOS name.
TIA
Alex
A dynamic Comment line?
I am afraid I wasn't clear. The comment lines are indeed dynamic when one uses variables, but in my case the predfined variables would not solve the problem: for example, there is no predefined variable in HM which returns the host machine name for a virtual machine.
Also, the variable %hostaddr% that you recommended, does not display the IP, given the machine name.
Do you see a solution? Accepting function (script) calls in comment (and other) fields would probably be quite difficult to implement - for a relatively small advantage.
Could HMS scripts be a possibility? I saw an interesting HMS command SetTestParam. Maybe I can write a (CMD, PowerShell, VBS) script which gets the info I need and also creates a HMS script, which I then run from a HM test ...
What do you think?
Alex
Also, the variable %hostaddr% that you recommended, does not display the IP, given the machine name.
Do you see a solution? Accepting function (script) calls in comment (and other) fields would probably be quite difficult to implement - for a relatively small advantage.
Could HMS scripts be a possibility? I saw an interesting HMS command SetTestParam. Maybe I can write a (CMD, PowerShell, VBS) script which gets the info I need and also creates a HMS script, which I then run from a HM test ...
What do you think?
Alex
Sorry, I do not understand 
I though you change target system name/address specified for the test when you move virtual machine to anothert host.
Do you mean you need to change comment field for some test using 3rd party application? Then yes, this application may create HM Script file using SetTestParam or ReplaceTestParam command.
Also you may create test item that will check for such HM Script file and start it automatically (e.g. you may use File/Folder Availability or File Integrity test method).
Another option: you may use Telnet Service and some script that will connect to HostMonitor thru Telnet Service and use the same commands (SetTestParam or ReplaceTestParam) to change comment field.
http://www.ks-soft.net/hostmon.eng/teln ... /index.htm
Regards
Alex

I though you change target system name/address specified for the test when you move virtual machine to anothert host.
Do you mean you need to change comment field for some test using 3rd party application? Then yes, this application may create HM Script file using SetTestParam or ReplaceTestParam command.
Also you may create test item that will check for such HM Script file and start it automatically (e.g. you may use File/Folder Availability or File Integrity test method).
Another option: you may use Telnet Service and some script that will connect to HostMonitor thru Telnet Service and use the same commands (SetTestParam or ReplaceTestParam) to change comment field.
http://www.ks-soft.net/hostmon.eng/teln ... /index.htm
Regards
Alex
Usually we do not need scripts for telnet so mostly we are using Telnet client from our IP-Tools utility.
There are some clients but I did work with them http://www.snapfiles.com/Shareware/netw ... elnet.html
Regards
Alex
There are some clients but I did work with them http://www.snapfiles.com/Shareware/netw ... elnet.html
Regards
Alex