Hi,
I have a NTP test where I test local server time with our internal timeserver.
I test every hour.
Action is:
1. Execute External program: cmd /c "w32tm /resync" after 1 bad
2. Execute External program: cmd /c "w32tm /config /manualpeerlist:OUR TIME SERVER,0x1 /syncfromflags:manual /reliable:yes /update" after 1 bad
3. Execute HMS Script: ResetRecurrencesTest.hms after 1 bad
4. Send E-mail after 24 bad tests
Problem is if it fails in action 1 and 2, it does not send the email since its been reset.
How can I get an email when time sync has failed?
Windows NTP action
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I can see several options:
1. Remove action N3.
2. Change Action N3 to start only after 24 consecutive Bad results.
3. Change Action N4 to Send e-mail after 1 Bad.
4. Change actions N3 & N4 to repeat until status changes, chnage action N3 to start after 24 Bad statuses.
If none of these options are acceptable, please explain what exactly do you want to implement.
1. Remove action N3.
2. Change Action N3 to start only after 24 consecutive Bad results.
3. Change Action N4 to Send e-mail after 1 Bad.
4. Change actions N3 & N4 to repeat until status changes, chnage action N3 to start after 24 Bad statuses.
If none of these options are acceptable, please explain what exactly do you want to implement.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
I don't know what is content of ResetRecurrencesTest.hms and why do you need to reset recurrences.
That's why I'm asking you to explain what do you need.
If you don't know why test needs to reset resurrences,
you may disable this test and create a test copy (Action profile copy) with different settings, suggested in my previous post.
Also, could you show content of ResetRecurrencesTest.hms ?
That's why I'm asking you to explain what do you need.
If you don't know why test needs to reset resurrences,
you may disable this test and create a test copy (Action profile copy) with different settings, suggested in my previous post.
Also, could you show content of ResetRecurrencesTest.hms ?
ResetRecurrencesTest.hms file does not come with HostMonitor.Hi, I thought ResetRecurrencesTest.hms was a standard hms script that came along with the installation.
And there is no reason to use ResetRecurrencesTest HMScript command unless you want to repeat the same actions again and again.
(note: I have no idea what commands do you use in this script file, may be there is something useful...)
HostMonitor does not set time so you have to use external command.Is there any other way to set local time on server without using N1 and N2 ??
BTW: IP-Tools can synchronize time in unattended mode
http://www.ks-soft.net/ip-tools.eng/mfr ... htm#page11
Regards
Alex