White Papers
Table Of Contents
Requirement
7 Importing Physical Groups and Device Association from a CSV file
,,,Rack1,100,24,4,G72SQ12
,,Aisle4,Rack4,100,24,4,CQ2RG52
• Configure the console specific parameters in configfile.properties.
Below is a sample for your reference:
[consoleaccessdetails]
ipaddress = 100.96.33.208
username = admin
password = linux
1.2 Usage
Download the following files to the local system from https://github.com/dell/OpenManage-
Enterprise/tree/master/Plugins/Power%20Manager/Import%20Physical%20Hierarchy/Python
• createphysicalgroups.py
• physicalgroups.csv
• configfile.properties
Each file is prefilled with the input column names. Add the device details incrementally as mentioned in
Prerequisites
section.
Configure the console specific parameters in configfile.properties file.
[consoleaccessdetails] ipaddress = <IP address of OpenManage Enterprise console where Power Manager
1.1 is installed and enabled> username = <user name with admin role> password = <password>
Run the createphysicalgroups.py file. Run this script on Windows or Linux operating systems. The
command line syntax is:
% python createphysicalgroups.py
After entering the following command, the script runs in silent mode and generates the following files:
• Physicalgroup_automation.log—this includes the script logs.
• Date-timestamp-based report file having name report_<DateTimestamp>.txt—this includes the
following results:
- List of physical groups created successfully
> The device to rack group association details
- List of physical groups and device association to rack group failed
1.3 Input File Structure
Individual row of the CSV file constitutes the physical group hierarchy and the device association to a rack
slot.