blob: aa4bd4b59a724814477d89aae8a52bebacf4190f [file] [log] [blame]
Alanny Lopez1c8e5742017-05-16 08:20:33 -05001***Settings***
Steven Sombar130a04f2017-07-16 10:02:37 -05002Documentation This module generates an inventory file using lshw
3... commands. It will create a JSON file and a YAML file. It
Alanny Lopez1c8e5742017-05-16 08:20:33 -05004... 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
8Library String
9Library Collections
10Library OperatingSystem
George Keishingdaade9c2017-06-05 13:41:12 -050011Resource ../syslib/utils_os.robot
Alanny Lopez1c8e5742017-05-16 08:20:33 -050012
13***Variables***
Alanny Lopez1c8e5742017-05-16 08:20:33 -050014
Steven Sombar6f9d41d2017-08-08 13:35:30 -050015# Path of the JSON Inventory file.
16${json_inventory_file_path} ${EXECDIR}/os_inventory_final.json
Alanny Lopez1c8e5742017-05-16 08:20:33 -050017
18***Test Case***
19
Steven Sombar130a04f2017-07-16 10:02:37 -050020Create An Inventory
21 [Documentation] Snapshot system inventory to a JSON file.
22 [Tags] Inventory Test
23 Create JSON Inventory File ${json_inventory_file_path}