HMS to loop through all tests in currently active HML

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
VeeMan
Posts: 8
Joined: Thu May 27, 2010 5:06 am
Location: London, GB

HMS to loop through all tests in currently active HML

Post by VeeMan »

Hi,

Does anyone know whether it is possible to use HMS to loop through tests in all subfolders?

I want to write the following logic:

If Test name starts with {ThisTestNameStart} then set Interval = {NewInterval}

any help would be appreciated.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We know everything :wink:
No, its not possible to perform such operation using script. Script allows you to change test interval for specific type of test (e.g. Ping tests) or tests with specific status (e.g. tests with Bad status) or test with specific name.
Please check the manual or visit our web site for details:
http://www.ks-soft.net/hostmon.eng/mfra ... #actScript

However you may perform such operation using GUI and Views: just setup View using [Select items using expression 'ThisTestNameStart' in '%TestName%'] option, mark all selected items, click Edit button and set test interval.
Truth to say its not exactly what you need. This expression will select items with 'ThisTestNameStart' in the name (regardless of substring position) but I think its easy to sort selected items by name and remove selection from several items if necessary.

Regards
Alex
Post Reply