Redfish 的版本怎么看

9 篇文章 30 订阅

DMTF 将Redfish 协议(protocol)的定义与数据模型(data model)分开,同时允许独立修改schema中定义的每个Resource,所以Redfish的版本可以分为下面三种

  • Protocol 版本 (RedfishVersion: v1.xx)
  • Schema 版本 (2022.01) (Redfish 的 mini world)
  • 每个ResourceType 版本 (AccoutService v1.10, ManagerService v2.xx...)

那这些版本怎么看呢?从DMTF的官网可以看到两份文件,一份是定义Protocol( DSP0266 Redfish Specification),另外一份是定义Schema(DSP0268 Redfish Schema Supplement)

不认识 Data model 或是 Schema 的话可以先看  Redfish Data model (红鱼的资料模型)

和红鱼不熟的话可以参考DMTF Redfish 介绍

Protocol Version

Protocol Version 指 Redfish Service 遵循 DSP0266 的版本

DSP0266 Redfish Specification 主要内容是规范了Redfish需要符合哪些协议(例如OpenAPI, OData),Security 等,透过Redfish 指令(redfish/v1)可以得到Redfish Version

curl -k -u root:0penBmc -H "Content-Type: application/octet-stream" -X GET https://$bmcip/redfish/v1 --silent | jq -r ".RedfishVersion"

1.9.0

Schema Version 

Schema Version 指 Redfish Service 遵循 DSP0268 的版本

Redfish 将所有Resource 组成的mini world 称作Schema

ResourceType Version 

Resource Schema version 需要额外注记,因为Resource Schema Version 很少完全符合DSP0268 内注记的最新版本

每个Resource 都有自己的Type,这些ResourceType 因为会一直进版,所以他们也都有各自的板号,都是伴随DSP0268 released的,每次release也只会更新需要更新的ResourceType

ResourceType 版本可以从 @odata.type 获得

@odata.type 格式:#<ResourceType>.<Version>.<TermName>
其中 <Version> 是 v<MajorVersion>_<MinorVersion>_<ErrataVersion>

例如 "@odata.type": "#ComputerSystem.v1_8_0.ComputerSystem" ,可以得到ResourceType 是ComputerSystem,版本是v1.8.0,透过查表得到他是在2019.2的时候被released的

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值