redfishcli
is a command-line tool designed to scan the health of baremetal servers manufactured by Lenovo or Dell. It supports servers using Lenovo XClarity Controller or Dell iDRAC 7 or greater. This tool provides a convenient way to monitor the health and status of your servers using Redfish APIs.
- Scan and report the health of baremetal servers.
- Support for Lenovo XClarity Controller.
- Support for Dell iDRAC 7 or greater.
- Retrieve RAID controller health status.
- Retrieve RAID drive details.
- Integration with Redfish APIs.
To install redfishcli
from source, ensure you have Go installed on your system, then run:
go get github.com/angelhvargas/redfishcli
cd $GOPATH/src/github.com/angelhvargas/redfishcli
go install
Precompiled binaries for various platforms are available on the releases page. Download the binary for your platform, extract it, and place it in a directory included in your system's PATH.
Scan the RAID health of a server:
redfishcli storage raid health --drives -t [controller-type] -u [username] -p [password] -n [hostname]
-
-t: Controller type (idrac or xclarity).
-
-u: Username for the BMC.
-
-p: Password for the BMC.
-
-n: Hostname or IP address of the server.
Scan the RAID health of a Dell server with iDRAC:
redfishcli storage raid health --drives -t idrac -u root -p "your_password" -n 192.168.1.100 | jq
Scan the RAID health of a Lenovo server with XClarity:
redfishcli storage raid health --drives -t xclarity -u admin -p "your_password" -n 192.168.1.101 | jq
You can create a configuration file to scan multiple servers without providing login parameters each time. By default, redfishcli looks for a configuration file at ~/.redfishcli/config.yaml.
servers:
- type: "idrac"
hostname: "192.168.1.100"
username: "root"
password: "your_password"
- type: "xclarity"
hostname: "192.168.1.101"
username: "admin"
password: "your_password"
# Add more servers as needed
To use the configuration file, simply run:
redfishcli storage raid health --drives
redfishcli
will automatically load the servers listed in the configuration file and scan their health.
We welcome contributions to redfishcli. To contribute, please follow these steps:
-
Create a new branch (
git checkout -b feature/your-feature
). -
Commit your changes (
git commit -am 'Add new feature'
). -
Push to the branch (
git push origin feature/your-feature
). -
Create a new Pull Request.
-
Please ensure your code adheres to the project's coding standards and includes appropriate tests.
redfishcli is licensed under the . See the LICENSE file for more information.