title: Python SNMP GetBulk - Multiple OIDs
body: <p>I need to use PySNMP's GetBulk implementation to query for a list of Table OIDs. I was able to get it to query for 1 Table OID, but unable to get it to read the Table OIDs from a list. What am I doing wrong? Please help. </p>
  
  <pre><code>from pysnmp.entity.rfc3413.oneliner import cmdgen  
  
  errorIndication, errorStatus, errorIndex, \  
  varBindTable = cmdgen.CommandGenerator().bulkCmd(  
              cmdgen.CommunityData('test-agent', 'public'),  
              cmdgen.UdpTransportTarget(('localhost', 161)),  
              0,   
              25,  
              (1,3,6,1,2,1,4,20) # ipAddrTable OID . This works fine.
              # I also want to query .1.3.6.1.2.1.4.21 ipRouteTable in the same command  
              # Putting is as ( (1,3,6,1,2,1,4,20), (1,3,6,1,2,1,4,21) )  gives an error
          )
  
  if errorIndication:
     print errorIndication
  else:
      if errorStatus:
      print '%s at %s\n' % (
          errorStatus.prettyPrint(),
          errorIndex and varBindTable[-1][int(errorIndex)-1] or '?'
          )
  else:
      for varBindTableRow in varBindTable:
          for name, val in varBindTableRow:
              print '%s = %s' % (name.prettyPrint(), val.prettyPrint())
  </code></pre>