Dell iDRAC Telemetry Reference Guide

PDF

Replace Custom Report Definition

If the Metric Report Definition exists, it is replaced with the new definition.
Command: PUT
URI: /redfish/v1/TelemetryService/MetricReportDefinitions/<custom_report>
Header: content-type application/json
For e.g. <custom_report> = TxRxBytesNicSlot1
Body: <custom MRD definition json>
 
For example:
curl -s -k -u <user>:<password> -X PUT https://<IDRAC_IP>/redfish/v1/TelemetryService/MetricReportDefinitions/TxRxBytesNicSlot1 -H 'Content-Type: application/json' -d '{
  "Id": "TxRxBytesNicSlot1",
  "Name": "Tx, Rx, Errors, and Dropped Packets from NIC Slot 1",
  "Description": "Metric report updated to include Tx, Rx, Packet Errors, and Dropped Packets for NIC Slot 1 at 5-minute intervals",
  "MetricReportDefinitionEnabled": true,
  "MetricReportDefinitionType": "Periodic",
  "MetricReportHeartbeatInterval": "PT0H0M0S",
  "SuppressRepeatedMetricValue": false,
  "ReportTimespan": "PT0H0M0S",
  "ReportUpdates": "Overwrite",
  "ReportActions": ["redfishEvent"],
  "Schedule": {
    "RecurrenceInterval": "PT0H5M0S"
  },
  "Metrics": [
    {
      "MetricId": "TxBytes",
      "MetricProperties": [],
      "MetricProperties@odata.count": 0,
      "CollectionFunction": null,
      "CollectionDuration": null,
      "CollectionTimeScope": "Point",
      "Oem": {
        "Dell": {
          "@odata.type": "#DellMetric.v1_1_0.DellMetric",
          "CustomLabel": null,
          "FQDD": "NIC.Slot.1-1-1",
          "Source": null
        }
      }
    },
    {
      "MetricId": "RxBytes",
      "MetricProperties": [],
      "MetricProperties@odata.count": 0,
      "CollectionFunction": null,
      "CollectionDuration": null,
      "CollectionTimeScope": "Point",
      "Oem": {
        "Dell": {
          "@odata.type": "#DellMetric.v1_1_0.DellMetric",
          "CustomLabel": null,
          "FQDD": "NIC.Slot.1-1-1",
          "Source": null
        }
      }
    },
    {
      "MetricId": "PacketErrors",
      "MetricProperties": [],
      "MetricProperties@odata.count": 0,
      "CollectionFunction": null,
      "CollectionDuration": null,
      "CollectionTimeScope": "Point",
      "Oem": {
        "Dell": {
          "@odata.type": "#DellMetric.v1_1_0.DellMetric",
          "CustomLabel": null,
          "FQDD": "NIC.Slot.1-1-1",
          "Source": null
        }
      }
    },
    {
      "MetricId": "DroppedPackets",
      "MetricProperties": [],
      "MetricProperties@odata.count": 0,
      "CollectionFunction": null,
      "CollectionDuration": null,
      "CollectionTimeScope": "Point",
      "Oem": {
        "Dell": {
          "@odata.type": "#DellMetric.v1_1_0.DellMetric",
          "CustomLabel": null,
          "FQDD": "NIC.Slot.1-1-1",
          "Source": null
        }
      }
    }
  ],
  "Metrics@odata.count": 4,
  "Links": {
    "Triggers": []
  }
}'

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\