ctera / ctools

A toolbox of tasks to check and manage CTERA Edge Filers via CLI or GUI.
Other
3 stars 0 forks source link

Improve CSV output readability. #10

Closed toddatctera closed 11 months ago

toddatctera commented 3 years ago

Current version of status.py outputs a few difficult to read columns in Excel.

Let's improve the following:

  1. CloudSync Status should just show 'Synced'. No [ ]'s and 'id:'
  2. Same for MetaLogsSetting, just show the hex code, or convert the hex to text in a dictionary.
  3. CurrentVolumeStorage should just show total, used, and free space.
  4. Alerts. Needs to be broken up or simplified.

ugly-ctools-status-output-csv

toddatctera commented 3 years ago

@mj-ctera

What info about Alerts do we need exactly?

{
     "_classname": "AlertSettings",
     "SMTPServer": null,
     "auth": null,
     "emails": [],
     "from": "alert-no-reply@ctera.com",
     "logCodes": [],
     "minSeverity": "critical",
     "port": 25,
     "specificAlerts": {
          "_classname": "SpecificAlerts",
          "BackupFailAlert": true,
          "BackupFailDays": 3,
          "CloudConnectFailAlert": true,
          "CloudConnectFailHours": 6,
          "CloudSyncFailAlert": true,
          "CloudSyncFailHours": 5,
          "NotifyBackupSuccess": false,
          "NotifyDeviceStarted": false,
          "NotifyFirmwareUpgrade": true,
          "NotifyRedundantPSUFailure": false,
          "NotifySyncSuccess": false,
          "SyncFailAlert": true,
          "SyncFailDays": 3,
          "VolumeFullAlert": true,
          "VolumeFullPercent": 95,
          "VolumeQuotaFullAlert": true,
          "VolumeQuotaFullPercent": 95
     },
     "useAuth": false,
     "useCustomServer": false,
     "useTLS": true
}
mj-ctera commented 3 years ago

@toddatctera Todd, we can remove the className but everything else that user can type in the UI should be there