Re: SNMP Packet question [7:38824]
I think the rrdtool has some of this built into it...it's a great spinoff of mrtg... (it's bascialy the engine and you do with it as you please check out this link. http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/ and look at so of the graphs people are doing there are also some sample scripts there! hth, -Patrick >>> "sam sneed" 03/19/02 12:33PM >>> 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 > Confidentiality Disclaimer This email and any files transmitted with it may contain confidential and /or proprietary information in the possession of WellStar Health System, Inc. ("WellStar") and is intended only for the individual or entity to whom addressed. This email may contain information that is held to be privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized access, dissemination, distribution or copying of any information from this email is strictly prohibited, and may subject you to criminal and/or civil liability. If you have received this email in error, please notify the sender by reply email and then delete this email and its attachments from your computer. Thank you. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=38833&t=38824 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: SNMP Packet question [7:38824]
You should take a look at Cricket. http://cricket.sourceforge.net/ We use it to monitor traffic on links, router memory/cpu usage. Here's an example of what it can create: http://cricket.sourceforge.net/support/talks/cricket-examples/route-flap/ It uses the RddTool that someone already mentioned. -John 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=38853&t=38824 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
RE: SNMP Packet question [7:38824]
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=38884&t=38824 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]
Re: SNMP Packet question [7:38824]
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]
Re: SNMP Packet question [7:38824]
Thanks for the information, I think I've read something about this issue in some place. The script I wrote was only for Nortel switches and I hadn't tried to do anything for routers because we're using CW2000 Regards, David. 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. Message Posted at: http://www.groupstudy.com/form/read.php?f=7&i=38967&t=38824 -- FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]