You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this allows me to from snmpwalk.py import run in my own code, and use it,
I don't have to make my python code run a subshell to run your python code :-)
e.g.
from snmpwalk import run
run('-v3', '-l', 'authPriv', '-u', 'myuser',
'-a', 'SHA', '-A', 'apasswd12345', '-x', 'AES', '-X', 'prvpass12345',
'127.0.0.1', '.1.3.6.1.2.1.2.2.1.2'])
The text was updated successfully, but these errors were encountered:
I'd like to suggest a change to snmpwalk.py to allow it to be used from other programs.
I propose putting everything from
snmpEngine = engine.SnmpEngine()
to the end of the program in a function called "run()".e.g.
then, at the end,
this allows me to
from snmpwalk.py import run
in my own code, and use it,I don't have to make my python code run a subshell to run your python code :-)
e.g.
The text was updated successfully, but these errors were encountered: