🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.protocols.snmp
Article #209

Re: how to get variables

#209
From: Chris Fedde
Date: Fri, 11 Dec 1992 22:24
69 lines
2525 bytes
In article <hoens.723910384@gmd.de> hoens@gmd.de (Guenter Hoens) writes:
>there are some mysteries in the procedure of getting the value of
>some variables.
>
>if you want a nonindexed variable, you will have to ask for
>
>x.y.z.0
>
>when you want x.y.z.
>
>Other questions will result in: no such name.
>
>if you want an indexed variable, you will have to ask for
>x.y.z.i
>when you want index i of x.y.z
>
>why is there this extrazero in the question (by getrequest) for
>a nonindexed variable?
>
>in the getnextrequest the situation is even more complicated. but
>i think, we should discuss that stuff later
>
>
>
>* Guenter Hoens, GMD  I8, 
>* German National Research Center for Computer Science
>* hoens@gmd.de    (02241) 142408

x.y.z is the "class" of the variable.  x.y.z.0 is the instance (leaf).
many variables are single instance variables so the instance of x.y.x is
x.y.z.0.  For tables there are two forms, dense index and sparse index.
in a dense table each index is one greater than the previous.
in a sparse table each index is "lexagraphicly greater" (sorted order)


**Sparse table

get_next_req (atPhysAddress)
might return get_response (atPhysAddress.144.163.254.20 = 00:00:08:23:AF:D3)

get_next_req (atPhysAddress.144.163.254.20)
might return get_response (atPhysAddress.144.163.254.31 = 00:20:C3:00:00:FA)

** Single instance

get_next_req (system)
will return get_response (sysDescr.0 = "GS3BFX 9.0(1) bla bla bla")


** Dense table

get_next_req (interfaces)
will return get_response (ifNumber.0 = 3) 

get_next_req (ifNumber.0)
will return get_response (ifTable.ifEntry.ifIndex.1 = 1)
get_next_req (ifTable.ifEntry.ifIndex.1)
will return get_response (ifTable.ifEntry.ifIndex.2 = 2)
get_next_req (ifTable.ifEntry.ifIndex.2)
will return get_response (ifTable.ifEntry.ifIndex.3 = 3)
get_next_req (ifTable.ifEntry.ifIndex.3)
will return get_response (ifTable.ifEntry.ifDescr.1 = "ethernet0")
...

Hope this helps!
	chris

 
Chris Fedde, USWEST MRG, chris@mrg.uswest.com, voice +13037842823
Technical Details
Message-ID: <1992Dec11.172457.29336@uswmrg.mrg.uswest.com.mrg.uswest.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!ncar!csn!cherokee!uswmrg!engineer.mrg.uswest.com!chris
References: <hoens.723910384@gmd.de>

Show Full Headers
Complete Article Headers
Newsgroups: comp.protocols.snmp
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!ncar!csn!cherokee!uswmrg!engineer.mrg.uswest.com!chris
From: chris@engineer.mrg.uswest.com (Chris Fedde)
Subject: Re: how to get variables
Message-ID: <1992Dec11.172457.29336@uswmrg.mrg.uswest.com.mrg.uswest.com>
Organization: USWEST Marketing Resources
NntpPostingHost: engineer.mrg.uswest.com
References: <hoens.723910384@gmd.de>
Date: 11 Dec 92 22:24:57 GMT
Lines: 69