Maybe I am missing something here. I have several hosts and routers that I have setup to monitor. I have setup a folder for each T1 that the devices are connected to. I would like it so that it the router for a particular T1/Folder goes out, it will disable tests on the remaining hosts in that folder. I was able to do this before using the DisableTest _AllTCP so it would turn everything else off, and then run the script using EnableAllTests to turn them all back on. This still works, but I don't want to disable tests on everything, just in that folder/T1. Is this possible? I thought I read that the scripting would handle this, but I have yet to find and example.
Oh, BTW - in v 3.10 beta, the test type for SMTP shows up in the list as SNMP. Just thought you might want to know that....
Scripting with folders
Yes, you can work with specified folder only. There are two new commands:
SetCurrentFolder <name of folder>|<full path>
IncludeSubfolders yes|no
Also you can setup your T1 device as Master test for other tests and do not use script at all.
Regards
Alex
PS Thank you for the tip about SMTP. Will be corrected
SetCurrentFolder <name of folder>|<full path>
IncludeSubfolders yes|no
Also you can setup your T1 device as Master test for other tests and do not use script at all.
Regards
Alex
PS Thank you for the tip about SMTP. Will be corrected
Ok, so how do I implement this? Here is an example of my settings:
I have a router and 5 hosts under the root/qwest folder.
If the router goes down, I want to disable all of the hosts testing in the root/qwest folder.
What is the proper format for this in a script?
What is the proper format to re-enable the tests?
I have a router and 5 hosts under the root/qwest folder.
If the router goes down, I want to disable all of the hosts testing in the root/qwest folder.
What is the proper format for this in a script?
What is the proper format to re-enable the tests?
If in old version you used "DisableTest _AllTCP", you can still use this command:
;----------------------------------------
; script to disable tests
SetCurrentFolder qwest
DisableTest _AllTCP
;----------------------------------------
;----------------------------------------
; script to enable tests
SetCurrentFolder qwest
EnableAllTests
;----------------------------------------
Regards
Alex
;----------------------------------------
; script to disable tests
SetCurrentFolder qwest
DisableTest _AllTCP
;----------------------------------------
;----------------------------------------
; script to enable tests
SetCurrentFolder qwest
EnableAllTests
;----------------------------------------
Regards
Alex
Ok, I almost have this working now. BUT...
If I disable a test, and then re-enable it, the test wants to run a profile, which I have set to email me. So, if the script runs and disables 5 hosts even though they aren't really down, when the router comes back and re-enables the hosts, every single test sends me an email. Is this an over-looked bug, or am I doing something wrong?
If I disable a test, and then re-enable it, the test wants to run a profile, which I have set to email me. So, if the script runs and disables 5 hosts even though they aren't really down, when the router comes back and re-enables the hosts, every single test sends me an email. Is this an over-looked bug, or am I doing something wrong?
I will investigate problem with alert actions. BUT...
I still don't understand why do you use script. It was necessary in version 1.xx. In version 3.xx you just define you T1 device as Master test for other tests. In latest version http://www.ks-soft.net/download/hm313.zip you can setup Master test for group of selected tests in one shot.
Regards
Alex
I still don't understand why do you use script. It was necessary in version 1.xx. In version 3.xx you just define you T1 device as Master test for other tests. In latest version http://www.ks-soft.net/download/hm313.zip you can setup Master test for group of selected tests in one shot.
Regards
Alex