DX Unified Infrastructure Management

  • 1.  Gathering Cisco show controller T1 results

    Posted Jul 30, 2010 05:10 AM

    I'm trying to figure out a method for gathering "show controller t1" results from the routers at all of my customers.  Some routers have several circuits.  I've thought of using SNMPget but can't seem to find the OID for this info (I can find the in and outbound errors but this is not that same thing).  I've also read that SNMP returns the total in a given counter since the router was booted up.  That could be a problem as the "clear counters" command may have been issued which would through the numbers off.  The count collected in SNMPget (if I can find the OID's) would be different than the current count.  

     

    Another option would be to pull the results of the "show controller t1" command and read them into Nimsoft via the logmon probe.  This could be a major pain trying to get all of this to work correctly.  Here is a piece of the output that I'd have to have logmon parse.  The problem I see is that I'd want to find out if any of these are greater than 0.  So character 52/53 is a 0 currently what if it's 48932?  What would I look for in a logmon variable?  Once any one of these get more that 9 errors it throws off the character count.  

     

     

      Data in current interval (755 seconds elapsed):
         0 Line Code Violations, 0 Path Code Violations
         0 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs, 0 Degraded Mins
         0 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs

    Any help would be appreciated.  



  • 2.  Re: Gathering Cisco show controller T1 results

    Posted Jul 30, 2010 06:48 AM

    If you can get the router output into logmon, it would be fairly easy to read the values in the lines. You have three options for creating variables in logmon watchers:

     

    • By character position
    • By column
    • By regular expression

    As you said, character position would not work well because you do not know how many digits will be in each number. If you use the space as the column separator, you should be able to create a variable for each of the "columns" that contains numbers. The other option is to configure the watchers to match the lines using regular expressions including captures (in parentheses).

     

    -Keith



  • 3.  Re: Gathering Cisco show controller T1 results

    Posted Jul 30, 2010 04:58 PM

    I wrote a python script a while back that would log into routers and get me the config the return it as a string.  I would think you could accomplish the with the show contrillers command and using a scripting language you could then just either parse your output or just use the show command with the cisco | i (include) to get what you want.  Of course this requires writing a little script to do the work for you.  You could call this script with logmon as well.



  • 4.  Re: Gathering Cisco show controller T1 results

    Posted Jul 30, 2010 06:07 PM

    I actually already have a way to get show controller info from the routers with a script. So much info is returned that is unimportant.  The problem I have is parsing the text file. 

    If I had a programming background this would probably be easy to do.



  • 5.  Re: Gathering Cisco show controller T1 results

    Posted Jul 30, 2010 09:26 PM
    Using the rtr include command can help eliminate some of the stuff.

    sh controllers T1 | i Line Code
    Framing is ESF, Line Code is B8ZS, Clock Source is Line.
    0 Line Code Violations, 0 Path Code Violations
    0 Line Code Violations, 0 Path Code Violations,
    Framing is ESF, Line Code is B8ZS, Clock Source is Line.
    0 Line Code Violations, 0 Path Code Violations
    0 Line Code Violations, 0 Path Code Violations,


  • 6.  Re: Gathering Cisco show controller T1 results

    Posted Aug 22, 2010 09:59 PM
    please tell me the cisco modell and IOS Version. Maybe I can figure out the right snmp OID and tell you how to configure the snmpget probe right using ( via curr-delta). Best regards