Q: Net-SNMP Python test code Error
최대완<[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <63e4629caf011862f057ed6db19d70b5@a51016> |
Good Evening
My name is Choi. Dae Wan
I'm from KOREA, Sever Programmer!
I've got a problem
1) ~/net-snmp-5.4.2.1 complie - OK (./configure , make test , make install)
...
Installing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/SNMP/SNMP.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/Bundle/NetSNMP/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
make[1]: Leaving directory `/home/alpha/SETUP/SNMP/net-snmp-5.4.2.1/perl'
2) ~/net-snmp-5.4.2.1/python - FAIL
[root@wsim01 python]# python setup.py build
running build
running build_py
running build_ext
[root@wsim01 python]# python setup.py test
running test
running egg_info
writing netsnmp_python.egg-info/PKG-INFO
writing top-level names to netsnmp_python.egg-info/top_level.txt
writing dependency_links to netsnmp_python.egg-info/dependency_links.txt
reading manifest file 'netsnmp_python.egg-info/SOURCES.txt'
writing manifest file 'netsnmp_python.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-i686-2.4/netsnmp/client_intf.so -> netsnmp
testFuncs (netsnmp.tests.test.BasicTests) ...
----------------------------------------
v1 snmpget result: ('Linux wsim01 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686',)
v1 get var: sysDescr 0 = Linux wsim01 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686 ( OCTETSTR )
----------------------------------------
v1 snmpgetnext result: ('.1.3.6.1.4.1.8072.3.2.10',)
v1 getnext var: sysObjectID 0 = .1.3.6.1.4.1.8072.3.2.10 ( OBJECTID )
----------------------------------------
v1 snmpset result: 1
v1 set var: sysLocation 0 = my new location ( None )
----------------------------------------
v1 varlist walk in:
system None = None ( None )
system None = None ( None )
error: walk: unknown python error (varlist)v1 snmpwalk result: None
system None = None ( None )
ERROR
testFuncs (netsnmp.tests.test.SetTests) ...
-------------- SET Test Start ----------------------------
uptime = 38551
uptime = 38551
error: get: unknown python errorvar = nsCacheEntry None = None ( None )
ERROR
======================================================================
ERROR: testFuncs (netsnmp.tests.test.BasicTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alpha/SETUP/SNMP/net-snmp-5.4.2.1/python/netsnmp/tests/test.py", line 66, in testFuncs
for var in vars:
TypeError: expected string or Unicode object, NoneType found
======================================================================
ERROR: testFuncs (netsnmp.tests.test.SetTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alpha/SETUP/SNMP/net-snmp-5.4.2.1/python/netsnmp/tests/test.py", line 276, in testFuncs
Community='public')
TypeError: expected string or Unicode object, NoneType found
----------------------------------------------------------------------
Ran 2 tests in 0.039s
FAILED (errors=2)
Help me... about this problem...
my system OS : Linux wsim01 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST 2007 i686 i686 i386 GNU/Linux
my python & GCC Ver. : Python 2.4.3 (#1, Mar 14 2007, 18:51:08) [GCC 4.1.1 20070105 (Red Hat 4.1.1-52)] on linux2
thank you.
천상의 빛
P300-UP93 구입하다...ㅋㅋㅋ
Python..... C++..... C....
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users