Pages

Wednesday, September 8, 2021

[curl] AMI Redfish - Service Root

Service Root

[curl]

curl -b cjar -k https://${bmc_ip}/redfish/v1/ | json_pp -json_opt pretty,canonical

For example:
[curl in Linux]
$ curl -b cjar -k https://192.168.1.17/redfish/v1/ | json_pp -json_opt pretty,canonical
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1553  100  1553    0     0   2902      0 --:--:-- --:--:-- --:--:--  2902
{
   "@odata.context" : "/redfish/v1/$metadata#ServiceRoot.ServiceRoot",
   "@odata.etag" : "\"1619830617\"",
   "@odata.id" : "/redfish/v1/",
   "@odata.type" : "#ServiceRoot.v1_5_2.ServiceRoot",
   "AccountService" : {
      "@odata.id" : "/redfish/v1/AccountService"
   },
   "CertificateService" : {
      "@odata.id" : "/redfish/v1/CertificateService"
   },
   "Chassis" : {
      "@odata.id" : "/redfish/v1/Chassis"
   },
   "CompositionService" : {
      "@odata.id" : "/redfish/v1/CompositionService"
   },
   "Description" : "The service root for all Redfish requests on this host",
   "EventService" : {
      "@odata.id" : "/redfish/v1/EventService"
   },
   "Id" : "RootService",
   "JsonSchemas" : {
      "@odata.id" : "/redfish/v1/JsonSchemas"
   },
   "Links" : {
      "Sessions" : {
         "@odata.id" : "/redfish/v1/SessionService/Sessions"
      }
   },
   "Managers" : {
      "@odata.id" : "/redfish/v1/Managers"
   },
   "Name" : "Root Service",
   "Oem" : {
      "Ami" : {
         "@odata.type" : "#AMIServiceRoot.v1_0_0.AMIServiceRoot",
         "RtpVersion" : "1.8.a",
         "configurations" : {
            "@odata.id" : "/redfish/v1/configurations"
         }
      }
   },
   "Product" : "AMI Redfish Server",
   "ProtocolFeaturesSupported" : {
      "ExcerptQuery" : true,
      "ExpandQuery" : {
         "ExpandAll" : true,
         "Levels" : true,
         "Links" : true,
         "MaxLevels" : 5,
         "NoLinks" : true
      },
      "FilterQuery" : true,
      "OnlyMemberQuery" : true,
      "SelectQuery" : true
   },
   "RedfishVersion" : "1.8.0",
   "Registries" : {
      "@odata.id" : "/redfish/v1/Registries"
   },
   "SessionService" : {
      "@odata.id" : "/redfish/v1/SessionService"
   },
   "Systems" : {
      "@odata.id" : "/redfish/v1/Systems"
   },
   "Tasks" : {
      "@odata.id" : "/redfish/v1/TaskService"
   },
   "TelemetryService" : {
      "@odata.id" : "/redfish/v1/TelemetryService"
   },
   "UUID" : "6f598bba-bfde-11d3-02b2-c1100161e800",
   "UpdateService" : {
      "@odata.id" : "/redfish/v1/UpdateService"
   },
   "Vendor" : "AMI"
}


Reference
[1] "The Art Of Scripting HTTP Requests Using Curl" https://curl.se/docs/httpscripting.html
[2] "Redfish Schema Supplement", DMTF DSP0268 https://www.dmtf.org/dsp/DSP0268
[3] "Redfish Specification", DMTF DSP0266 https://www.dmtf.org/dsp/DSP0266


Last Updated: 08-09-2021

No comments:

Post a Comment