| 248 | | wget -qO- 'http://new.orbit-lab.org:5054/inventory/attribute_add?name=node1-1.sb10.orbit-lab.org--e0&attribute=INV_MAC_0&value=00:01:02:03:04:05' |
| | 248 | wget -qO- 'http://new.orbit-lab.org:5054/inventory/attribute_add?name=node1-1.sb10.orbit-lab.org-e0&attribute=INV_MAC_0&value=00:01:02:03:04:05' |
| | 249 | }}} |
| | 250 | |
| | 251 | Delete node devices |
| | 252 | |
| | 253 | {{{ |
| | 254 | # Find all devices belonging to this node |
| | 255 | wget -q -O device_list.xml 'http://new.orbit-lab.org:5054/inventory/resource_list?parent=node1-1.sb10.orbit-lab.org' |
| | 256 | device1,device2,device3,...,deviceN = parse_xml(device_list.xml) |
| | 257 | # Then delete all devices by using resource_delete |
| | 258 | wget -qO- 'http://new.orbit-lab.org:5054/inventory/resource_delete?set=device1,device2,...deviceN' |