Home | History | Annotate | Download | only in contrib

Lines Matching refs:csv

15   Step 1: create csv:
16 Put attributes in a csv file, e.g. mapping.csv.
17 Each line in mapping.csv consists of
25 ./manage_powerunit_info.py upload --csv mapping_file.csv
31 * Backup existing attributes for all hosts to a csv file:
32 ./manage_powerunit_info.py backup --csv backup.csv
35 import csv
74 """Read power unit information from csv and add to host attributes.
77 @param csv_file: A csv file, each line consists of device_hostname,
82 reader = csv.reader(f, delimiter=',')
95 """Dump power unit info of all hosts to a csv file.
134 'upload: read rpm attributes from csv file and set the attributes. '
136 'backup: dump existing rpm attributes to a csv file (for backup).')
140 help='A path to a csv file. When upload, each line '
155 logging.error('Please specifiy a file with -f/--csv')