diff options
author | elie <elie> | 2015-09-14 05:45:34 +0000 |
---|---|---|
committer | elie <elie> | 2015-09-14 05:45:34 +0000 |
commit | 82e1b1a84d62ced461840eba9019cf8b21b8b072 (patch) | |
tree | 98cd16aca83a8ebd067966731e897ab2aaa9d7c7 /docs/source/faq/walk-whole-mib.rst | |
parent | 1ae4badb5ae726badd6673c3bea37fab5465edad (diff) | |
download | pysnmp-82e1b1a84d62ced461840eba9019cf8b21b8b072.tar.gz |
some more missing files
Diffstat (limited to 'docs/source/faq/walk-whole-mib.rst')
-rw-r--r-- | docs/source/faq/walk-whole-mib.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/source/faq/walk-whole-mib.rst b/docs/source/faq/walk-whole-mib.rst new file mode 100644 index 0000000..5682746 --- /dev/null +++ b/docs/source/faq/walk-whole-mib.rst @@ -0,0 +1,26 @@ + +Walking whole MIB +----------------- + +Q. The nextCmd() and bulkCmd() methods of CommandGenerator app + (oneliner version) stop working once returned OIDs went out of scope of + request OIDs. + + In other words, if I request 1.3.6.1, I would get everything under + the 1.3.6.1 prefix, but not 1.3.6.2. Is there any way to make it walking + the whole MIB? + +A. Yes, just pass the lexicographicMode=True parameter to CommandGenerator + nextCmd() and bulkCmd() methods (introduced in PySNMP 4.2.3+) or set + CommandGenerator.lexicographicMode=True option before calling nextCmd() + and bulkCmd() methods. + +.. code-block:: python + + cmdGen = cmdgen.CommandGenerator() + errorIndication, errorStatus, errorIndex, varBindTable = cmdGen.bulkCmd( + ...., + ...., + ...., + lexicographicMode=True + ) |