Pryvit usim. Pojasniuju svoju tochku zoru, chomu ja legen'ko najixav na Sergija ;) Jogo slova "snmp raxuje Layer 2 trafik zi vsima naslidkamy" vYklykaly v mene bazhannya pitY v kabak i zabuxaty ;). A teper pojasniuju, chomu ja v zagalnomu vypadku ne zgodnyj (xocha v odnomu chastkovomu vypadku Sergij pravyj ;). Sprava v tomu, shcho rezultatom Get-request bude value togo OIDa, do jakogo my zvernulysya v ciomu "Get". I nichogo bilshe. Prosymo OID, jakyj opysuje statystyku Layer 2 - i otrymujemo znachennya same togo countera; prosymo znachennya inshogo OIDa (napryklad, jakyj opysue statystyku Layer 3) - i otrymuemo same statystyku z Layer 3. No more no less. Jasen pen', shcho jakshcho my poprosymo snmpget <host> <community> mib-1.interfaces.ifTable.ifEntry.ifInOctets (1.3.6.1.2.1.2.2.1.10) to my otrymajemo "Input" statystyku Layer 2. Ja z cym i ne sperechajus ;), bo "The Interfaces group (1.3.6.1.2.1.2), provides information about the HARDWARE (vydileno mnoju) interfaces on a managed device..." (Managing Internetworks with SNMP, Mark A. Miller, P.E., M&T Books, New York, 1993, page 105) i dali "ifEntry is an interface entry containing objects at the SUBNETWORK (vydileno mnoju) layer and BELOW for a particular interface" (ta zh knyga, page 439) Ale jakshcho my poprosymo snmpget <host> <community> mib-1.ip.ipInReceives (1.3.6.1.2.1.4.3) to my otrymajemo "Input" (shcho v Cisco maje nazvu IP Accounting ;), jakyj daje same statystyku Layer 3, bo "This group includes a number of scalar objects that provide IP-related datagram statistics..."(Managing Internetworks with SNMP, Mark A. Miller, P.E., M&T Books, New York, 1993, page 107) i dali "ipInReceives is the total number of input datagrams received" (ta sama knyga, page 441) Proshu zvernytu osoblyvu uvagu na slovo "datagrams". Ti, xto xocha b troxy znajomyj z kursom CCNA, prekrasno znajut do jakogo rivnya OSI stosuetsya ce slovo. Otzhe, resume: sprava polyagaje lyshe v tomu SHCHO SAME RAXUVATY. Oto i vse. Chy xtos' komus' zavazhaje raxuvaty inshi OIDs, ne obovjazkovo z ifEntry ? ;) 2Sergiy: oberezhnishe z vyslovliuannyamy ;))) NB: pryklad vzyatyj z MIB-1 (RFC 1156). Pryklady "Output" statistics ne rozglyadalysya z prychyny povnoji identychnosti. Na zdorovja! /oleh
Hi!
AFAIK snmp ÓÞÉÔÁÅÔ layer2 ÔÒÁÆÉË ÓÏ ×ÓÅÍÉ ×ÙÔÅËÁÀÝÉÍÉ ÐÏÓÌÅÄÓÔ×ÉÑÍÉ.
OH> aj-jaj-jaj.... ;( OH> Nove slovo v SNMP! OH> I de zh ce take napysano? ;)
÷ÏÚÍÏÖÎÏ, ÆÒÁÇÍÅÎÔ ÏÐÉÓÁÎÉÑ (Ë ÐÒÉÍÅÒÕ) ifInOctets ÉÚ rfc1156 "The total number of octets received on the interface, including framing characters" ÏÚÎÁÞÁÅÔ ÎÅÞÔÏ ÉÎÏÅ, ÞÅÍ layer2, ÎÏ ÞÅÔËÕÀ ÚÁ×ÉÓÉÍÏÓÔØ snmp-counters ÏÔ ÔÉÐÁ ÉÎËÁÐÓÕÌÑÃÉÉ ÎÁ layer2 Ñ ÎÁÂÌÀÄÁÌ ×Ï ×ÒÅÍÑ ÔÅÓÔÏ×, ËÏÇÄÁ ÓÒÁ×ÎÉ×ÁÌÉÓØ ÐÏËÁÚÁÎÉÑ, ÐÏÌÕÞÅÎÎÙÅ ÐÏ ipfw (FreeBSD), ÐÏ SNMP Ó ËÁÔÁÌÉÓÔÁ, ÐÏ SNMP Ó ÍÁÒÛÒÕÔÉÚÁÔÏÒÁ É ÄÁÎÎÙÅ NetFlow.
ëÓÔÁÔÉ, Á ÷Ù ÍÏÖÅÔÅ ÐÒÉ×ÅÓÔÉ ÓÓÙÌËÕ ÎÁ ËÁËÏÊ-ÎÉÂÕÄØ ÄÏËÕÍÅÎÔ, × ËÏÔÏÒÏÍ ÂÙ ÂÙÌÏ ÞÅÔËÏ ÕËÁÚÁÎÏ, ÞÔÏ ÐÏÄÓÞÅÔ ÄÁÎÎÙÈ ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ ÎÁ (ÄÏÐÕÓÔÉÍ) layer3? âÕÄÕ ×ÅÓØÍÁ ÂÌÁÇÏÄÁÒÅÎ.
Best wishes, Sergey
-- Regards, Oleh Hrynchuk Mobile: +380506758731 =================================================================== uanog mailing list. To Unsubscribe: send mail to majordomo@uanog.kiev.ua with "unsubscribe uanog" in the body of the message