Table of Contents
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