[mrtg] Using SNMP for In/Out errors on Cisco Subinterfaces

Thomas Brian Granier BrianG at zebec.net
Mon May 22 21:31:26 MEST 2000


I am having problems pulling input output errors from a subinterfaced
frame relay circuit on a Cisco router (most of them are Cisco 2501
routers running either IOS 11.2 or 12.0). These routers are managed by
an outsourced company (we are working on switching these to internally
managed routers), but we do have SNMP read access. I know this because I
am able to successfully monitor bandwidth using SNMP. I have been
assured that we have full read access using our community name, not
restricted to only certain parameters. 

I have successfully implemented input output errors on many other
devices using ifInErrors.#&ifOutErrors.#. However, none of the these
devices use subinterfaces. I believe the problem is that I am using the
incorrect port number after the ifInErrors and ifOutErrors statement. I
have tried using the port numbers that I get from the cfgmaker script
for the specified ports and I have tried using the Cisco subinterface
numbers as well. None of the permutations I have tried have been
successful. 

One part that puzzles me is in the error report with a community name of
1t2public I will see this:

<begin snip>
Bareword found where operator expected at (eval 61) line 1, near
"1t2public"
        (Missing operator before t2public?)
Array found where operator expected at (eval 61) line 1, at end of line
        (Do you need to predeclare t2public?)
* Problem with 'ifInErrors.8&ifOutErrors.8:1t2public @1.2.3.4':
  syntax error at (eval 61) line 1, near "8:"
<end snip>

Note that in two instances the number 1 preceding the community name is
stripped and given as part of the error message. Is it possible that
there is a problem with having a number begin a community name?

Here is my complete sample config file. Note that I have changed the
community name and the IP addresses:

WorkDir: C:\progra~1\whatsup\web\mrtg\bsi

######################################################################
# Description: Cisco Internetwork Operating System Software IOS (tm)
3000 Software (IGS-J-L), Version 11.1(17), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1998 by cisco Systems, Inc. Compiled Tue 27-Jan-98
12:14 by phester
#     Contact: 
# System Name: +BSI Houston(BU)
#    Location: 
#.....................................................................

Target[Err+BSI4]: ifInErrors.6&ifOutErrors.6:1t2public at 1.2.3.4
MaxBytes[Err+BSI4]: 20000000 
Options[Err+BSI4]: growright, nopercent, perminute
YLegend[Err+BSI4]: WAN Interface Errors for BSI4 
ShortLegend[Err+BSI4]: 
Legend1[Err+BSI4]: In  
Legend2[Err+BSI4]: Out 
LegendI[Err+BSI4]: In  : 
LegendO[Err+BSI4]: Out  :
Title[Err+BSI4]: WAN Interface Errors for BSI4  
PageTop[Err+BSI4]: <H1>WAN Interface Errors for BSI4</H1>

#---------------------------------------------------------------

Target[Err+BSI1]: ifInErrors.8&ifOutErrors.8:1t2public @1.2.3.4
MaxBytes[Err+BSI1]: 20000000 
Options[Err+BSI1]: growright, nopercent, perminute
YLegend[Err+BSI1]: WAN Interface Errors for BSI1 
ShortLegend[Err+BSI1]: 
Legend1[Err+BSI1]: In  
Legend2[Err+BSI1]: Out 
LegendI[Err+BSI1]: In  : 
LegendO[Err+BSI1]: Out  :
Title[Err+BSI1]: WAN Interface Errors for BSI1  
PageTop[Err+BSI1]: <H1>WAN Interface Errors for BSI1</H1>

#---------------------------------------------------------------

Target[Err+BSI2]: ifInErrors.9&ifOutErrors.9:1t2public at 1.2.3.4
MaxBytes[Err+BSI2]: 20000000 
Options[Err+BSI2]: growright, nopercent, perminute
YLegend[Err+BSI2]: WAN Interface Errors for BSI2 
ShortLegend[Err+BSI2]: 
Legend1[Err+BSI2]: In  
Legend2[Err+BSI2]: Out 
LegendI[Err+BSI2]: In  : 
LegendO[Err+BSI2]: Out  :
Title[Err+BSI2]: WAN Interface Errors for BSI2
PageTop[Err+BSI2]: <H1>WAN Interface Errors for BSI2</H1>

#---------------------------------------------------------------




Here are the error messages I recieve when I run it.




SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.14.6)
SNMPv1_Session (remote host: "1.2.3.4" [1.2.3.4].161
                  community: "1t2public"
                 request ID: 60883667
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ifInErrors.6 ifOutErrors.6 sysUptime sysName
ifDescr.6 on 1t
2public at 1.2.3.4
SNMPGET: Failed to reach target:
"ifInErrors.6&ifOutErrors.6:1t2public at 192.16
8.173.17". I tried multiple times! 1t2public at 1.2.3.4
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.14.9)
SNMPv1_Session (remote host: "1.2.3.4" [1.2.3.4].161
                  community: "1t2public"
                 request ID: 60883668
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
SNMPGET Problem for ifInErrors.9 ifOutErrors.9 sysUptime sysName
ifDescr.9 on 1t
2public at 1.2.3.4
SNMPGET: Failed to reach target:
"ifInErrors.9&ifOutErrors.9:1t2public at 192.16
8.173.17". I tried multiple times! 1t2public at 1.2.3.4
Operator or semicolon missing before &ifOutErrors at (eval 61) line 1,
<LOCK> li
ne 1.
Ambiguous use of & resolved as operator & at (eval 61) line 1, <LOCK>
line 1.
Bareword found where operator expected at (eval 61) line 1, near
"1t2public"
        (Missing operator before t2public?)
Array found where operator expected at (eval 61) line 1, at end of line
        (Do you need to predeclare t2public?)
* Problem with 'ifInErrors.8&ifOutErrors.8:1t2public @1.2.3.4':
  syntax error at (eval 61) line 1, near "8:"



T. Brian Granier
MCSE MCP+I A+
Telecommunications Specialist
Zebec Data Systems

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org



More information about the mrtg mailing list