rs-232 MIB

Unanswered Question
Aug 27th, 2007

When I configure rmon alarm: rmon alarm 1 ifEntry.10.33.5 60 absolute rising-threshold 1 1 falling-threshold 0 2

this return me: Alarm creation failure

I checked and my IOS 12.4.4.T1 support this MIB. Some tip ?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Mon, 08/27/2007 - 11:57

This object is ifInOctets, and has nothing to do with the RS232-MIB. You also have an invalid index. ifInOctets is ifEntry.10. The ifTable is indexed by one index (ifIndex). You have two indexes (.33.5). You need to find out which interface you wish to monitor, and set the index accordingly. The following two are valid assuming your device has both ifIndex 5 and ifIndex 33:

rmon alarm 1 ifEntry.10.5 60 absolute rising-threshold 1 1 falling-threshold 0 2

rmon alarm 1 ifEntry.10.33 60 absolute rising-threshold 1 1 falling-threshold 0 2

But these two alarms make no sense since ifInOctets is a counter. You need to use a delta threshold instead of an absolute:

rmon alarm 1 ifEntry.10.5 60 delta rising-threshold 1 1 falling-threshold 0 2

rmon alarm 1 ifEntry.10.33 60 delta rising-threshold 1 1 falling-threshold 0 2

This says that if the interface gets one octet over the course of 60 seconds, then raise an alarm. If the rate of change falls to 0 octets over the 60 second period, then re-arm the alarm.

a.azambuja Mon, 08/27/2007 - 12:28

Clark... I don't understand,

I need to check if my interfaces will have signals DCD,DTR,DSR etc flapping... This MIB rs232 (Rs232InSigEntry)make this but I can't configure because my router return the erros above.

Joe Clarke Mon, 08/27/2007 - 12:38

Then your initial configuration was very wrong. As I said, your initial configuration was looking at ifEntry.10.33.5 which is an invalid OID. If you want to look at rs232InSigState for DCD for RS-232 port 10 (for example), the OID will be:

1.3.6.1.2.1.10.33.5.1.2.10.6

a.azambuja Mon, 08/27/2007 - 13:02

JClarke

The same error persist.

rmon alarm 10 ifEntry.1.3.6.1.2.1.10.33.5.1.2.10.6 absolute

rising-threshold 1 1 falling-threshold 0 2

Alarm creation failure

Joe Clarke Mon, 08/27/2007 - 13:13

Exactly what are you typing into the router? Because the OID above is clearly wrong. Assuming RS232 port 10 exists, you should be able to type:

rmon alarm 10 1.3.6.1.2.1.10.33.5.1.2.10.6 60 absolute rising-threshold 1 1 falling-threshold 0 2

And not see any errors.

a.azambuja Mon, 08/27/2007 - 13:32

Where can I see an index to V35 interface 0/0/0 inside a 2811 router ? In fact this is a interface that I will try to monitor.

Tks,

Joe Clarke Mon, 08/27/2007 - 13:35

Get the ifIndex by walking ifDescr, then use rs232PortIndex to map the ifIndex to the RS232 port. The output will be something like:

1.3.6.1.2.1.10.33.2.1.1.10 = 13

Where the last 10 is the rs232PortIndex and the 13 is the ifIndex.

a.azambuja Mon, 08/27/2007 - 14:01

R1#sh snmp mib ifmib ifindex ser 0/0/0

Serial0/0/0: Ifindex = 3

!

R1(config)#rmon alarm 10 1.3.6.1.2.1.10.33.2.1.1.3 60 absolute rising-threshold 1 falling-threshold 2

Alarm creation failure

!

so...

The IOS support the mib

The index is now correct

but doesn't work

Joe Clarke Mon, 08/27/2007 - 14:09

This is not the correct OID, either. The OID listed here is for rs232InSigPortIndex 1, pin DSR. What you want to monitor DCD for index 3 is:

1.3.6.1.2.1.10.33.2.1.3.6

Of course, your router may not support this object. You should walk the entire RS-232-MIB to see if that object is support.

Actions

This Discussion