This is a discussion on RE: How to differentiate snmpwalk & snmpgetnext request ?? within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============0024628908== Content-class: urn:content-classes:message Content-Type: multipart/alternative; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============0024628908== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8B0DF.69686782" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8B0DF.69686782 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 As=20far=20as=20I=20know,=20we=20can=20not=20disti nguish=20whether=20the=20= snmpgetnext=20request received=20is=20from=20snmpwalk=20executable=20or= 20snmpgetnext=20itself. Regarding=20the=20example=20you=20mentioned,=20why =20do=20you=20want=20to=20= gather=20all=20the instances=20of=20the=20table=20in=20the=201st=20ge tnext=20itself=20when=20= snmpwalk=20is given.?=20 Ideally=20the=20agent/application=20owning=20the=20table=20should=20give =20= the=20current OID=20objects/instances=20available.=20So,=20when=20the=20agent/applicatio= n=20receives the=20getnext=20request,=20irrespective=20of=20whe ther=20it=20is=20part=20= of=20snmpwalk,=20the application=20should=20return=20the=20next=20OID=2 0instance=20that=20is=20= currently exists. =20 =20 Regards, Suresh. =20 =20 =20 =20 =20 =20 =20 -----Original=20Message----- From:=20valantina=20arumugam=20[mailto:vals_85@yahoo.co.in]=20 Sent:=20Thursday,=20May=2008,=202008=2012:27=20PM To:=20Pamidipati=20Suresh-G20238;=20net-snmp-users@lists.sourceforge.net Subject:=20RE:=20How=20to=20differentiate=20snmpwa lk=20&=20snmpgetnext=20r= equest=20?? Thanks. I=20do=20know=20the=20way=20how=20snmpwalk=20works . Let=20me=20explain=20my=20requir.=20in=20detail. =20=20=20=20=20=20For=20snmpgetnext=20request=20i= 20have=20to=20do=20some=20= operation=20for=20xx=20OID. =20=20=20=20=20=20For=20snmpwalk=20request=20,=20i =20have=20to=20do=20the=20= same=20operation=20plus=20some other=20 functionality=20for=20xx=20OID. Eg=20:=20 =20=20=20=20=20=20=20snmpwalk=20of=20xx=20table=20 : =20=20=20=20=20=20=20=20we=20gather=20all=20the=20 instance=20of=20xx=20tab= le=20data=20for=20the=201st=20getnext req.=20itself. =20=20=20=20=20=20=20=20while=20walk=20is=20going= 20on=20,=20there=20is=20= a=20chance=20an=20instance=20may=20get deleted/added=20thro'=20other=20appln(=20other=20than=20sn mp)=20.which=20w= ill=20result=20in displaying=20of=20ambiguous=20data. =20=20=20=20=20=20=20 =20=20=20=20=20=20In=20this=20case=20how=20to=20di ff.=20walk=20&=20getnext= .. Thanks valantina Pamidipati=20Suresh-G20238=20<venkatasuresh.pamidipati@emerson.com>=20 wrot= e:=20 Hi=20Valantina, =20 Snmpwalk=20is=20nothing=20but=20a=20series=20of=20 snmpgetnext=20requests. For=20the=20given=20OID,=20snmpwalk=20first=20send s=20an=20snmpgetnext=20r= equest.=20After receiving=20the=20response=20for=20the=20getnext,= 20it=20retrieves=20the=20= OID=20from=20the response=20and=20then=20sends=20snmpgetnext=20requ est=20on=20this=20OID.=20= This=20way snmpgetnext=20requests=20are=20sent=20until=20all= 20OIDs/variables=20in=20= the=20subtree (and=20their=20values)=20below=20the=20given=20OID =20are=20retrieved. =20 Please=20see=20the=20man=20page=20of=20snmpwalk. =20 Regards, Suresh. =20 -----Original=20Message----- From:=20net-snmp-users-bounces@lists.sourceforge.net [mailto:net-snmp-users-bounces@lists.sourceforge.net]=20On=20Behalf=20Of valantina=20arumugam Sent:=20Thursday,=20May=2008,=202008=2011:06=20AM To:=20net-snmp-users@lists.sourceforge.net Subject:=20How=20to=20differentiate=20snmpwalk=20& =20snmpgetnext=20request= =20?? Hi=20all, =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20Is=20there=20a=20way=20 to=20differentiate=20the= =20request=20from=20snmpwalk=20& snmpgetnext=20? =20=20=20=20=20=20=20=20Like=20a=20flag=20in=20req uest=20structure=20which= =20diff.=20walk=20&=20getnext.. =20=20=20=20=20=20=20=20I=20have=20surfed=20the=20 net-snmp=20,=20but=20i=20= couldn't=20find=20out=20a=20way. Thanks Valantina =20=20_____=20=20 Did=20you=20know?=20You=20can=20CHAT=20without=20d ownloading=20messenger.=20= Click <http://in.rd.yahoo.com/tagline_webme...messenger.yaho o.com/webmessengerpromo.php>=20here __________________________________________________ ____________________ This=20email=20has=20been=20scanned=20by=20the=20M essageLabs=20Email=20Sec= urity=20System. For=20more=20information=20please=20visit=20http://www.messagelabs.com/ema= il=20 __________________________________________________ ____________________ =20=20_____=20=20 From=20Chandigarh=20to=20Chennai=20-=20find=20friends=20all=20over=20India= ..=20Click <http://in.rd.yahoo.com/tagline_group...s.yahoo.com/gr oups/citygroups/>=20here. __________________________________________________ ____________________ This=20email=20has=20been=20scanned=20by=20the=20M essageLabs=20Email=20Sec= urity=20System. For=20more=20information=20please=20visit=20http://www.messagelabs.com/ema= il=20 __________________________________________________ ____________________ ------_=_NextPart_001_01C8B0DF.69686782 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE=20HTML=20PUBLIC=20"-//W3C//DTD=20HTML=204.0=20Transitional//EN">= <HTML><HEAD> <META=20HTTP-EQUIV=3D"Content-Type"=20CONTENT=3D"text/html;=20charset=3Dus= -ascii"> <TITLE>Message</TITLE> <META=20content=3D"MSHTML=206.00.2900.3314"=20name =3DGENERATOR></HEAD> <BODY> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20size=3D2>As=20far=20 as=20I=20know,=20we=20can=20not=20distinguish=20wh ether=20the=20snmpgetnex= t=20request=20received=20is=20 from=20snmpwalk=20executable=20or=20snmpgetnext=20 itself.</FONT></SPAN></D= IV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2>Regarding=20the=20example=20you=20mention ed,=20why=20do=20you=20w= ant=20to=20gather=20all=20the=20 instances=20of=20the=20table=20in=20the=201st=20ge tnext=20itself=20when=20= snmpwalk=20is=20given.?=20 </FONT></SPAN></DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2>Ideally=20the=20agent/application=20owning=20the=20table=20should= =20give=20the=20current=20 OID=20objects/instances=20available.=20So,=20when=20the=20agent/applicatio= n=20receives=20the=20 getnext=20request,=20irrespective=20of=20whether=2 0it=20is=20part=20of=20s= nmpwalk,=20the=20application=20 should=20return=20the=20next=20OID=20instance=20th at=20is=20 currently exists.</FONT></SPAN></DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2> </FONT></SPAN></DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2>Regards,</FONT></SPAN></DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2>Suresh.</FONT></SPAN></DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008> </SPAN></DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN=20class=3D089402107-08052008><FONT=20face=3DArial=20color=3D#00= 00ff=20 size=3D2></FONT></SPAN> </DIV> <BLOCKQUOTE=20style=3D"MARGIN-RIGHT:=200px"> =20=20<DIV></DIV> =20=20<DIV=20class=3DOutlookMessageHeader=20lang=3 Den-us=20dir=3Dltr=20ali= gn=3Dleft><FONT=20 =20=20face=3DTahoma=20size=3D2>-----Original=20Message-----<BR><B>From:</B= >=20valantina=20 =20=20arumugam=20[mailto:vals_85@yahoo.co.in]=20<BR><B>Sent:</B>=20Thursda= y,=20May=2008,=202008=20 =20=2012:27=20PM<BR><B>To:</B>=20Pamidipati=20Suresh-G20238;=20 =20=20net-snmp-users@lists.sourceforge.net<BR><B>Subject:</B>=20RE:=20How=20= to=20 =20=20differentiate=20snmpwalk=20&=20snmpgetne xt=20request=20 =20=20??<BR><BR></FONT></DIV>Thanks.<BR><BR>I=20do=20know=20the=20way=20ho= w=20snmpwalk=20 =20=20works.<BR><BR>Let=20me=20explain=20my=20requ ir.=20in=20detail.<BR><B= R> =20 =20=20 =20For=20snmpgetnext=20request=20i=20h ave=20to=20do=20some=20o= peration=20for=20xx=20 =20=20OID.<BR> =20For =20snmpwalk=20request=20= ,=20i=20have=20to=20do=20the=20 =20=20same=20operation=20plus=20some=20other=20<BR >functionality=20for=20x= x=20OID.<BR><BR>Eg=20:=20 =20=20<BR> =20 =20snmp walk=20of=20xx=20table=20= =20=20:<BR> =20 =20we=20gather=20all=20t= he=20instance=20of=20xx=20 =20=20table=20data=20for=20the=201st=20getnext=20r eq.=20itself.<BR> &= nbsp; =20 =20=20 =20while=20walk=20is=20goi ng=20on=20,=20there=20is= =20a=20chance=20an=20instance=20may=20 =20=20get=20deleted/added=20thro'=20other=20appln(=20other=20than=20sn mp)=20= ..which=20will=20result=20in=20 =20=20displaying=20of=20ambiguous=20data.<BR>  ; =20 &n= bsp;=20 =20=20<BR> =20 =20In=20this= 20case=20how=20to=20diff= ..=20walk=20&=20 =20=20getnext.<BR><BR><BR>Thanks<BR>valantina<BR>< BR><B><I>Pamidipati=20Su= resh-G20238=20 =20=20<venkatasuresh.pamidipati@emerson.com> </I></B>=20wrote: =20=20<BLOCKQUOTE=20class=3Dreplbq=20 =20=20style=3D"PADDING-LEFT:=205px;=20MARGIN-LEFT:=205px;=20BORDER-LEFT:=20= rgb(16,16,255)=202px=20solid"> =20=20=20=20<META=20content=3D"MSHTML=206.00.2900. 3314"=20name=3DGENERATOR= > =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20size=3D2>Hi=20 =20=20=20=20Valantina,</FONT></SPAN></DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2></FONT></SPAN> </DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2>Snmpwalk=20is=20nothing=20but =20a=20series=20of=20snm= pgetnext=20 =20=20=20=20requests.</FONT></SPAN></DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2>For=20the=20given=20OID,=20sn mpwalk=20first=20sends=20= an=20snmpgetnext=20request.=20After=20 =20=20=20=20receiving=20the=20response=20for=20the =20getnext,=20it=20retri= eves=20the=20OID=20from=20the=20 =20=20=20=20response=20and=20then=20sends=20snmpge tnext=20request=20on=20t= his=20OID.=20This=20way=20 =20=20=20=20snmpgetnext=20requests=20are=20sent=20 until=20all=20OIDs/varia= bles=20in=20the=20subtree=20(and=20 =20=20=20=20their=20values)=20below=20the=20given= 20OID=20are=20retrieved.= </FONT></SPAN></DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2></FONT></SPAN> </DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2>Please=20see=20the=20man=20pa ge=20of=20snmpwalk.</FON= T></SPAN></DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2></FONT></SPAN> </DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2>Regards,</FONT></SPAN></DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2>Suresh.</FONT></SPAN></DIV> =20=20=20=20<DIV><SPAN=20class=3D470210806-08052008><FONT=20face=3DArial=20= color=3D#0000ff=20 =20=20=20=20size=3D2></FONT></SPAN> </DIV> =20=20=20=20<BLOCKQUOTE=20style=3D"MARGIN-RIGHT:=200px"> =20=20=20=20=20=20<DIV></DIV> =20=20=20=20=20=20<DIV=20class=3DOutlookMessageHea der=20lang=3Den-us=20dir= =3Dltr=20align=3Dleft><FONT=20 =20=20=20=20=20=20face=3DTahoma=20size=3D2>-----Original=20Message-----<BR= ><B>From:</B>=20 =20=20=20=20=20=20net-snmp-users-bounces@lists.sourceforge.net=20 =20=20=20=20=20=20[mailto:net-snmp-users-bounces@lists.sourceforge.net]=20= <B>On=20Behalf=20Of=20 =20=20=20=20=20=20</B>valantina=20arumugam<BR><B>Sent:</B>=20Thursday,=20M= ay=2008,=202008=2011:06=20 =20=20=20=20=20=20AM<BR><B>To:</B>=20net-snmp-users@lists.sourceforge.net<= BR><B>Subject:</B>=20 =20=20=20=20=20=20How=20to=20differentiate=20snmpw alk=20&=20snmpgetnex= t=20request=20 =20=20=20=20=20=20??<BR><BR></FONT></DIV>Hi=20all,<BR> &n= bsp; =20 =20=20=20=20=20=20 =20 =20&n bsp;=20 =20=20=20=20=20=20<BR> &nbs p; =20I= s=20there=20a=20way=20to=20 =20=20=20=20=20=20differentiate=20the=20request=20 from=20snmpwalk=20&=20= snmpgetnext=20?<BR><BR> =20 =20=20=20=20=20=20 =20 =20Li ke=20a=20flag=20in=20req= uest=20structure=20which=20diff.=20 =20=20=20=20=20=20walk=20&=20getnext..<BR><BR> =20 =20= =20I=20have=20surfed=20 =20=20=20=20=20=20the=20net-snmp=20,=20but=20i=20couldn't=20find=20out=20a= =20 =20=20=20=20=20=20way.<BR><BR><BR>Thanks<BR>Valant ina<BR> =20=20=20=20=20=20<DIV><!--2--></DIV> =20=20=20=20=20=20<HR=20SIZE=3D1> =20=20=20=20=20=20Did=20you=20know?=20You=20can=20 CHAT=20without=20downloa= ding=20messenger.=20<A=20 =20=20=20=20=20=20href=3D"http://in.rd.yahoo.com/tagline_webmessenger_2/*h= ttp://in.messenger.yahoo.com/webmessengerpromo.php">Click=20 =20=20=20=20=20=20here</A></BLOCKQUOTE><BR>_______________________________= _______________________________________<BR>This=20 =20=20=20=20email=20has=20been=20scanned=20by=20th e=20MessageLabs=20Email=20= Security=20System.<BR>For=20more=20 =20=20=20=20information=20please=20visit=20http://www.messagelabs.com/emai= l=20 =20=20=20=20<BR>__________________________________ ________________________= ____________<BR></BLOCKQUOTE><BR> =20=20<P><!--10--> =20=20<HR=20SIZE=3D1> =20=20</HR>From=20Chandigarh=20to=20Chennai=20-=20find=20friends=20all=20o= ver=20India.=20<A=20 =20=20href=3D"http://in.rd.yahoo.com/tagline_groups_10/*http://in.promos.y= ahoo.com/groups/citygroups/">Click=20 =20=20here.</A></BLOCKQUOTE> <BR> __________________________________________________ ____________________<BR>= This=20email=20has=20been=20scanned=20by=20the=20M essageLabs=20Email=20Sec= urity=20System.<BR> For=20more=20information=20please=20visit=20http://www.messagelabs.com/ema= il=20<BR> __________________________________________________ ____________________<BR>= </BODY></HTML> ------_=_NextPart_001_01C8B0DF.69686782-- --===============0024628908== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757...un.com/javaone --===============0024628908== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users --===============0024628908==-- |