Skip to content

Instantly share code, notes, and snippets.

@ryandotclair
Created November 28, 2015 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryandotclair/8c9616bac6094e0bf9bc to your computer and use it in GitHub Desktop.
Save ryandotclair/8c9616bac6094e0bf9bc to your computer and use it in GitHub Desktop.
Block 2 of code
# Grab Total MB Sent for a given SG
for item in result:
srdfa_total += item['SRDFA_MBSent']
print("Writing to file: {0}, {1}, {2}, {3}".format(
timestamp, symmetrix_id, storage_group_id, srdfa_total))
with open('SRDFA_Reporter.csv', 'a') as csvfile:
writer = csv.writer(csvfile, delimiter=',',
quotechar=',', quoting=csv.QUOTE_MINIMAL)
writer.writerow([timestamp, symmetrix_id,
storage_group_id, str(srdfa_total)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment