KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Variable Pb for NTP

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
boxy_25



Joined: 02 Dec 2003
Posts: 26
Location: France

PostPosted: Thu May 06, 2004 7:04 am    Post subject: Variable Pb for NTP Reply with quote

Hi alex,

I test the time of my windows server by NTP test. If test is bad, i'd like the W32time service to be restart.
so I've created an "restart" action. My problem is "stop service on" field. If I put the name of my server it work. but if I put a variable %ServiceComp% or %HostAddr%, It doesn't work.
Could you tell me what variable i've to use. I can't find it in the help file.

Thanks.
Cédric.
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu May 06, 2004 7:57 am    Post subject: Reply with quote

You cannot use %ServiceComp% macro because this macro relates to Service test method. I think you can use "\\%HostAddr%" macro if you have specified path to the server as IP address or as hostname (not full domain name), e.g. 192.168.10.15 or primaryserver (do not forget to use "\\" prefix)

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
boxy_25



Joined: 02 Dec 2003
Posts: 26
Location: France

PostPosted: Thu May 06, 2004 8:06 am    Post subject: Reply with quote

No, it doesn't work. with the "\\" or without.
I've try to put the name of the server in commentline and use the
%commentline1% variable and it work.
But I'd prefere to use the server field.

Any other idea?

Cédric.
Back to top
View user's profile Send private message Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Sun May 09, 2004 8:18 am    Post subject: Reply with quote

H'm, sometimes its good to read the manual.
I checked the manual and now I know that %HostAddr% variable is not supported by NTP test method (HM version 4.42).
I made some changes, update available at www.ks-soft.net/download/hm446.zip

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
boxy_25



Joined: 02 Dec 2003
Posts: 26
Location: France

PostPosted: Mon May 10, 2004 12:14 am    Post subject: Great !!! Reply with quote

It works now....

You're the best

Cédric.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index