bmclib-tester

command module
v0.0.0-...-77b1342 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

bmclib tester

The bmclib-tester can test bmclib features on one more devices in parallel.

The test results are returned in the JSON format.

build

go build .

run

The run command accepts a --hardware flag which specifies the YAML file listing the hardware to to run tests on, the --tests flag specifies the list of bmclib features to test.

Checkout the sample test files here hardware.yaml

The example below tests the powerstate feature using the ipmi protocol.

cmd

./bmclib-tester run --timeout 30s \
                    --hardware ./samples/hardware.yaml \
                    --tests ./samples/tests-ipmi.yaml`

output

2023/05/03 07:29:45 waiting for tests to complete...
[
 {
  "Vendor": "Supermicro",
  "Model": "SYS-510T-MR",
  "Name": "c",
  "BMCIP": "192.168.1.1",
  "Results": [
   {
    "Feature": "powerstate",
    "Protocol": "ipmi",
    "Output": "Chassis Power is on\n",
    "Error": "",
    "Succeeded": true,
    "Runtime": "1ns"
   }
  ]
 },
 {
  "Vendor": "ASRockRack",
  "Model": "EPYC 7402P",
  "Name": "a",
  "BMCIP": "192.168.1.4",
  "Results": [
   {
    "Feature": "powerstate",
    "Protocol": "ipmi",
    "Output": "Chassis Power is on\n",
    "Error": "",
    "Succeeded": true,
    "Runtime": "1ns"
   }
  ]
 }
]

Documentation

Overview

Copyright © 2023 bmc-toolbox authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL