»  Forums
Minimize FLCAUG Discussion Forums
Print  
 
Subject: Test &TIME
You are not authorized to post a reply.
Author Messages

psilva

SME MemberUser is Offline
Posts:81

06/22/2006 6:03 AM  

Hi,

I need to avoid (without setting the object unamanage) the alert of a process failure between a certain period of time. So I need to test the time using (MRA &time , probably with conditional opcodes (GT and LT)

Regards
Pedro

Henry

Intermediate MemberUser is Offline
Posts:9

07/04/2006 12:45 PM  
Hi

I created an example for you as it will be a lenghty explenation...
The example I have is configured to only fire actions between 22:00 and 23:00.

Here's what you do...
1) Save the text below the "------" to a file called "test_msg_act.txt" and use "cautil -f test_msg_act.txt" to import this message record.

2) Issue "opreload" to refresh your Event DB.

3) Now use the following command to test this "cawto Henry Testing Here!"

Remember I configured this for 22:00-23:00, so for testing purposes you will have to change the times to what you want. Also make sure that your &TIME is in 24hour format else this will not work.

Good luck and let me know how it went.
;)

-------------------------------------
define msgrec
msgid="Henry Testing Here!"
type="MSG"
msgnode="*"
desc="This message is used for testing purposes only."
cont='N'
msgact='Y'
wcsingle='?'
wcmany='*'
case="y"
regexp="n"
define msgact
name=(*,5)
action="DISCARD"
attrib="DEFAULT"
synch='N'
color="DEFAULT"
condop=" "
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
define msgact
name=(*,10)
action="HILITE"
attrib="REVERSE"
synch='N'
color="BLUE"
condop=" "
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
text="&TEXT - &TIME"
define msgact
name=(*,20)
action="TEST"
attrib="DEFAULT"
synch='N'
color="DEFAULT"
condop=" "
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
text="&TIME -ge 22:00"
define msgact
name=(*,23)
action="HILITE"
attrib="REVERSE"
synch='N'
color="RED"
condop="NE"
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
text="&TEXT - Message received BEFORE time."
define msgact
name=(*,26)
action="EXIT"
attrib="DEFAULT"
synch='N'
color="DEFAULT"
condop="NE"
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
define msgact
name=(*,30)
action="TEST"
attrib="DEFAULT"
synch='N'
color="PURPLE"
condop=" "
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
text="&TIME -le 22:59"
define msgact
name=(*,33)
action="HILITE"
attrib="REVERSE"
synch='N'
color="RED"
condop="NE"
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
text="&TEXT - Message received AFTER time."
define msgact
name=(*,36)
action="EXIT"
attrib="DEFAULT"
synch='N'
color="DEFAULT"
condop="NE"
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
define msgact
name=(*,40)
action="HILITE"
attrib="REVERSE"
synch='N'
color="BLUE"
condop=" "
evaluate='Y'
quiet='N'
status="ACTIVE"
sim='N'
text="&TEXT - Message received IN time."

psilva

SME MemberUser is Offline
Posts:81

07/05/2006 3:37 AM  
Thanks lot . I'll give it a go...

psilva

SME MemberUser is Offline
Posts:81

07/05/2006 7:37 AM  
Tested and working .. Great... Thanks
You are not authorized to post a reply.



ActiveForums 3.6
 
     
Date » 20 July, 2008    Copyright 2002-2008 by RavenSystems & FL CA Users Group Login : Register
Inspired by Nina