/gru

A utility for reading and modifying BMCs (e.g. iLO, RMMC) using RedFish (gofish).

Primary LanguageGoMIT LicenseMIT

Go Redfish Utility (gru)

Table of Contents

badge badge

An asynchronous RedFish utility for interrogating and managing blade management controllers.

Usage

gru help
Setting Credentials
  • Environment Variables

    export USERNAME=admin
    export PASSWORD=password
    gru show system myserver-bmc.local
  • Configuration File

    ---
    username: admin
    password: password
  • Configuration file with a general username/password and exceptions (for server10 use a different username and password)

    ---
    username: admin
    password: password
    hosts:
      server10:
          username: root
          password: password
Querying Servers
  • Pass any number of hosts, delimited by spaces.

    gru show system myserver-bmc.local myotherserver-bmc.local
  • Piping a list a space delimited list of hosts.

    grep -oP pattern /etc/hosts | tr -s '\n' ' ' | gru show system

Development

make gru
./gru