--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: index_vb
comment: 
- !ruby/struct:SM::Flow::P 
  body: Walks a list of ObjectId or VarBind objects using get_next until the response to the first OID in the list reaches the end of its MIB subtree.
- !ruby/struct:SM::Flow::P 
  body: The varbinds from each get_next are yielded to the given block as they are retrieved. The result is yielded as a VarBind when walking a single object or as a VarBindList when walking a list of objects.
- !ruby/struct:SM::Flow::P 
  body: Normally this method is used for walking tables by providing an ObjectId for each column of the table.
- !ruby/struct:SM::Flow::P 
  body: "For example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  SNMP::Manager.open(:Host =&gt; &quot;localhost&quot;) do |manager|\n    manager.walk(&quot;ifTable&quot;) { |vb| puts vb }\n  end\n\n  SNMP::Manager.open(:Host =&gt; &quot;localhost&quot;) do |manager|\n    manager.walk([&quot;ifIndex&quot;, &quot;ifDescr&quot;]) do |index, descr|\n      puts &quot;#{index.value} #{descr.value}&quot;\n    end\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: The index_column identifies the column that will provide the index for each row. This information is used to deal with &quot;holes&quot; in a table (when a row is missing a varbind for one column). A missing varbind is replaced with a varbind with the value NoSuchInstance.
- !ruby/struct:SM::Flow::P 
  body: "Note: If you are getting back rows where all columns have a value of NoSuchInstance then your index column is probably missing one of the rows. Choose an index column that includes all indexes for the table."
full_name: SNMP::Manager#walk
is_singleton: false
name: walk
params: (object_list, index_column=0) {|index_vb| ...}
visibility: public
