KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

add /create new test from command line

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list
View previous topic :: View next topic  
Author Message
menno



Joined: 21 May 2010
Posts: 157

PostPosted: Thu Nov 01, 2018 2:34 am    Post subject: add /create new test from command line Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Thu Nov 01, 2018 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Wish list All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index