aboutsummaryrefslogtreecommitdiff
path: root/text_collector_examples
diff options
context:
space:
mode:
Diffstat (limited to 'text_collector_examples')
-rwxr-xr-xtext_collector_examples/storcli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/text_collector_examples/storcli.py b/text_collector_examples/storcli.py
index 9935e88..7f229e5 100755
--- a/text_collector_examples/storcli.py
+++ b/text_collector_examples/storcli.py
@@ -148,12 +148,13 @@ def create_metrcis_of_physical_drive(physical_drive, detailed_info_array, contro
148 pd_baselabel = 'controller="{}",enclosure="{}",slot="{}"'.format(controller_index, enclosure, 148 pd_baselabel = 'controller="{}",enclosure="{}",slot="{}"'.format(controller_index, enclosure,
149 slot) 149 slot)
150 pd_info_label = pd_baselabel + \ 150 pd_info_label = pd_baselabel + \
151 ',disk_id="{}",interface="{}",media="{}",model="{}",DG="{}"'.format( 151 ',disk_id="{}",interface="{}",media="{}",model="{}",DG="{}",state="{}"'.format(
152 str(physical_drive.get('DID')).strip(), 152 str(physical_drive.get('DID')).strip(),
153 str(physical_drive.get('Intf')).strip(), 153 str(physical_drive.get('Intf')).strip(),
154 str(physical_drive.get('Med')).strip(), 154 str(physical_drive.get('Med')).strip(),
155 str(physical_drive.get('Model')).strip(), 155 str(physical_drive.get('Model')).strip(),
156 str(physical_drive.get('DG')).strip()) 156 str(physical_drive.get('DG')).strip(),
157 str(physical_drive.get('State')).strip())
157 158
158 drive_identifier = 'Drive /c' + str(controller_index) + '/e' + str(enclosure) + '/s' + str( 159 drive_identifier = 'Drive /c' + str(controller_index) + '/e' + str(enclosure) + '/s' + str(
159 slot) 160 slot)