Alanny Lopez | 1c8e574 | 2017-05-16 08:20:33 -0500 | [diff] [blame] | 1 | ***Settings*** |
Steven Sombar | 130a04f | 2017-07-16 10:02:37 -0500 | [diff] [blame] | 2 | Documentation This module generates an inventory file using lshw |
| 3 | ... commands. It will create a JSON file and a YAML file. It |
Alanny Lopez | 1c8e574 | 2017-05-16 08:20:33 -0500 | [diff] [blame] | 4 | ... will get the processor, memory and specified I/O devices. |
| 5 | ... Requires access to lshw, and json2yaml OS commands. This |
| 6 | ... robot file should be run as root or sudo for lshw. |
| 7 | |
| 8 | Library String |
| 9 | Library Collections |
| 10 | Library OperatingSystem |
George Keishing | daade9c | 2017-06-05 13:41:12 -0500 | [diff] [blame] | 11 | Resource ../syslib/utils_os.robot |
Alanny Lopez | 1c8e574 | 2017-05-16 08:20:33 -0500 | [diff] [blame] | 12 | |
| 13 | ***Variables*** |
Alanny Lopez | 1c8e574 | 2017-05-16 08:20:33 -0500 | [diff] [blame] | 14 | |
Steven Sombar | 6f9d41d | 2017-08-08 13:35:30 -0500 | [diff] [blame] | 15 | # Path of the JSON Inventory file. |
| 16 | ${json_inventory_file_path} ${EXECDIR}/os_inventory_final.json |
Alanny Lopez | 1c8e574 | 2017-05-16 08:20:33 -0500 | [diff] [blame] | 17 | |
| 18 | ***Test Case*** |
| 19 | |
Steven Sombar | 130a04f | 2017-07-16 10:02:37 -0500 | [diff] [blame] | 20 | Create An Inventory |
| 21 | [Documentation] Snapshot system inventory to a JSON file. |
| 22 | [Tags] Inventory Test |
| 23 | Create JSON Inventory File ${json_inventory_file_path} |