atom feed10 messages in [et-mgmt-tools] Cobbler API - Mac...
FromSent OnAttachments
Eamonn WalshApr 30, 2008 1:42 am 
Pablo Iranzo GómezApr 30, 2008 4:10 am 
Eamonn WalshApr 30, 2008 4:24 am 
Michael DeHaanApr 30, 2008 4:32 am 
Michael DeHaanApr 30, 2008 4:38 am 
Michael DeHaanApr 30, 2008 4:41 am 
Eamonn WalshApr 30, 2008 4:46 am 
Eamonn WalshApr 30, 2008 5:54 am 
Eamonn WalshApr 30, 2008 6:29 am 
Michael DeHaanApr 30, 2008 6:47 am 
Subject:Re: [et-mgmt-tools] Cobbler API - Mac registration problem
From:Eamonn Walsh (
Date:Apr 30, 2008 4:24:29 am

Its just a test script at the moment, I want to see what it can do

system_id = remote.new_system(token) remote.modify_system(system_id,'name', 'Imatest2',token) remote.modify_system(system_id,'profile', 'Testing',token) remote.modify_system(system_id, 'mac', 'FF:EE:DD:CC:BB:AA',token) remote.save_system(system_id,token)

I think the problem is because the 'mac' key is in a nested list, not sure though.

On Wed, Apr 30, 2008 at 12:10 PM, Pablo Iranzo Gómez <> wrote:

Is it possible to have the script to play with it?

Will try to check how this works and possible usages :)

Thanks! Pablo

El mié, 30-04-2008 a las 09:42 +0100, Eamonn Walsh escribió:

Hi Guys,

Doing some work with the cobbler api and getting the fallowing error

Traceback (most recent call last): File "rpc-cobbler-test", line 20, in ? remote.modify_system(system_id, 'interfaces : mac_address', 'FF:EE:DD:CC:BB:AA', token) File "/usr/lib/python2.4/xmlrpclib .py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.4/", line 1383, in __request verbose=self.__verbose File "/usr/lib/python2.4/", line 1147, in request return self._parse_response(h.getfile(), sock) File "/usr/lib/python2.4/", line 1286, in _parse_response return u.close() File "/usr/lib/python2.4/", line 744, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault 1: "cobbler.cexceptions.CX:'object has no method: mac'">

Line of code causing this problem:

remote.modify_system(sys_id, 'mac', 'AA:BB:CC:DD:EE:FF', token)

Any ideas? Using cobbler 0.8.3-3.el5