traversing a MIB

Lee Slaughter (lees@rembrandt.nosc.mil)
Fri, 18 Apr 97 13:31:29 PDT

I was wrong....
you have to keep adding a nested level for each subtree,
like for mib-2 to get all the variables you need

foreach i [mib successor mib-2] {
puts "[mib oid $i]: $i: [mib access $i]
foreach j [mib successor $i] {
puts "[mib oid $j]: $j: [mib access $j]"
foreach k [mib successor $j] {
puts "[mib oid $k]: $k: [mib access $k]"
foreach m [mib successor $k] {
puts "[mib oid $m]: $m: [mib access $m]"
}
}
}
}

which is ugly and bad.

-- 
  Lee Slaughter, network management development - submarine stuff   
  Navy R & D, Point Loma, San Diego, CA 	     619-553-5486
  "Giving credence to his ramblings indicates a cognitive disorder..."
  				- Lee's psychiatrist, circa 1952
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.