Why SNMP output different from CLI output? SNMP incorrect?

I'm using various Cisco routers and switches. Cisco 2811, 1841 routers. Cisco 3560 switches.
I'm using net-snmp tools in UNIX.
The output below is snipped to show what's important. When I use snmpwalk I see interfaces with errors. When I use the Cisco CLI to show interfaces no interfaces have errors.
Am I doing something wrong or is the SNMP information wrong?
My only goal is to get accurate interface errors on multiple cisco devices on all interfaces as quickly as possible. I wanted to use SNMP because it snmpwalk seems faster than an expect script or any script which logs into each device over telnet and runs show interface commands.
If I could filter it to show only the interfaces with errors that would be even better but I haven't been able to find or create a script which will do that yet.
Thanks in advance.
snmpwalk -v 2c -c public -OQsT 192.168.0.1 ifInErrors
ifInErrors.1 = 0
ifInErrors.100 = 0
ifInErrors.10101 = 0
ifInErrors.10102 = 0
ifInErrors.10103 = 0
ifInErrors.10104 = 0
ifInErrors.10105 = 54
#show int | incl error
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 collisions, 0 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 collisions, 0 interface resets
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 output errors, 0 collisions, 0 interface resets

CLI counters are designed for human consumption where as SNMP counters are designed more for programmatic consumption.  As such, CLI counters can be cleared (i.e. reset to 0).  SNMP counters cannot be cleared.  They will continue to increase until the device is reloaded.  So, if the show interface counters have been cleared, then they can certainly be out of sync with their SNMP counterparts.

Similar Messages

  • Dialog Programing: Output screen layout is different from actaul layout

    Hi,
    I have developed screen layout in SE51 and same is used in my program.Program is working fine but the problem is in column order.I designed layout in SE51 by copying structure from ABAP dictionary and same has been used in my program but output layout column order is completely different from SE51 screen layout.When i check this on Se51,everything is in order.
    My program is referring the same screen number and program.there is only one screen i.e 100.
    How do we fix this problem.
    Regards,

    Looks like, your table settings got changed for the table control on the screen.
    Run your program.
    Now, on the screen you can find out the "Table Settings" in the Top Right corner of the Table control as ICON.
    Press the Icon and it will bring the Table Settings screen.
    In the Current Settings, choose the Basic Settings ... save and close.
    Regards,
    Naimesh Patel

  • While executing the query the output is completey different from the query

    Dear friends,
    We built a query and loaded the data for that infoprovider.
    While executing the query the output is completey different from the query what we have built.
    Output has no relevance to the query.
    Kindly help the same.
    Regards,
    Sathya

    HI Satya,
    In my opinion the issue is with your front end.
    Results should be identical in RSRT, BEx Analyzer (Workbooks) and the ABAP-Web since all three frontend tools use the "ABAP Runtime layer".
    It may differ In the Portal where the new "Java Runtime layer". (Java-Web.) is used.
    This is given in OSS Note 1296576 - Different Query Behaviour: ABAP - Java.
    So i think the problem lies in your analyser. If you are using Analyzer: BI Add on 7.X (Based on 7.10) try and get support package 8.
    Hope this helps.
    Thanks,
    Rahul

  • The waveform of output from file is different from original one

    I've a new question about displaying a waveform from a text file. The waveform which its data is from file is different from the original one.
    I attached image files which included my two vi files and 3 waveform. In the compressed file, "ReadData_Waveform1.jpg" is a image of waveform from "ReadData.jpg" vi file with the configuration of "Transpose" is True,
    "ReadData_Waveform2.jpg" is a image of waveform from "ReadData.jpg" vi file with the configuration of "Transpose" is False,
    "WriteData_Waveform.jpg" is a image of waveform from "WriteData.jpg" vi file.
    I attached the source file of waveform with text format as well.
    Please help me to solve this question if there is anyone who can figure it out.
    Thanks, Andy.
    Attachments:
    Question.zip ‏154 KB
    data.txt ‏55 KB

    Hi Andy
    If you transpose the data when you write it, you also have to transpose it when you read it.
    Just have a look at the simple example attached. I write data and read it again. Each file operation is called with the default-value for transpose (false). The data is read correctly.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    data.vi ‏35 KB

  • Can anybody help me in finding the reasons why the time of email received are different from the one on my macbook which time is correct

    Hi
    Can anyone help me in finding the reason why the date on e=mail reced is different from the one on my MacBook eventhough it is correct
    Thanks

    Try this...
    Triple click anywhere in the line below to select it and press Ctrl+C to copy it.
    cmd /k netsh winsock reset
    Press the WinLogoKey+R to open the run dialog, then Ctrl+V to paste, then press enter/return.
    You should get something similar to this:
    Reboot the computer and the problem should be resolved.
    If it doesn't work then perhaps a full tear down and rebuild of iTunes will fix things. See Troubleshooting issues with iTunes for Windows updates for details.
    tt2

  • Why can't I make a purchase from my new IPod using a new credit card which is different from the one registered with my apple account ?

    Why can't I make a purchase from my new IPod using a new credit card which is different from the one I have registered with iTunes before ?

    You can only use one credit card to one Apple ID.

  • In the info bar at the bottom of the iphoto window, why is the number of items different from the total

    In the info bar at the bottom of the iphoto screen, why is the number of items different from the total?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why is the library on my phone different from the one on my computer (I have iTunes Match)

    Why is the library on my phone different from the one on my computer? (I have iTunes Match) I just want the song off my computer to be the songs I have on my phone.

    Hey there Sparkly3gs,
    It sounds like your camera is not rotating as expected in the camera app. I want to recommend starting by quitting the running apps on the phone.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    I would suggest before restoring from your backup setup the device as new and make sure the camera functions as expected. Then restore from your backup and verify it still works.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Why is the contact attached to voicemail different from the same contact in my contacts app?

    Why is the contact attached to voicemail slightly different from the same contact in my contacts app?

    Perhaps you have 2  or more contacts with the same phone number? If you do anything that displays the name associated with a phone number will chose at random.

  • Why is  the genius pass different from the itunes log in

    why is  the genius pass different from the itunes log in?

    Sorry, but what "genius pass" are you referring to? What exactly is happening for you, or what is the nature of the problem you're experiencing?

  • When I insert a photo from iPhoto into my iMovie, the photo that appears in the movie is different from the one that I inserted - why is this and how can I make it work properly?

    When I insert a photo from iphoto into imovie, the photo that appears is different from the one that I inserted.  Why is this and how can I make it work properly?

    WHat version of iMovie, and iPhoto?
    THIs forum is for iMovie iOS (iPads, iPhones).
    Are you talking about iMovie for Mac?

  • Why when I open my raw files into lightroom, colors are different from my camera's preview?

    Ciao,
    I have a problem... maybe this can be a stupid question but anyway.. I would like to know the reason why when I open a raw image in lightroom, for a second I see the right colors/tone/contrast that i see when i look at the same images on my camera and soon after the word "Loading" I see the raw files with different colors.
    Why this happens???
    Before "Loading" and --> after
    Thank you so much

    Hey Giuseppe
    I have a similar problem but the cause may be different from yours. I shoot a Canon 6D and as far as I know no one with the 5D MKIII has my issue, but maybe you could look into it.
    Canon's Adobe Camera Raw in Photoshop CC, as well as Lightroom CC, is automatically down converting my CR2 RAW files from 14 bit color depth to 8 bit color depth. This is screwing up my colors, contrast, gradients, etc quite a bit when trying to process RAW files in Photoshop CC and Lightroom CC.
    You can read my thread here:
    Banding due to automatic downconverting of RAW files to 8 bit
    You might want to check and see if your RAW files are actually being processed in 16 bit color depth. There is a possibility that they are being down converted automatically for some reason.
    The bit depth in Lightroom for RAW files is supposed to be 16 bit but when opening my files it just converts it down.
    Try downloading Canon's Digital Photo Professional 4
    Canon U.S.A. : Consumer & Home Office : EOS 5D Mark III
    Use that software to process a RAW photo and convert to a 16 bit TIFF. I know this software truly gives you a 16 bit depth image. Then compare the result side to side with what you're seeing in Lightroom.
    If you are having this issue, I have not yet found a way to process RAW CR2 files in ACR or Lightroom and maintain 16 bit depth.
    If you are batch processing to JPEGs it probably doesn't matter, but my issue is that it is down converting BEFORE exporting and thus any edits I do become much more destructive on my 8 bit image than they would if I was editing a 16 bit image. I have to be able to keep things in 16 bit up until the point they go to the printer.
    Sorry, this may not help you at all, it looks like there could just be a difference in White Balance, but I figured I'd throw my two cents out there and maybe you could see if this is actually what is happening for you, and hopefully eventually Adobe could potentially fix this bug.

  • Why does a new desktop creation unexpectedly initiate with a background differing from the originating desktop? How can I control or eliminate this behavior?

    Why does a new desktop creation unexpectedly initiate with a background differing from the originating desktop? How can I control or eliminate this behavior?

    CT, I suspect that I either mistated the question or don't understand how to set the default back ground.  In any case, with the background that I have set in system settings, and this is the background to which my sessions consistantly boot, new desktops come up for the second or up to the third background with this initially set background. Then in the third or fourth desktop creation (I seldom go beyond four), the background for the new desktop, is one that I was using one or two months ago...

  • Why do my Organizer & Editor pages look different from those in books and the brochure that came?

    Why do my Organizer and Editor screens look different from the ones in books and in the brochure that came with installation cd?

    Which version of the photoshop elements are you using.
    You can get the help files of the latest version of photoshop elements 11 from the following link:
    http://helpx.adobe.com/photoshop-elements.html
    Thanks
    Harshit yadav

  • Why does an Inbound IDoc no change and differs from an Outbound IDoc no?

    Hi Experts,
    This seems to be a basic question..! But can someone kindly clarify why an IDoc number gets changed when sent from one R/3 system to another R/3 system and how does this happen???
    i.e., whenever an IDoc was triggered from R/3 system A to R/3 system B through XI/PI, the Inbound IDoc number (in system B) differs from the Outbound IDoc number (in system A)... Why does this happen and how???
    Thanks in advance!
    Br,
    G@nesh

    Hi Ganesh,
    The IDOC numbers are always Unique,
    IDOC can be generated in SAP system as a result of internal testing (WE19), or
    can be posted from a non sap system (say PI).
    So every time a new IDOC comes, it is assigned a new number to avoid confusion and also this plays a
    critical role in the  end to end testing and validation.
    If you look at the control record of the IDOC you can see a element called DOCNUM. this stores to actual IDOC number.
    from PI side you can  use IDX5 and in ECC  We02/05 to notice the idoc numbers.
    Regards,
    Srinivas

Maybe you are looking for

  • RE: Time and Date Changed by itself

    The date and time will change to the wrong one automatically especially after the batt died. This repeated itself regardless on how many times i readjust the time and date to the right one. Someone please help me.

  • Service working n IE 7 but not working in IE 6

    Hi Experts, We are using SRM 4.0. We have developed a Z transaction with 2 screens. We have created the internet service and templates also. When I run this transaction in IE 6 the first screen id displayed correctly, but when I click any buttons tha

  • Financial entry problem against Employee

    In Tally My Client enter Follwing type of entry Expense entry against Employee he give emplyee 2000 for expenses after that afetr that he give bifurgation for that 2000 & after that they adjust the entry against that 2000 & entry shows as Expens on E

  • How to unsync messages between macbook air and my iPhone

    I started using the messages on my macbook air. Then I accidentally used the same Apple id for my Iphone. Now what ever messages I recieve on my macbook I also get on my phone. Is there a way I can unsync the two so that I can only get the messages o

  • No sending of mail possible

    Hello, I have a problem with a mail account on my Mac (Mac OS X.4.6). My wife has an account on my Mac so that we can both use the Mac via fast User Switching. No problems so far. But last week she was not able to send mails anymore. Recieving is pos