add /create new test from command line

Need new test, action, option? Post request here.
Post Reply
menno
Posts: 157
Joined: Fri May 21, 2010 1:27 am

add /create new test from command line

Post by menno »

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

Post by KS-Soft »

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

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
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
Post Reply