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

Time macro howto? %time%>="08:28:58"

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



Joined: 27 Apr 2008
Posts: 98
Location: Denmark

PostPosted: Wed Jun 29, 2011 12:41 am    Post subject: Time macro howto? %time%>="08:28:58" Reply with quote

Hi

Cant get this to work?

I want to do something like this:
Code:
%time%>="08:28:58"


I use it in Action properties in advanced mode.

___

Is there a smart way to evaluate the macro function. I mean look at the output from ex. %time% or something other?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jun 29, 2011 10:14 am    Post subject: Reply with quote

Could you please explain what exactly you need to accomplish?
Start action on the schedule? Then you should use built-in Scheduler (see Options dialog).
Execute some tests 24/7 but start action assigned to these tests using some time restriction? Then use "Time restriction" option and select appropriate schedule
http://www.ks-soft.net/hostmon.eng/mframe.htm#profiles.htm

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



Joined: 27 Apr 2008
Posts: 98
Location: Denmark

PostPosted: Fri Jul 01, 2011 12:11 am    Post subject: Reply with quote

Hi

I use both. Function scheduler and, Time restriction.

It was only a ide I have.
Is it possible to evaluate something like %time%>="08:28:58"??


Is is possible to have some output showing output from macro like %xx%.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Jul 01, 2011 10:15 am    Post subject: Reply with quote

Quote:
Is it possible to evaluate something like %time%>="08:28:58"??

Yes, but
1) you forgot "" for %time% string
2) it will be compared as strings so result may depend on your regional settings (or time format specified by "Use fixed date&time" HostMonitor option).
If you use time format like hh:mm:ss, comparision should work correctly.

Quote:
Is is possible to have some output showing output from macro like %xx%

Some output? What exactly output? You may use variables in many places. The following table illustrates where you can use macro variables:
http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#macroparams
Plus you may use them in Custom HTML reports...

Regards
Alex
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