sudo apt update -y
sudo apt install python3 python3-pip git unzip -y
git clone git@github.com:DMTF/Redfish-Service-Validator.git redval
cd redval
pip3 install -r requirements.txt
pip3 --version
mkdir logs SchemaFiles
cd SchemaFiles
wget https://www.dmtf.org/sites/default/files/standards/documents/DSP8010_2021.3.zip --no-check-certificate
mkdir DSP8010_2021.3
cd DSP8010_2021.3
unzip DSP8010_2021.3.zip
cd ..
mkdir metadata
cp -r DSP8010_2021.3/csdl/. metadata
cd ..
cat <<"EOF" >config/myredval.ini
[Tool]
Version = 2
Copyright = Redfish DMTF (c) 2021
verbose =
[Host]
ip = https://127.0.0.1:2443
username = root
password = 0penBmc
description = MySystem
forceauth = True
authtype = Basic
token =
[Validator]
payload = tree /redfish/v1/Managers/bmc/HostInterfaces
logdir = ./logs
oemcheck = True
debugging = False
schema_directory = ./SchemaFiles/metadata
EOF
We can modify "payload" attribute under Validator section to test different redfish URLs:
- "payload = single /redfish/v1/Managers/bmc/HostInterfaces"
- "payload = "
- "payload = tree /redfish/v1/Systems"
python3 RedfishServiceValidator.py -c config/myredval.ini
$ python3 Redfish-Service-Validator/RedfishServiceValidator.py --ip 127.0.0.1:2443 --forceauth -u root -p 0penBmc --logdir ./logs/ --payload tree /redfish/v1/Managers/bmc/HostInterfaces
I am running openbmc (romulus machine) on qemu and redfish service can be accessed at address localhost:2443 from host system. More info at https://github.com/openbmc/docs/blob/master/development/dev-environment.md