Re: Method of retrieving Bits per sec (MRTG ref)
Prakash Mariasusai <[email protected]> Mon, 29 Mar 2010 17:30:25 +0530
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Message-ID | <66E3DDEEA70F0D469D1FFE238526B6ED28053FA4CD@CHN-HCLT-EVS07.HCLT.CORP.HCL.IN> |
--===============0452513644== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_66E3DDEEA70F0D469D1FFE238526B6ED28053FA4CDCHNHCLTEVS07H_" --_000_66E3DDEEA70F0D469D1FFE238526B6ED28053FA4CDCHNHCLTEVS07H_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi=20Steve, Thanks=20for=20your=20response.=20We=20tried=20using=20the=20below=20ment= ioned=20procedure. We=20are=20getting=202=20values=20for=20bits=20per=20sec, one=20for=20Incoming=20packets,=20and=20the=20other=20on=20outgoing=20pac= kets. Is=20the=20one=20displayed=20in=20MRTG=20the=20sum=20of=20these=202=20val= ues? In=20other=20words,=20is=20bytes=20per=20sec=20displayed=20in=20MRTG=20= =3D=208=20*=20[(ifInOctetsVal2=20-=20ifInOctetsVal1)/(T2-T1)=20+=20(ifOut= OctetsVal2=20-=20ifOutOctetsVal1)/(T2-T1)]=20? Pls.=20let=20us=20know. Thanks, Prakash Re:=20[mrtg-developers]=20Method=20of=20retrieving=20Bits=20per=20sec=20(= MRTG=20ref) S=20Shipway Wed,=2017=20Mar=202010=2013:54:09=20-0700 MRTG=20obtains=20this=20data=20by=20reading=20the=20ifInOctets=20and=20if= OutOctets=20values=20in=20the IF-MIB=20via=20SNMP=20at=205min=20intervals,=20calculating=20the=20differ= ence=20(taking=20into account=20possible=20counter=20wrap)=20=20and=20dividing=20by=20the=20tim= e=20interval,=20then multiplying=20by=208=20to=20get=20bits/sec.=20=20This=20is=20in=20the=20s= tandard=20MIB.=20=20If=20the interface=20is=20a=20high-speed=20interface=20(>=3D100Mbps)=20and=20the= =20device=20supports=20it, then=20the=20MIB-2=20isused=20instead=20and=20the=20h64bit=20counters=20i= fHCInOctets=20and ifHCOutOctets=20are=20used=20instead=20(to=20prevent=20counter=20wrap=20f= rom=20causing=20problems). Steve From:=20Prakash=20Mariasusai=20[via=20MRTG=20Mailinglists] [mailto:[email protected]] Sent:=20Thursday,=2018=20March=202010=203:13=20a.m. To:=20Steve=20Shipway Subject:=20Method=20of=20retrieving=20Bits=20per=20sec=20(MRTG=20ref) Hi, I=20am=20writing=20a=20small=20program=20to=20get=20the=20"Bits=20per=20s= ec"=20value for=20a=20network=20interface=20in=20Unix=20systems=20(Solaris,=20Linux= =20severs) similar=20to=20the=20one=20provided=20by=20MRTG=20in=20the=20below=20link= : http://www.switch.ch/network/operation/statistics/geant2.html I=20assume=20that=20MRTG=20does=20the=20same=20through=20SNMP. I=20am=20new=20to=20SNMP=20and=20if=20someone=20can=20point=20me=20to=20t= he=20appropriate=20MIB/OID, for=20doing=20the=20same,=20it=20would=20be=20very=20helpful. Thanks=20in=20advance, Prakash -- View=20this=20message=20in=20context: http://n2.nabble.com/Method-of-retrieving-Bits-per-sec-MRTG-ref-tp4750489= p4752968<http://n2.nabble.com/Method-of-retrieving-Bits-per-sec-MRTG-ref-= tp4750489p4752968.html> DISCLAIMER: -------------------------------------------------------------------------= ---------------------------------------------- The=20contents=20of=20this=20e-mail=20and=20any=20attachment(s)=20are=20c= onfidential=20and=20intended=20for=20the=20named=20recipient(s)=20only.= =20 It=20shall=20not=20attach=20any=20liability=20on=20the=20originator=20or= =20HCL=20or=20its=20affiliates.=20Any=20views=20or=20opinions=20presented= =20in=20 this=20email=20are=20solely=20those=20of=20the=20author=20and=20may=20not= =20necessarily=20reflect=20the=20opinions=20of=20HCL=20or=20its=20affilia= tes.=20 Any=20form=20of=20reproduction,=20dissemination,=20copying,=20disclosure,= =20modification,=20distribution=20and=20/=20or=20publication=20of=20 this=20message=20without=20the=20prior=20written=20consent=20of=20the=20a= uthor=20of=20this=20e-mail=20is=20strictly=20prohibited.=20If=20you=20hav= e=20 received=20this=20email=20in=20error=20please=20delete=20it=20and=20notif= y=20the=20sender=20immediately.=20Before=20opening=20any=20mail=20and=20 attachments=20please=20check=20them=20for=20viruses=20and=20defect. -------------------------------------------------------------------------= ---------------------------------------------- --_000_66E3DDEEA70F0D469D1FFE238526B6ED28053FA4CDCHNHCLTEVS07H_ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html> <head> <meta=20http-equiv=3D"Content-Type"=20content=3D"text/html;=20charset=3Du= s-ascii"> <meta=20name=3D"Generator"=20content=3D"Microsoft=20Exchange=20Server"> <!--=20converted=20from=20rtf=20--> <style><!--=20.EmailQuote=20{=20margin-left:=201pt;=20padding-left:=204pt= ;=20border-left:=20#800000=202px=20solid;=20}=20--></style> </head> <body> <font=20face=3D"Arial,=20sans-serif"=20size=3D"2"> <div><font=20color=3D"#000080">Hi=20Steve,</font></div> <div><font=20face=3D"Times=20New=20Roman,=20serif"=20size=3D"6"=20color= =3D"#000080"> </font></div> <div><font=20color=3D"#000080">Thanks=20for=20your=20response.=20We=20tri= ed=20using=20the=20below=20mentioned=20procedure.</font></div> <div><font=20face=3D"Times=20New=20Roman,=20serif"=20size=3D"6"=20color= =3D"#000080"> </font></div> <div><font=20color=3D"#000080">We=20are=20getting=202=20values=20for=20bi= ts=20per=20sec,=20</font></div> <div><font=20color=3D"#000080">one=20for=20<b>Incoming</b>=20packets,=20a= nd=20the=20other=20on=20<b>outgoing</b>=20packets.</font></div> <div><font=20face=3D"Times=20New=20Roman,=20serif"=20size=3D"6"=20color= =3D"#000080"> </font></div> <div><font=20color=3D"#000080">Is=20the=20one=20displayed=20in=20MRTG=20t= he=20sum=20of=20these=202=20values?</font></div> <div><font=20color=3D"#000080">In=20other=20words,=20is=20bytes=20per=20s= ec=20displayed=20in=20MRTG=20=3D=208=20*=20[(ifInOctetsVal2=20–=20i= fInOctetsVal1)/(T2-T1)=20+=20(ifOutOctetsVal2=20–=20ifOutOctets= Val1)/(T2-T1)]=20?</font></div> <div><font=20face=3D"Times=20New=20Roman,=20serif"=20size=3D"6"=20color= =3D"#000080"> </font></div> <div><font=20color=3D"#000080">Pls.=20let=20us=20know.</font></div> <div><font=20color=3D"#000080"> </font></div> <div><font=20color=3D"#000080">Thanks,</font></div> <div><font=20color=3D"#000080">Prakash</font></div> <div=20style=3D"margin-top:=205pt;=20margin-bottom:=205pt;=20"><font=20fa= ce=3D"Times=20New=20Roman,=20serif"=20size=3D"6"><b>Re:=20[mrtg-developer= s]=20Method=20of=20retrieving=20Bits=20per=20sec=20(MRTG=20ref)</b></font= ></div> <div=20style=3D"margin-top:=205pt;=20margin-bottom:=205pt;=20"><font=20fa= ce=3D"Times=20New=20Roman,=20serif"=20size=3D"3">S=20Shipway<br> Wed,=2017=20Mar=202010=2013:54:09=20-0700</font></div> <div><font=20face=3D"Courier=20New,=20monospace">MRTG=20obtains=20this=20= data=20by=20reading=20the=20ifInOctets=20and=20ifOutOctets=20values=20in= =20the=20</font></div> <div><font=20face=3D"Courier=20New,=20monospace">IF-MIB=20via=20SNMP=20at= =205min=20intervals,=20calculating=20the=20difference=20(taking=20into=20= </font></div> <div><font=20face=3D"Courier=20New,=20monospace">account=20possible=20cou= nter=20wrap) =20and=20dividing=20by=20the=20time=20interval,=20then= =20</font></div> <div><font=20face=3D"Courier=20New,=20monospace">multiplying=20by=208=20t= o=20get=20bits/sec. =20This=20is=20in=20the=20standard=20MIB. = =20If=20the=20</font></div> <div><font=20face=3D"Courier=20New,=20monospace">interface=20is=20a=20hig= h-speed=20interface=20(>=3D100Mbps)=20and=20the=20device=20supports=20= it,=20</font></div> <div><font=20face=3D"Courier=20New,=20monospace">then=20the=20MIB-2=20isu= sed=20instead=20and=20the=20h64bit=20counters=20ifHCInOctets=20and=20</fo= nt></div> <div><font=20face=3D"Courier=20New,=20monospace">ifHCOutOctets=20are=20us= ed=20instead=20(to=20prevent=20counter=20wrap=20from=20causing=20problems= ).</font></div> <div><font=20face=3D"Courier=20New,=20monospace"> </font></div> <div><font=20face=3D"Courier=20New,=20monospace">Steve</font></div> <div><font=20face=3D"Courier=20New,=20monospace"> </font></div> <div><font=20face=3D"Courier=20New,=20monospace">From:=20Prakash=20Marias= usai=20[via=20MRTG=20Mailinglists]=20</font></div> <div><font=20face=3D"Courier=20New,=20monospace">[<a=20href=3D"mailto:ml-= node+[email protected]"><font=20color=3D"#0000FF"= ><u>mailto:ml-node+[email protected]</u></font></= a>]</font></div> <div><font=20face=3D"Courier=20New,=20monospace">Sent:=20Thursday,=2018= =20March=202010=203:13=20a.m.</font></div> <div><font=20face=3D"Courier=20New,=20monospace">To:=20Steve=20Shipway</f= ont></div> <div><font=20face=3D"Courier=20New,=20monospace">Subject:=20Method=20of= =20retrieving=20Bits=20per=20sec=20(MRTG=20ref)</font></div> <div><font=20face=3D"Courier=20New,=20monospace">Hi,</font></div> <div><font=20face=3D"Courier=20New,=20monospace">I=20am=20writing=20a=20s= mall=20program=20to=20get=20the=20"Bits=20per=20sec"=20value</f= ont></div> <div><font=20face=3D"Courier=20New,=20monospace">for=20a=20network=20inte= rface=20in=20Unix=20systems=20(Solaris,=20Linux=20severs)</font></div> <div><font=20face=3D"Courier=20New,=20monospace">similar=20to=20the=20one= =20provided=20by=20MRTG=20in=20the=20below=20link:</font></div> <div><font=20face=3D"Courier=20New,=20monospace"><a=20href=3D"http://www.= switch.ch/network/operation/statistics/geant2.html"><font=20color=3D"#000= 0FF"><u>http://www.switch.ch/network/operation/statistics/geant2.html</u>= </font></a></font></div> <div><font=20face=3D"Courier=20New,=20monospace">I=20assume=20that=20MRTG= =20does=20the=20same=20through=20SNMP.</font></div> <div><font=20face=3D"Courier=20New,=20monospace">I=20am=20new=20to=20SNMP= =20and=20if=20someone=20can=20point=20me=20to=20the=20appropriate=20MIB/O= ID,</font></div> <div><font=20face=3D"Courier=20New,=20monospace">for=20doing=20the=20same= ,=20it=20would=20be=20very=20helpful.</font></div> <div><font=20face=3D"Courier=20New,=20monospace">Thanks=20in=20advance,</= font></div> <div><font=20face=3D"Courier=20New,=20monospace">Prakash</font></div> <div><font=20face=3D"Courier=20New,=20monospace"> </font></div> <div><font=20face=3D"Courier=20New,=20monospace">--=20</font></div> <div><font=20face=3D"Courier=20New,=20monospace">View=20this=20message=20= in=20context:=20</font></div> <div><font=20face=3D"Courier=20New,=20monospace"><a=20href=3D"http://n2.n= abble.com/Method-of-retrieving-Bits-per-sec-MRTG-ref-tp4750489p4752968.ht= ml"><font=20color=3D"#0000FF"><u>http://n2.nabble.com/Method-of-retrievin= g-Bits-per-sec-MRTG-ref-tp4750489p4752968</u></font></a></font></div> <div><font=20face=3D"Times=20New=20Roman,=20serif"=20size=3D"3"> </f= ont></div> <div><font=20face=3D"Times=20New=20Roman,=20serif"=20size=3D"3"> </f= ont></div> </font> </body> </html> <table><tr><td=20bgcolor=3D#ffffff><font=20color=3D#000000><pre>DISCLAIME= R: -------------------------------------------------------------------------= ---------------------------------------------- The=20contents=20of=20this=20e-mail=20and=20any=20attachment(s)=20are=20c= onfidential=20and=20intended=20for=20the=20named=20recipient(s)=20only.= =20 It=20shall=20not=20attach=20any=20liability=20on=20the=20originator=20or= =20HCL=20or=20its=20affiliates.=20Any=20views=20or=20opinions=20presented= =20in=20 this=20email=20are=20solely=20those=20of=20the=20author=20and=20may=20not= =20necessarily=20reflect=20the=20opinions=20of=20HCL=20or=20its=20affilia= tes.=20 Any=20form=20of=20reproduction,=20dissemination,=20copying,=20disclosure,= =20modification,=20distribution=20and=20/=20or=20publication=20of=20 this=20message=20without=20the=20prior=20written=20consent=20of=20the=20a= uthor=20of=20this=20e-mail=20is=20strictly=20prohibited.=20If=20you=20hav= e=20 received=20this=20email=20in=20error=20please=20delete=20it=20and=20notif= y=20the=20sender=20immediately.=20Before=20opening=20any=20mail=20and=20 attachments=20please=20check=20them=20for=20viruses=20and=20defect. -------------------------------------------------------------------------= ----------------------------------------------</pre></font></td></tr></ta= ble> --_000_66E3DDEEA70F0D469D1FFE238526B6ED28053FA4CDCHNHCLTEVS07H_-- --===============0452513644== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ mrtg-developers mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg-developers --===============0452513644==--