Hi HM team,
Is there a way to add / create / alter a HM test via the command line.
As you understand some customers use linux / aix and new VM's are created by scripting.
It would be handy to add /create /alter some test via the command line so we can script the whole "thing" in 1 go.
Maybe this is something for the wish list ?
many thanks in advance
Menno
add /create new test from command line
There is Telnet Service
https://www.ks-soft.net/hostmon.eng/tel ... /index.htm
and there is HMScript
https://www.ks-soft.net/hostmon.eng/mfr ... #actScript
If you are using templates (set of tests with variables like %fvar_host% instead of static IP of the target host) than its easy to create new tests using telnet commands like
Similar commands can be used in HMScript and script can be started automatically (if you set some test to launch script) or script can be started using telnet (ExecuteScript command) or script can be started using HostMonitor GUI (menu File)...
If you are not using templates, you may create your own script/application that will create text file with test settings like this
https://www.ks-soft.net/hostmon.eng/exa ... mport1.htm
and then import new tests (or change existing tests) using ImportFromFile command (Telnet or HMScript)
Regards
Alex
https://www.ks-soft.net/hostmon.eng/tel ... /index.htm
and there is HMScript
https://www.ks-soft.net/hostmon.eng/mfr ... #actScript
If you are using templates (set of tests with variables like %fvar_host% instead of static IP of the target host) than its easy to create new tests using telnet commands like
Code: Select all
CopyFolder Root\Templates\SQL Root\NewServers\SQLServer2
CD Root\NewServers\SQLServer2
SetFolderVariable fvar_host "10.10.5.1"
CD Root\Templates\SQL
CopyAllTests Root\NewServers\SQLServer2 -adjustmasters
If you are not using templates, you may create your own script/application that will create text file with test settings like this
https://www.ks-soft.net/hostmon.eng/exa ... mport1.htm
and then import new tests (or change existing tests) using ImportFromFile command (Telnet or HMScript)
Regards
Alex