Difference between revisions of "MFU: Mass Firmware Update"

From Define Wiki
Jump to navigation Jump to search
Line 42: Line 42:
 
export SCMNODE_PATH=/opt/scmnode/
 
export SCMNODE_PATH=/opt/scmnode/
  
# then run with scmsh $* <cmd>, for eg
+
# then run with scmsh <cmd>, for eg
./scmsh  $* list node
+
./scmsh  list node
 
[local] (0ms)
 
[local] (0ms)
 
blade1 (MAC: 00:25:90:95:30:90, IP: 172.28.1.22, Port: 4422)
 
blade1 (MAC: 00:25:90:95:30:90, IP: 172.28.1.22, Port: 4422)

Revision as of 16:38, 7 January 2013

MFU is designed to all a user to update, edit and save the BIOS and IPMI firmware accross multiple nodes through a single command.

Installation

Scmsh must be installed on the host from which you will run the commands.

Each node to be controlled must have the scmsh agent daemon installed on the system.


Adding nodes to the scmsh

For each node to be monitored by scmsh a line must be added to the nodes.cfg file on the master node.

The line must contain four bits on information:

  1. Node Name
  2. Node Mac address
  3. Node Ipaddress / Hostname
  4. Port it will use to communicate (default 4422)
compute020=00:25:90:6C:DC:DE,compute020:4422


Running in Interactive Mode

To start MFU in interactive mode, navigate to the install directory and run the command:

./run_scmsh

Running in Scripted Mode

MFU can also be scripted to automate fw updates across a cluster

# Assumes the following are set
export LANG=C
export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH:/opt/scmsh/lib
export SCMSH_PATH=/opt/scmsh/
export SCMNODE_PATH=/opt/scmnode/

# then run with scmsh <cmd>, for eg
./scmsh  list node
[local] (0ms)
blade1 (MAC: 00:25:90:95:30:90, IP: 172.28.1.22, Port: 4422)
compute020 (MAC: 00:25:90:6C:DC:DE, IP: compute020, Port: 4422)
icr (MAC: 00:25:90:6A:E9:B9, IP: 10.9.2.1, Port: 4422)
Total: 3

MFU Commands

You will see a command prompt appear. There are a small number of commands used in MFU

  • cd

Navigate around the different folders in MFU

  • list

lists the commands available in the current folder - similar to ls in linux.

  • help

List every command and option possible to be run - not really that clear but may be helpful in some cases

  • MFU commands

To run a command from MFU, naviagte to the correct folder and simply type the command. It will come up with help on waht options are needed for each command


MFU flags

  • -n <nodename>

The list of nodes you want to run the command on

  • -f (only needed for some commands)

The file name either to read or write

  • -m (only needed for some commands)

The mode in which the command runs (eg raw or script).