Edit Tests in Bulk Using Notepad?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
aneveu
Posts: 6
Joined: Tue Jul 24, 2012 7:28 am
Location: aneveu

Edit Tests in Bulk Using Notepad?

Post by aneveu »

We have about 100 tests and we are changing our IP addresses. It would save us several hours of effort (and probably avoid many mistakes) if we could edit the list of tests using Notepad. Our IP address scheme is changing from 111.111.111.30 to 222.222.222.30 (scrubbed). So if we are able to open the list of tests in a text editor, all we will have to do is replace 111.111.111 with 222.222.222. That will be a HUGE time saver for us. Can we do this? If so, what file do we need to edit and/or how is it done? We looked through the HostMonitor9 directory but do not see an obvious choice.

Many thanks in advance.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may use Export/Import from text file:
1. Export all test items using Menu File -> Export to text file
2. Modify test settings using notepad
3. Add ImportMode = Modify option at the beginning of the file
4. Import modified text file using menu File -> Import from Text file.
; -- Special commands (added in version 4.40) --

ImportMode = Add
; this parameter may be set to one of the following values:
; - ImportMode = Add - in this mode HostMonitor adds new tests to the
; list; prompts for confirmation when the test with specified name already
; exists within the list (in any folder). This mode is used by default as it
; conforms with the behavior of previous versions of HostMonitor (version
; 4.30 or earlier);
; - ImportMode = Modify - in this mode application adds new test if
; the test with specified name doesn't exist in the folder. Otherwise,
; HostMonitor replaces the test settings by those provided in the imported
; file. Statistical information (dead ratio, alive ratio, etc) is kept intact;
; - ImportMode = Replace - adds new test if the test with provided name
; doesn't exist in the specified folder. Otherwise, HostMonitor replaces
; the test settings with the settings that are specified in the imported
; file and resets all statistical information (similar to the effect of
; complete removing of an old test and then creating the new one instead.
You may also use macro variables as test parameters.
This will allow you to modify parameters of many test items within folder/subfolder by changing single folder-level variable.
Please check for details at:
http://www.ks-soft.net/hostmon.eng/mfra ... #templates
Post Reply