Checking dchannel/bchannel status on PRI

Is there a command or trick that I can execute that tells me the status of the D/B channel of my PRIs?

I recently had an outage on a span, and the “zap show status” was showing everything as being OK, however upon calling the telco, they reported the line as being offline, and as soon as they reset it, I immediately saw the messages “Primary D-Channel on span 4 up” as well as messaging indicating that B-channel on my trunks were up.

I’d like to be able to monitor/trap these events for additional alarming.

Thanks!

Hi

PRI Debug

Help pri will give you all the commands

Thanks! Missed that command!
Exactly what I need.