Changes between Version 8 and Version 9 of Software/eAM/aInventory


Ignore:
Timestamp:
Dec 21, 2012, 1:48:51 PM (12 years ago)
Author:
seskar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Software/eAM/aInventory

    v8 v9  
    246246  wget -qO- 'http://new.orbit-lab.org:5054/inventory/relation_add?parent=node1-1.sb10.orbit-lab.org&child=node1-1.sb10.orbit-lab.org-e0'
    247247# Add attributes for the new device
    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
     251Delete node devices
     252
     253{{{
     254# Find all devices belonging to this node
     255wget -q -O device_list.xml 'http://new.orbit-lab.org:5054/inventory/resource_list?parent=node1-1.sb10.orbit-lab.org'
     256device1,device2,device3,...,deviceN = parse_xml(device_list.xml)
     257# Then delete all devices by using resource_delete
     258wget -qO- 'http://new.orbit-lab.org:5054/inventory/resource_delete?set=device1,device2,...deviceN'
    249259}}}
    250260