R. Benjamin Kessler had the correct answer. I do use Linux and the problem with your suggestion is that the value given by show interfaces is not the same value as what the snmpget gives. If you have ever cleared the counters on the interface then its definitely not the same. This particular OID is a read only variable and can only be cleared via a reboot.
""David j"" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Actually, we are using this OIDs, but they are for switches (number of > frames): > dot1dBridge.dot1dTp.dot1dTpPortTable.dot1dTpPortEntry.dot1dTpPortInFrames.1 > dot1dBridge.dot1dTp.dot1dTpPortTable.dot1dTpPortEntry.dot1dTpPortOutFrames.1 > > Why don't you try this in a Unix/Linux?: > snmpwalk -c public {ip} > tmp > and then try to find a number in tmp which is very close to the output of > show interface in that router. > I did it for finding out the previous OIDs, it's quite rudimentary, but I > was sicked of surfing trying to guess the OIDs and it worked fine. > sam sneed wrote: > > > > Hello group, > > > > I am trying to write a script in perl to monitor interface > > errors and total > > traffic during work hours. I'm doing an snmpwalk to get the > > info. I want the > > total amount of packets in and out of an interface so I can > > calculate the % > > of errors on the line. > > > > Cisco says on their site : > > http://www.cisco.com/warp/public/477/SNMP/5.html > > > > that > > ifInNUcastPkts (.1.3.6.1.2.1.2.2.1.12) are counts of > > inbound broadcast > > and multicast packets > > > > ifOutUcastPkts (.1.3.6.1.2.1.2.2.1.17) are counts of > > outbound > > broadcast and multicast packets > > > > > > besides In and Out whats the difference? I thought Ucast meant > > unicast and > > NUcast meant broadcast and multicast. > > When queried, every int gives NUcast and Ucast which are > > different values. > > How could Cisco define them as the same. > > > > Is this a misprint? > > Lastly I'm assuming that total packets would be the sum of the > > 2(unicast + > > multicast/broadcast). > > Is this assumption correct? > > > > > > ps i don't want ifOutOctets because i want the # of packets > > not bytes. > > > > thankd Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=38938&t=38824 -------------------------------------------------- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]