Editing multiple tests of the same time

Need new test, action, option? Post request here.
Post Reply
eurodrew555
Posts: 16
Joined: Thu Aug 25, 2005 5:29 am

Editing multiple tests of the same time

Post by eurodrew555 »

I'm trying to edit over 1000+ SNMP tests and all I want to change is:

TIMEOUT - increase from 2000 to 5000
RETRIES - increase from 1 to 5

When selecting multiple SNMP tests and selecting EDIT, the only things you can change for the selected tests are TEST BY, SCHEDULE, ALERT, OPTIONAL STATUS PROCESSING, LOG & REPORTS options.

HostMonitor would be much more flexible and powerful if when selecting multiple tests of the same time you were able to edit common test options.

For example:

Select multiple SNMP Get tests. I should be able to change the SNMP PROFILE, TIMEOUT and RETRIES. This change would then be applied across multiple tests.

I've exported to TEXT file but TIMEOUT = 2000 is common across Ping, SNMP and probably many more tests so I can't just do a replace on the file.

This would make modifying 1000+ tests a very simply and powerful operation.

Thanks,
Andrew
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I agree, such option would be useful.
On the other hand you may use HMScript with single command:
ReplaceTestParam _AllSNMP timeout 2000 5000
www.ks-soft.net/hostmon.eng/mframe.htm# ... #actScript

Also you may use View to select and export SNMP tests only.
http://www.ks-soft.net/hostmon.eng/mfra ... #ViewsList

Regards
Alex
eurodrew555
Posts: 16
Joined: Thu Aug 25, 2005 5:29 am

Post by eurodrew555 »

OK this replaced the TIMEOUT value for all SNMP tests. Excellent !!

I still have the problem with RETRIES - I understand this can't be changed using ReplaceTestParam ?

At any rate we can at least increase the TIMEOUT value which will hopefully improve our SNMP monitoring reliability.

Could you kindly add to the wish list to add RETRIES as an option to ReplaceTestParam?

Thanks,
Andrew
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I still have the problem with RETRIES - I understand this can't be changed using ReplaceTestParam
Correct
Could you kindly add to the wish list to add RETRIES as an option to ReplaceTestParam?
Sure. Medium priority

For now you may use the following trick
1) create single View to select all SNMP tests from each folder and subfolder
http://www.ks-soft.net/hostmon.eng/mfra ... #ViewsList
If all SNMP test items located in the same folder, you don't need to use View
2) select SNMP test items and export test settings into text file using menu File -> Export to text file. Enable "Use folder information" export option.
3) then you may use any text editor to search and replace "Retries = 1" with "Retries = 5"
4) insert ImportMode = Modify line into text file (top of the file, before test settings). 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
5) import modified test items using menu File -> Import from text file

I would recommend to create backup copy of your HML file, just in case you do something wrong.

Regards
Alex
Post Reply