顯示具有 Redfish 標籤的文章。 顯示所有文章
顯示具有 Redfish 標籤的文章。 顯示所有文章

2022年2月11日 星期五

Redfish 驗證工具: Redfish Service Validator (OData CSDL)

(*如果之後架構有變,這邊不會更新) 

這篇文章我去年就很想寫了,因為當時身邊有蠻多人對這個tool有些誤解,對用來驗證Redfish Schema來說它是個很好用的tool,快速又方便,現在社群也很活耀的持續開發,只是對第一次接觸OData的人來說,可能會有點不知道怎麼上手,但理解之後會發現其實它原理很簡單的,然後如果還不認識OData的話 可以先看 DMTF Redfish 介紹 ,裡面有將官網連結都附上

Redfish Services validator 在 GitHub - DMTF/Redfish-Service-Validator 的Readme中介紹是

Redfish Service Validator 是一個開源框架,用於檢查啟用了 Redfish interface 的任何通用設備與 DMTF 定義的 Redfish schema 和 specifications的一致性。該工具設計為與設備無關,並且完全基於旨在由設備支持的 Redfish 規範驅動。

2022年2月9日 星期三

[OpenBMC] 快速上手OpenBMC的Redfish

(*如果之後架構有變,這邊不會更新) 

來聊聊OpenBMC的Redfish怎麼快速上手, 如果對redfish沒有很熟的話,可以先看"認識Redfish"裡面講解的概念

下一代數據中心基礎設施管理標準 - Redfish

2022年2月8日 星期二

Redfish模型工具:Redfish Mockup Creator 和 Redfish Mockup Server

 (*如果之後架構有變,這邊不會更新) 

GitHub - DMTF/Redfish-Mockup-Creator: A Python3 program that creates a Redfish Mockup folder structure from a real live Redfish service.

GitHub - DMTF/Redfish-Mockup-Server: A simple Python 3.4 program that can be copied into a folder at the top of any Redfish mockup and can serve Redfish requests on the specified IP/port.

以上兩個tool都是由DMTF開發的,Redfish Mockup Creator 可以去對Redfish Services 作mockup,而Redfish Mockup Server 我對它的定位在模擬器(emulator),可以餵給它指定的Redfish mock,Server跑起來之後可以對它請求 GET method

然後Mockup Creator 真的很方便,現在突然想看哪個Resource的Response,直接就能找到

2022年2月2日 星期三

2022年1月24日 星期一

Redfish 版本怎麼看

DMTF 將Redfish 協議(protocol)的定義與數據模型(data model)分開,同時允許獨立修改schema中定義的每個Resource,所以Redfish的版本可以分為下面三種

  1. Protocol 版本 (RedfishVersion: v1.xx)
  2. Schema 版本 (2022.01) (Redfish 的 mini world)
  3. 每個ResourceType 版本 (AccoutService v1.10, ManagerService v2.xx...)

2021年7月18日 星期日

Redfishtool 的安裝和使用


redfishtool is a commandline tool that implements the client side of the Redfish RESTful API for Data Center Hardware Management.
redfishtool是一個命令行工具,用於實現用於數據中心硬件管理的 Redfish RESTful API 的客戶端。

Redfishtool,是DMTF用python3來開發的,我們可以透過redfishtool來下指令給redfish,但通常很少會用到這個tool,因為postman和curl其實就很好用了,但基於好奇,我在自己的模擬器裡面安裝來玩看看,安裝指令

2021年6月27日 星期日

[OpenBMC] 從程式碼談 Redfish 的Log 機制 (LogService & EventService)

和往常一樣,OpenBMC中官方對Redfish 的Log 機制已經有很詳細的介紹,所以這篇是結合一些額外的資料來看整個LogService 的架構和原理 (*如果之後OpenBMC架構有變,這邊不會再更新)

docs/redfish-logging-in-bmcweb.md at master · openbmc/docs · GitHub

2021年5月11日 星期二

Lua Tutorial - Coroutines

想看更多Lua教學可以看之前的文章: Learn Lua in 10 minutes 裡面有內容大綱和更多仔細地介紹

Lua的Coroutines可以說是一個能隨時停止或執行的function,官網原文是

A coroutine is a function that can suspend execution to be resumed later.

意思就是"coroutine 是個可以隨時暫停等待再次被執行的 function",我們這邊簡單舉個例子

2021年5月6日 星期四

10分鐘學會Lua Basics ( Multiple Assignment, Table, Module, Function )

這是一篇文章能讓你10 分鐘學會lua 基本用法的教學文

底下是這篇文章會介紹到的基本用法,灰色部分會在其他章節中另外介紹

Lua Basics

Comment

String

Number

Variable scope

Ternary Operator

Loop Activity(while, repeat)

Table

Multiple Assignment

Function

Module 

Coroutines(點我)

Metatables

Prototype Based OO Programming

LuaJIT - FFI Library


以下會用各種範例來和大家介紹lua有哪些功能和用法,知道這些用法之後,遇到不懂的語法也能知道怎麼搜尋關鍵字