Changes between Version 6 and Version 7 of Software/eAM/aInventory


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

Legend:

Unmodified
Added
Removed
Modified
  • Software/eAM/aInventory

    v6 v7  
    236236
    237237{{{
    238 # Delete all attributes collected by the inventory process running on the node
     238# First, delete all devices that belong to the node
     239  wget -qO- 'http://new.orbit-lab.org:5054/inventory/resource_delete?set=node1-1.sb10.orbit-lab.org-*'
     240# Then delete all attributes collected by the inventory process running on the node
    239241  wget -qO- 'http://new.orbit-lab.org:5054/inventory/attribute_delete?name=node1-1.sb10.orbit-lab.org&attribute=INV_*'
    240 # First, find all devices that belong to node
    241   wget -q -O device_list.xml 'http://new.orbit-lab.org:5054/inventory/resource_list?parent=node1-1.sb10.orbit-lab.org'
    242   device1,device2,device3,...,deviceN = parse_xml(device_list.xml)
    243 # Then delete all devices by using resource_delete
    244   wget -qO- 'http://new.orbit-lab.org:5054/inventory/resource_delete?set=device1,device2,...deviceN'
    245 # Add first device named "node1-1.sb10-e0" (and add it to the node)
    246   wget -qO- 'http://new.orbit-lab.org:5054/inventory/resource_add?name=node1-1.sb10-e0&type=device'
    247   wget -qO- 'http://new.orbit-lab.org:5054/inventory/relation_add?parent=node1-1.sb10.orbit-lab.org&child=node1-1.sb10-e0'
     242# Add first device named "node1-1.sb10.orbit-lab.org-e0" (and add it to the node)
     243  wget -qO- 'http://new.orbit-lab.org:5054/inventory/resource_add?name=node1-1.sb10.orbit-lab.org--e0&type=device'
     244  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'
    248245# Add attributes for the new device
    249   wget -qO- 'http://new.orbit-lab.org:5054/inventory/attribute_add?name=node1-1.sb10-e0&attribute=INV_MAC_0&value=00:01:02:03:04:05'
     246  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'
    250247}}}
    251248