[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] Re: How can we get MAC address during node configuratio
From: |
Anand Babu |
Subject: |
[Freeipmi-devel] Re: How can we get MAC address during node configuration \ production |
Date: |
Sat, 20 Dec 2003 07:49:08 -0800 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
It is easy to write a simple wrapper around bmc-lan-set tool to
automate the configuration process. You can then run bmc-lan-set-auto
across the cluster in one single command.
=======================================================================
#!/bin/bash
# bmc-set-lan-auto
if [ $# -ne 1 ]; then
echo 1>&2 Usage: $0 ETHERNET-DEV
exit 127
fi
IFCONFIG="/sbin/ifconfig $1"
MAC_ADDR=`$IFCONFIG | awk '$4=="HWaddr" {print $5}'`
IP_ADDR=`$IFCONFIG | awk '$1=="inet" {gsub("addr:", "", $2); print $2}'`
IP_MASK=`$IFCONFIG | awk '$1=="inet" {gsub("Mask:", "", $4); print $4}'`
bmc-lan-set $IP_ADDR $IP_MASK $MAC_ADDR
=======================================================================
Also note that, bmc-lan-set and similar tools are temporary releases
for system admins to automate building of thunder.
FreeIPMI actual release will include a single tool to configure all
parameters of BMC. You will have options like --auto to take care of
issues like these.
,----[ "Rice, Bryan" <address@hidden> ]
| >AB, We want to get the MAC address during the system build. We need
| >a process the factory workers can use to either log the MAC address
| >to a text file. It needs to be a simple process. I do not have any
| >good tools to do this.
`----
--
Anand Babu
CaliforniaDigital.com
Office# +1-510-687-7045
Cell# +1-510-396-0717
Home# +1-510-894-0586
Free as in Freedom <www.gnu.org>
- [Freeipmi-devel] Re: How can we get MAC address during node configuration \ production,
Anand Babu <=