View previous topic :: View next topic |
Author |
Message |
menno
Joined: 21 May 2010 Posts: 157
|
Posted: Thu Nov 01, 2018 2:34 am Post subject: add /create new test from command line |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12801 Location: USA
|
Posted: Thu Nov 01, 2018 9:13 am Post subject: |
|
|
There is Telnet Service
https://www.ks-soft.net/hostmon.eng/telnetservice/index.htm
and there is HMScript
https://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#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: |
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
|
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/examples/import1.htm
and then import new tests (or change existing tests) using ImportFromFile command (Telnet or HMScript)
Regards
Alex |
|
Back to top |
|
|
|