On Thu, 9 Mar 2000, Mike Andrews wrote:
It's a bit mask. 1 is no alarm, 32 is red alarm, 128 is a loopback at the near end, and so on. You want to see a value of 1 (only bit 0 set).
Here's a fragment of Perl code I have that checks T1 status on a DSP -- it was easier to paste this in than try to explain each bit. :) (This doesn't work on a Dual PRI/T1 card, by the way).
my ($alarm) = &ma_snmp::snmpget ($chassname, $usr3com_cfg::nmc_ro_communities{$chassname}, "1.3.6.1.2.1.10.18.6.1.10.$t1"); print "[No Alarm] " if $alarm & 1; print "[Far-End LOF (YELLOW)] " if $alarm & 2; print "[Near-End Sending LOF] " if $alarm & 4; print "[Far-End AIS] " if $alarm & 8; print "[Near-End AIS] " if $alarm & 16; print "[Near-End LOF (RED)] " if $alarm & 32; print "[Near-End LOS] " if $alarm & 64; print "[Near-End Looped] " if $alarm & 128; print "[E1 TS16 AIS] " if $alarm & 256; print "[Far-End TS16 LOMF] " if $alarm & 512; print "[Near-End TS16 LOMF] " if $alarm & 1024; print "[Near-End Testcode] " if $alarm & 2048; print "[??] " if $alarm & 4096;
Thanks! That'll save some time... I ran a commandline snmpwalk of that OID on the NMC card and got this: transmission.18.6.1.10.1025 = 1 transmission.18.6.1.10.2025 = 1 transmission.18.6.1.10.3025 = 1 transmission.18.6.1.10.4025 = 1 transmission.18.6.1.10.5025 = 1 transmission.18.6.1.10.6025 = 1 Then I unplugged the first HiperDSP's T1 (FYI: a channelized T1 - Robbed Bit is set) and got this: transmission.18.6.1.10.1025 = 100 transmission.18.6.1.10.2025 = 1 transmission.18.6.1.10.3025 = 1 transmission.18.6.1.10.4025 = 1 transmission.18.6.1.10.5025 = 1 transmission.18.6.1.10.6025 = 1 Any idea what 100 is? Looks to me like it should be showing 64, no? Jason -- Jason Englander <jason@interl.net> Systems Administrator - InterLink L.C. - To unsubscribe to usr-tc, send an email to "majordomo@xmission.com" with "unsubscribe usr-tc" in the body of the message. For information on digests or retrieving files and old messages send "help" to the same address. Do not use quotes in your message.