Advertisement
Guest User

Untitled

a guest
Apr 29th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.97 KB | None | 0 0
  1. {
  2.     "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
  3.     "@odata.id":        "/redfish/v1/Managers/BMC/LogServices/Problems/Entries/1/",
  4.     "@odata.type": "#LogEntry.v1_0_0.LogEntry",
  5.     "Created": "2018-06-15T14:07:47Z",
  6.     "EntryType": "Event",
  7.     "Id": "1", // Log Position
  8.     "Message": "Description of the problem",
  9.     "MessageID": "SRC or LC CommonEventID",
  10.     "MessageArgs": ["Arg1", "Arg2"...."ArgN"],
  11.     "Name": "OpenBMC Event Log",
  12.     "Links": {
  13.         "OriginOfCondition": {
  14.             //This is the URI of the resource that caused the log entry.
  15.             //Think FRU List
  16.             "@odata.id": "Link to inventory item."
  17.         }
  18.         "Oem": {
  19.             "@odata.id": "LinkToPEL" //provides a link to the PEL location
  20.         }
  21.     },
  22.     "Severity": "Critical, Warning, or Info",
  23.     "Oem":
  24.     {
  25.         "IBM":
  26.         {
  27.             "@odata.context": "/redfish/v1/$metadata#IBMLogEntry.IBMLogEntry",
  28.             "@odata.type": "#HpeLogEntry.v2_1_0.IBMLogEntry",
  29.             "Serviceable": true or false,
  30.             "Resolved": true or false,
  31.             "UpdatedTime" : <timestamp>,
  32.             "EventType": < 1 of IBM EventTypes>,
  33.             "AffectedSubsystem": <Take from PEL or PolicyTable>,
  34.  
  35.             "CallHome": true or false,
  36.             "Notified": [
  37.                 //Maybe use this instead?
  38.                 //https://www.dmtf.org/sites/default/files/Redfish%20School%20-%20Events.pdf
  39.                 //page 5
  40.                 <UUID>: true or false
  41.             ],
  42.             "Version": 1.0
  43.         }
  44.     },
  45. }
  46.  
  47. {
  48.     "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
  49.     "@odata.id": "/redfish/v1/Managers/BMC/LogServices/Audit/Entries/1/",
  50.     "@odata.type": "#LogEntry.v1_0_0.LogEntry",
  51.     "Created": "2018-06-15T14:07:47Z",
  52.     "EntryType": "Event",
  53.     "Id": "1", //log position
  54.     "Message": "Description of the problem", //ex. β€œUser <ID> ADMIN logged in from 192.168.1.5”,
  55.     "MessageID": "SRC or LC Common Event ID",
  56.     "MessageArgs": ["Arg1", "Arg2"...."ArgN"],
  57.     "Name": "OpenBMC Audit Log",
  58.     "Severity": "Warning, or Info",
  59.     "Oem":
  60.     {
  61.         "IBM":
  62.         {
  63.             "EventNumber": "<logPosition>",
  64.             "Serviceable": false,
  65.             "Resolved": true, //Do we really need this?
  66.             "UpdatedTime": "", //<timestamp>,
  67.             "EventType": "", //< 1 of Administrative, Security>,
  68.             "AffectedSubsystem": "Systems Management - Core / Virtual Appliance",
  69.             "CallHome": false,
  70.             "Notified": [
  71.                 "<UUID>": true or false
  72.             ]
  73.         }
  74.     },
  75.     "OemRecordFormat": "IBM-OpenLogging",
  76. }
  77.  
  78. {
  79.     "@odata.context": "/redfish/v1/$metadata#LogEntry.LogEntry",
  80.     "@odata.id": "/redfish/v1/Managers/BMC/LogServices/Maintenance/Entries/1/",
  81.     "@odata.type": "#LogEntry.v1_0_0.LogEntry",
  82.     "Created": "2018-06-15T14:07:47Z",
  83.     "EntryType": "OEM",
  84.     "Id": "1", //log position
  85.     "Message": "Description of the problem", //ex CPU changed from SN: 12345 to SN: 12445
  86.     "MessageID": "SRC or LC Common Event ID",
  87.     "MessageArgs": ["Arg1", "Arg2"...."ArgN"],
  88.     "Name": "OpenBMC Log",
  89.     "Severity": "Info",
  90.     "Links": {
  91.         "OriginOfCondition": {
  92.             //"This is the URI of the resource that caused the log entry. Think FRU List"
  93.             "@odata.id": "Link to inventory item."
  94.         }
  95.         "Oem": {
  96.             "@odata.id": "LinkToPEL" //provides a link to the PEL location
  97.         }
  98.     },
  99.     "Oem":
  100.     {
  101.         "IBM":
  102.         {
  103.             "Serviceable": false,
  104.             "Resolved": true,
  105.             "UpdatedTime" : "<timestamp>",
  106.             "EventType": "< 1 of EventTypes>",
  107.             "AffectedSubsystem": "", //<Take from PEL or PolicyTable>
  108.             "CallHome": false,
  109.             "Notified": [
  110.                 "<UUID>": true or false
  111.             ]
  112.         }
  113.     },
  114.     "OemRecordFormat": "IBM-OpenLogging",
  115.     "Version": 1.0
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement