Is it that it can't return objects, or not everything is exposed (or both). For instance, serialNumber appears to get a string, but you still can't do serv.getSerialNumber()
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Newton Sent: Wednesday, January 17, 2007 1:43 PM To: General discussion of using zenoss system Subject: Re: [zenoss-users] Scripting questions There isn't a good list. The main limitation problem you are running into is the passing of "flat" built-in objects like strings, lists and dictionary; you can't pass objects. -Eric Todd Davis wrote: > Is there a list of the attributes that can be queried with XML-RPC? > Using the example given, only serv.getManageIp() and > serv.getDeviceName() appear to work. Trying to use any of the other > attributes listed on the page > gives: > > >>>> serv.getLocationPath() >>>> > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__ > return self.__send(self.__name, args) > File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request > verbose=self.__verbose > File "/usr/lib/python2.3/xmlrpclib.py", line 1080, in request > return self._parse_response(h.getfile(), sock) > File "/usr/lib/python2.3/xmlrpclib.py", line 1219, in _parse_response > return u.close() > File "/usr/lib/python2.3/xmlrpclib.py", line 742, in close > raise Fault(**self._stack[0]) > xmlrpclib.Fault: <Fault -1: 'Unexpected Zope exception: zExceptions.NotFound > - \n \n\n \n \n \n\n \n Site Error \n An error was encountered while > publishing this resource.\n \n Resource not found \n\n Sorry, the > requested resource does not exist. Check the URL and try again. Resource: > http://nmc02.anpinetwork.com:8101/zport/dmd/Devices/Server/Linux/devices/nmc > 01/getLocationPath \n \n\n Troubleshooting Suggestions \n\n \n The > URL may be incorrect. \n The parameters passed to this resource may be > incorrect. \n A resource that this resource relies on may be\n > encountering an error. \n \n\n For more detailed information about the > error, please\n refer to error log.\n \n\n If the error persists please > contact the site maintainer.\n Thank you for your patience.\n \n \n '> > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Eric Newton > Sent: Monday, January 15, 2007 9:19 AM > To: General discussion of using zenoss system > Subject: Re: [zenoss-users] Scripting questions > > Hi Mohamed, > > The page has been updated with an example test of the new device. > > -Eric > > Mohamed Hussein wrote: > >> Hi, >> Thanks! I am gonna give that a try. >> how about reading data back using xml-rpc? >> >> Regards >> Mohamed >> -------------- Original message ---------------------- >> From: "Erik A. Dahl" <[EMAIL PROTECTED]> >> >> >>> I just added a how to on this to the wiki. Let me know if you have >>> any issues with it. >>> >>> http://dev.zenoss.org/trac/wiki/HowToAddDevice >>> >>> -EAD >>> >>> On Jan 8, 2007, at 4:09 PM, [EMAIL PROTECTED] wrote: >>> >>> >>> >>>> Hi, >>>> I have looked at the twiki and the available docs but I couldn't >>>> find any documentation on how to interact with zenoss from a perl >>>> or ruby script. >>>> I have several hundred nodes that I need to add and manipulate. >>>> Ideally I would like to add all my hosts to a central ldap server >>>> (s) and then automate the process of adding the devices to zenoss. >>>> I would also like to read some information back from zenoss when >>>> compiling reports. >>>> >>>> Any hints are much appreciated >>>> >>>> _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
