[Home]

Summary:ASTERISK-01373: [PATCH] to add alarm counters to wct4xxp.c
Reporter:jcdutton (jcdutton)Labels:
Date Opened:2004-04-07 19:40:14Date Closed:2011-06-07 14:05:29
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) alarm-counter.diff
( 1) counter.txt
Description:wct4xxp now counts RED, BLUE and YELLOW alarms
and outputs them in /proc/zaptel/1

Comments:By: zoa (zoa) 2004-04-08 08:22:28

this works fine, but i had zaptel watchdog installed and that line no longer shows up after applying this patch.

By: zoa (zoa) 2004-04-08 08:24:50

Span 1: TE4/0/1 "TE410P (PCI) Card 0 Span 1" HDB3/CCS/CRC4
Counts: RED 0, BLUE 0, YELLOW 1

          1 TE4/0/1/1 ClearChannel (In use)
          2 TE4/0/1/2 ClearChannel (In use)
          3 TE4/0/1/3 ClearChannel (In use)
          4 TE4/0/1/4 ClearChannel (In use)
          5 TE4/0/1/5 ClearChannel (In use)
          6 TE4/0/1/6 ClearChannel (In use)
          7 TE4/0/1/7 ClearChannel (In use)
          8 TE4/0/1/8 ClearChannel (In use)
          9 TE4/0/1/9 ClearChannel (In use)
         10 TE4/0/1/10 ClearChannel (In use)
         11 TE4/0/1/11 ClearChannel (In use)
         12 TE4/0/1/12 ClearChannel (In use)
         13 TE4/0/1/13 ClearChannel (In use)
         14 TE4/0/1/14 ClearChannel (In use)
         15 TE4/0/1/15 ClearChannel (In use)
         16 TE4/0/1/16 HDLCFCS (In use)
         17 TE4/0/1/17 ClearChannel (In use)
         18 TE4/0/1/18 ClearChannel (In use)
         19 TE4/0/1/19 ClearChannel (In use)
         20 TE4/0/1/20 ClearChannel (In use)
         21 TE4/0/1/21 ClearChannel (In use)
         22 TE4/0/1/22 ClearChannel (In use)
         23 TE4/0/1/23 ClearChannel (In use)
         24 TE4/0/1/24 ClearChaim

is the output of this.

Btw: am i the only one seeing a lot of yellow alarms ? i already had the telco come over and check the E1, and they said everything looks oké.

A yellow alarm cant be triggered by a bad cable right ? thats only used for saying when a line is busy right ?

By: jcdutton (jcdutton) 2004-04-08 08:48:57

Yellow CFA (Carrier Failure Alarm): -
When a Terminal/Network equipment enters a RED CFA state, it transmits a "Yellow Alarm" in the opposite direction.
I.E. If the other end has a RED alarm, you get a YELLOW, and visa versa, if you have RED, the other end has YELLOW.
That way, you know which direction the fault is in.
You see Yellow, the fault in in the TX direction from you to the telco.

More correctly, it is called a YELLOW alarm for T1, and RAI for E1.
Having just 1 YELLOW alarm is ok. The thing to watch for is how quickly it counts.

To install my patch, you have to stop all application that use the card, "rmmod wct4xxp" and "rmmod zaptel". then wait to ensure the /proc/zaptel does not exist any more, and only then install the new modules, and to "modprobe wct4xxp".
Just rmmod and then modprobe the new one is NOT good enough.

By: zoa (zoa) 2004-04-08 08:57:23

yeah i did so.

Weird thing is that i was unable to rmmod zaptel on kernel 2.6.5, it said 2 things were using it, but asterisk was not running and wct4xxp was already rrmodded.

after a reboot, my yellow alarms on the line were gone, so i suspect there is a little bug there.

jcdutton: can you try if after installing your patch you still have the missed interrupts line ? as i don't see it here, and its still in the makefile.

By: jcdutton (jcdutton) 2004-04-08 09:17:42

Did you actually read the source code for the interrupts line?
if (spans[span]->irqmisses)
               len += sprintf(page + len, "\tIRQ misses: %d\n", spans[span]->irqmisses);

So, it only displays in irqmisses > 0

By: zoa (zoa) 2004-04-08 09:38:10

ooopsie, sorry.

i think this thing looks awfull, lets get it into cvs :)

By: zoa (zoa) 2004-04-09 12:59:25

i tested this on 3 servers, looks a good patch to me.