So I've reviewed this wiki page:

http://dev.zenoss.org/trac/wiki/HowToAddDevice

and ran into this error:


Code:
Traceback (most recent call last):
  File "./load.py", line 35, in ?
    s.loadDevice(dev)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -1: 'Unexpected Zope exception: exceptions.ValueError - 
need more than 1 value to unpack'>




Here's the code I'm using:


Code:
from xmlrpclib import ServerProxy

creds = "user1:abc123"
s = ServerProxy('http://"; + creds + "@localhost:8080/zport/dmd/DeviceLoader')

slice_devs = ['host1']

for slice_dev in slice_devs:
        print "Trying %s now..." % slice_dev
        dev = {'deviceName':slice_dev,
                'devicePath':'/Server/Linux/Slice',
                'tag':"",
                'serialNumber':"",
                'zSnmpCommunity':"abcde",
                'zSnmpPort':161, 
                'statusMonitors':["localhost"],
                'performanceMonitor':"localhost",
                'discoverProto':"snmp",
                }
        s.loadDevice(dev)




(names/passwords changed to protect me)

So, questions:

1. Why isn't this working?

2. Is there a way to implicitly default to a non-standard zSnmpCommunity name 
(other than 'public')?




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=16998#16998

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to