Hi,net-snmp-users:

I used net-snmp and python.this is net-snmp some message:

[bend@testpy ~]$ rpm -qa|grep net-snmp
net-snmp-utils-5.6.1-7.fc15.i686
net-snmp-devel-5.6.1-7.fc15.i686
net-snmp-5.6.1-7.fc15.i686
net-snmp-libs-5.6.1-7.fc15.i686
net-snmp-python-5.6.1-7.fc15.i686
[bend@testpy ~]$ snmpget -c public -v1 192.18.5.22 sysDescr
Timeout: No Response from 192.18.5.22. -----I can get some response mesages.

and then I use pytho:
Python 2.7.1 (r271:86832, Apr 12 2011, 16:16:18) 
[GCC 4.6.0 20110331 (Red Hat 4.6.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import netsnmp
>>> result=netsnmp.snmpwalk('sysDescr',Version=1,DestHost='192.18.5.22',Community='public')
>>> print result
()--------there no any response mesages.

>>> netsnmp.verbose=1  -------I set verbose=1
>>> result=netsnmp.snmpwalk('sysDescr',Version=1,DestHost='192.18.5.22',Community='public')
>>> print result
()--------there no any response mesages.

How can I get snmp response mesages?

       

Thanks a lot!



2011-07-15
  
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to