home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / snmp / 780 < prev    next >
Encoding:
Text File  |  1992-12-11  |  2.4 KB  |  81 lines

  1. Newsgroups: comp.protocols.snmp
  2. Path: sparky!uunet!gatech!ncar!csn!cherokee!uswmrg!engineer.mrg.uswest.com!chris
  3. From: chris@engineer.mrg.uswest.com (Chris Fedde)
  4. Subject: Re: how to get variables
  5. Message-ID: <1992Dec11.172457.29336@uswmrg.mrg.uswest.com.mrg.uswest.com>
  6. Organization: USWEST Marketing Resources
  7. NntpPostingHost: engineer.mrg.uswest.com
  8. References: <hoens.723910384@gmd.de>
  9. Date: 11 Dec 92 22:24:57 GMT
  10. Lines: 69
  11.  
  12. In article <hoens.723910384@gmd.de> hoens@gmd.de (Guenter Hoens) writes:
  13. >there are some mysteries in the procedure of getting the value of
  14. >some variables.
  15. >
  16. >if you want a nonindexed variable, you will have to ask for
  17. >
  18. >x.y.z.0
  19. >
  20. >when you want x.y.z.
  21. >
  22. >Other questions will result in: no such name.
  23. >
  24. >if you want an indexed variable, you will have to ask for
  25. >x.y.z.i
  26. >when you want index i of x.y.z
  27. >
  28. >why is there this extrazero in the question (by getrequest) for
  29. >a nonindexed variable?
  30. >
  31. >in the getnextrequest the situation is even more complicated. but
  32. >i think, we should discuss that stuff later
  33. >
  34. >
  35. >
  36. >* Guenter Hoens, GMD  I8, 
  37. >* German National Research Center for Computer Science
  38. >* hoens@gmd.de    (02241) 142408
  39.  
  40. x.y.z is the "class" of the variable.  x.y.z.0 is the instance (leaf).
  41. many variables are single instance variables so the instance of x.y.x is
  42. x.y.z.0.  For tables there are two forms, dense index and sparse index.
  43. in a dense table each index is one greater than the previous.
  44. in a sparse table each index is "lexagraphicly greater" (sorted order)
  45.  
  46.  
  47. **Sparse table
  48.  
  49. get_next_req (atPhysAddress)
  50. might return get_response (atPhysAddress.144.163.254.20 = 00:00:08:23:AF:D3)
  51.  
  52. get_next_req (atPhysAddress.144.163.254.20)
  53. might return get_response (atPhysAddress.144.163.254.31 = 00:20:C3:00:00:FA)
  54.  
  55. ** Single instance
  56.  
  57. get_next_req (system)
  58. will return get_response (sysDescr.0 = "GS3BFX 9.0(1) bla bla bla")
  59.  
  60.  
  61. ** Dense table
  62.  
  63. get_next_req (interfaces)
  64. will return get_response (ifNumber.0 = 3) 
  65.  
  66. get_next_req (ifNumber.0)
  67. will return get_response (ifTable.ifEntry.ifIndex.1 = 1)
  68. get_next_req (ifTable.ifEntry.ifIndex.1)
  69. will return get_response (ifTable.ifEntry.ifIndex.2 = 2)
  70. get_next_req (ifTable.ifEntry.ifIndex.2)
  71. will return get_response (ifTable.ifEntry.ifIndex.3 = 3)
  72. get_next_req (ifTable.ifEntry.ifIndex.3)
  73. will return get_response (ifTable.ifEntry.ifDescr.1 = "ethernet0")
  74. ...
  75.  
  76. Hope this helps!
  77.     chris
  78.  
  79.  
  80. Chris Fedde, USWEST MRG, chris@mrg.uswest.com, voice +13037842823
  81.