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; Mike Andrews (MA12) * mandrews@dcr.net * http://www.bit0.com/ VP, sysadmin, & network guy, Digital Crescent Inc, Frankfort KY Internet services for Frankfort, Lawrenceburg, Owenton, Shelbyville "Don't sweat the petty things, and don't pet the sweaty things." On Tue, 7 Mar 2000, Jason Englander wrote:
On Mon, 6 Mar 2000, Yevgeniy Kruglov wrote:
Thanks! Any idea what the possible values are? ie. 1 = up, 0 = down?, 2 = loopback? (I'd rather not unplug one to find out <grin>)
Jason
Jason,
snmpwalk with 1.3.6.1.2.1.10.18.6.1.10 OID should do it.
Best regards, Yevgeniy
On Mon, Mar 06, 2000 at 10:57:36PM -0600, Jason Englander wrote:
Anyone know the OID to check up/down/loop/whatever of a T1 plugged into a HiperDSP?
Thanks, 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.
- 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.
-- 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.
- 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.