Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message actions? 1

Status
Not open for further replies.

krock103

MIS
May 14, 2002
1
US
I configured my APC to send a trap every time power is lost. TNG is then paging me with this information. The problem is I get two pages in row saying power was lost and then power was restored. Does anyone know how to get TNG to trap the message and hold it for 1 minute. If power is restored then page me? I know how to trap the message and delay but I don't know how to check the condition.
 
Hello krock103,

Try the following:
------------------

Step 1: Create two msgrecs, one for PowerDn and one for PowerUp trap.

Step 2: For PowerDn msgrec, add the following actions to it:

10) setenv APC=0

20) delay 60

30) Use getenv or tstenv to check the value of APC

40) If APC=1, then page, else exit


Step 3: For PowerUp msgrec, add the following actions to it:

10) setenv APC=1


Thanks,

Gyan


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top