[Freeipmi-devel] bmc-autoconfig: drop for 0.5.0 release?
I'm thinking of dropping this from FreeIPMI: A) It doesn't seem to be maintained by the original authors. B) It apparenly only configures 3 fields of the BMC. No users, lan enabling, etc. I don't really see the use anymore. Any comments? Anyone out there using this? Al -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
On Wed, Jul 26, 2006 at 04:20:21PM -0700, Al Chu wrote: , | Hey Anand, | | I'm having trouble running bmc-autoconfig with many of the options | listed. Did something break/change between the bmc-config in Scheme to | the bmc-config in C? | | | # > ./bmc-autoconfig --host=foo | bmc-autoconfig: invalid option -- --host=foo | Try `bmc-autoconfig --help' or `bmc-autoconfig --usage' for more | information. ` Hi Al, Can you please file a bug report. -- Anand Babu On Wed, 2006-07-26 at 15:29 -0700, Al Chu wrote: > Cool, thanks. > > Al > On Wed, 2006-07-26 at 15:26 -0700, Anand Avati wrote: > > > Do you think you'd have time to do this Anand? Bmc-autoconfig still > > > needs a manpage as well. > > > > done, > > avati > > -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel ---end quoted text--- -- Anand Babu GPG Key ID: 0x62E15A31 Blog [http://ab.freeshell.org] The GNU Operating System [http://www.gnu.org] ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
Hey Anand, I'm having trouble running bmc-autoconfig with many of the options listed. Did something break/change between the bmc-config in Scheme to the bmc-config in C? # > ./bmc-autoconfig --host=foo bmc-autoconfig: invalid option -- --host=foo Try `bmc-autoconfig --help' or `bmc-autoconfig --usage' for more information. Thanks, Al On Wed, 2006-07-26 at 15:29 -0700, Al Chu wrote: > Cool, thanks. > > Al > On Wed, 2006-07-26 at 15:26 -0700, Anand Avati wrote: > > > Do you think you'd have time to do this Anand? Bmc-autoconfig still > > > needs a manpage as well. > > > > done, > > avati > > -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
Cool, thanks. Al On Wed, 2006-07-26 at 15:26 -0700, Anand Avati wrote: > > Do you think you'd have time to do this Anand? Bmc-autoconfig still > > needs a manpage as well. > > done, > avati > -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
> Do you think you'd have time to do this Anand? Bmc-autoconfig still > needs a manpage as well. done, avati ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
Do you think you'd have time to do this Anand? Bmc-autoconfig still needs a manpage as well. Al On Thu, 2006-07-27 at 01:21 +0530, Anand V. Avati wrote: > > Well, with fish going away in 0.3.0, where should bmc-autoconfig be put > > then? It clearly doesn't belong under fish/scripts/bmc-autoconfig. > > yes. > > > Perhaps but it under bmc-conifg/? And it'll be installed as a helper > > script? > > > yes. > > avati > -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
Well, with fish going away in 0.3.0, where should bmc-autoconfig be put then? It clearly doesn't belong under fish/scripts/bmc-autoconfig. Perhaps but it under bmc-conifg/? And it'll be installed as a helper script? Al On Thu, 2006-07-27 at 00:02 +0530, Anand V. Avati wrote: > Al, > bmc-autoconfig uses bmc-config tool and whether C or scheme, if the > command line optins still mean the same, it should work. > > avati > > On Wed, Jul 26, 2006 at 10:56:08AM -0700, Al Chu wrote: > > is this going to be ported to work with the C version? > > > > Al > > > > -- > > Albert Chu > > [EMAIL PROTECTED] > > 925-422-5311 > > Computer Scientist > > High Performance Systems Division > > Lawrence Livermore National Laboratory > > > > > > > > ___ > > Freeipmi-devel mailing list > > Freeipmi-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/freeipmi-devel > -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
[Freeipmi-devel] bmc-autoconfig
is this going to be ported to work with the C version? Al -- Albert Chu [EMAIL PROTECTED] 925-422-5311 Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
> this is a 'cvs diff' on top level for updated freetalk.texi and > --help/--usage/--version and a bugfix in IP validation in bmc-autconfig Why did you looking at "echo"s path for BMC_CONFIG? < BMC_CONFIG=$(which bmc-config 2>/dev/null) || { > BMC_CONFIG=$(which echo 2>/dev/null) || { If you want to know the install prefix this his how you should do. Add your bmc-autoconfig as bmc-autoconfig.in. Let autoconf rewrite @prefix@ variable with the path info. Also you need to add fish/scripts/bmc-config/bmc-autoconfig line to AC_CONFIG_FILES in configure.ac. Next time when you submit a patch, please follow these guide lines: # ls freeipmi freeipmi-hacked # diff -pruN freeipmi freeipmi-hacked > NAME_OF_FIX-FREEIPMI_VER.diff Mail the patch as inline mail message to freeipmi-devel (@) gnu.org with subject: [PATCH: freeipmi] actual subject If not submit through Savannah web interface :p PS: Your from-address is broken - <[EMAIL PROTECTED]> ?? Thanks. -- Anand Babu GPG Key ID: 0x62E15A31 Personal Blog [http://ab.freeshell.org] The GNU Operating System [http://www.gnu.org] ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
Re: [Freeipmi-devel] bmc-autoconfig
this is a 'cvs diff' on top level for updated freetalk.texi and --help/--usage/--version and a bugfix in IP validation in bmc-autconfig regards, avati On Wed, Oct 12, 2005 at 01:10:35PM +0530, Anand Avati wrote: > forgot to attach last time :-) > > > On Tue, Oct 11, 2005 at 07:50:11PM +, Anand Avati wrote: > > hi, > > attached is a bmc-autconfig script which asks for ip/netmask/gateway in a > > wizard style and calls bmc-config to --commit them. > > > > regards, > > avati > > > ___ > > Freeipmi-devel mailing list > > Freeipmi-devel@gnu.org > > http://lists.gnu.org/mailman/listinfo/freeipmi-devel > > ---end quoted text--- > #!/bin/sh > > _init () > { > # autotool'ize these two? > TEMPLATE_DIR="/var/lib/freeipmi"; > TEMPLATE="${TEMPLATE_DIR}/bmc-config-template"; > > PROG=$(which dialog 2>/dev/null || which whiptail 2>/dev/null); > > BMC_CONFIG=$(which bmc-config 2>/dev/null) || { > echo "bmc-config not found, fatal!"; > return 1; > } > > exec 3>&1 > > ip="0.0.0.0"; > nm="0.0.0.0"; > gw="0.0.0.0"; > > return 0; > } > > show_message () > { > [ -z "${PROG}" ] && { > echo "${1}"; > read; > return; > } > ${PROG} --title "BMC Auto Config" --msgbox "${1}" 0 0 >&3; > > return; > } > > get_input () > { > local input; > [ -z "${PROG}" ] && { > echo -n "${1}"; > read input; > echo "${input}"; > return; > } > ${PROG} --title "BMC Auto Config" --inputbox "$1" 0 0 "$2" 2>&1 >&3; > } > > validate_ip_address () > { > local quad; > local oldIFS; > > quad=${1} > > echo "${oct}" | grep -Eq "^[0-9\.]+$" || { > echo "ERROR: Input cannot have non-numericals"; > return 1; > } > > oldIFS=${IFS}; > IFS=. > set -- ${quad}; > IFS=${oldIFS}; > > if [ "$#" -ne "4" ]; then > echo "ERROR: IP Address needs 4 octets"; > return 1; > fi > > for oct in $*; > do > if [ "${oct}" -lt "0" -o "${oct}" -gt "255" ]; then > echo "ERROR: Input octets should be between 0 - 255"; > return 1 > fi > done > > return 0 > } > > > get_ip_address () > { > get_input "Enter BMC IP Address: " "${ip}"; > } > > > get_netmask () > { > get_input "Enter BMC Netmask: " "${nm}"; > } > > > get_gateway_ip_address () > { > get_input "Enter BMC Gateway: " "${gw}"; > } > > accept_input () > { > iput_func=$1; > valid_func=$2; > local err; > local input; > > input=$(${iput_func}) || return 1; > while ! err=$(${valid_func} ${input}) > do > show_message "${err}"; > input=$(${iput_func}) || return 1; > done > > echo ${input}; > > return 0; > } > > main () > { > ip=$(accept_input get_ip_address validate_ip_address) && > nm=$(accept_input get_netmask validate_ip_address) && > gw=$(accept_input get_gateway_ip_address validate_ip_address) && { > ${BMC_CONFIG} --commit -f "${TEMPLATE}"; > ${BMC_CONFIG} --commit -k "Lan_Conf:IP_Address=${ip}"; > ${BMC_CONFIG} --commit -k "Lan_Conf:Subnet_Mask=${nm}"; > ${BMC_CONFIG} --commit -k "Lan_Conf:Default_Gateway_IP_Address=${gw}"; > } > } > > _init "$@" && main "$@"; ---end quoted text--- -- Anand V. Avati http://hardcodecafe.com/~avati finger [EMAIL PROTECTED]Index: doc/freeipmi.texi === RCS file: /cvsroot/freeipmi/freeipmi/doc/freeipmi.texi,v retrieving revision 1.7 diff -r1.7 freeipmi.texi 55a56 > * bmc-autoconfig:: Wizard-like frontend for bmc-config. 905c906 < @node bmc-info, ipmi-sensors, bmc-config, Top --- > @node bmc-info, bmc-autoconfig, bmc-config, Top 947c948,967 < @node ipmi-sensors, ipmi-sel, bmc-info, Top --- > @node bmc-autoconfig, ipmi-sensors, bmc-info, Top > @chapter bmc-autoconfig > @pindex bmc-autoconfig > @command{bmc-autoconfig} utility is a wizard-like frontend to the > @command{bmc-config} command, which has a curses/text based interfaced > questionaire asking for IP/Netmask/Gateway to be committed. > > @section Command-line options > @itemize @bullet > @item -u, --usage @* > Show short usage message. > > @item -h, --help @* > Show help. > > @item -V, --version @* > Show version information. > @end itemize > > @node ipmi-sensors, ipmi-sel, bmc-autoconfig, Top Index: fish/scripts/bmc-autoconfig/bmc-autoconfig === RCS file: /cvsroot/freeipmi/freeipmi/fish/scripts/bmc-autoconfig/bmc-autoconfig,v retrieving revision 1.1 diff -r1.1 bmc-autoconfig 26a27,30 > VERSION="0.1"; > ME=$(basename ${0}); > SUPPORT_EMAIL="[EMAIL PROTECTED]"; > DESCRIPTION="${ME} is an autoconfiguration tool and wrapper around > bmc-config" 30c34 < BMC_CONFIG=$(which bmc-config 2>/dev/null) || { --- > BMC_CONFIG=$(whic
Re: [Freeipmi-devel] bmc-autoconfig
forgot to attach last time :-) On Tue, Oct 11, 2005 at 07:50:11PM +, Anand Avati wrote: > hi, > attached is a bmc-autconfig script which asks for ip/netmask/gateway in a > wizard style and calls bmc-config to --commit them. > > regards, > avati > ___ > Freeipmi-devel mailing list > Freeipmi-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/freeipmi-devel ---end quoted text--- #!/bin/sh _init () { # autotool'ize these two? TEMPLATE_DIR="/var/lib/freeipmi"; TEMPLATE="${TEMPLATE_DIR}/bmc-config-template"; PROG=$(which dialog 2>/dev/null || which whiptail 2>/dev/null); BMC_CONFIG=$(which bmc-config 2>/dev/null) || { echo "bmc-config not found, fatal!"; return 1; } exec 3>&1 ip="0.0.0.0"; nm="0.0.0.0"; gw="0.0.0.0"; return 0; } show_message () { [ -z "${PROG}" ] && { echo "${1}"; read; return; } ${PROG} --title "BMC Auto Config" --msgbox "${1}" 0 0 >&3; return; } get_input () { local input; [ -z "${PROG}" ] && { echo -n "${1}"; read input; echo "${input}"; return; } ${PROG} --title "BMC Auto Config" --inputbox "$1" 0 0 "$2" 2>&1 >&3; } validate_ip_address () { local quad; local oldIFS; quad=${1} echo "${oct}" | grep -Eq "^[0-9\.]+$" || { echo "ERROR: Input cannot have non-numericals"; return 1; } oldIFS=${IFS}; IFS=. set -- ${quad}; IFS=${oldIFS}; if [ "$#" -ne "4" ]; then echo "ERROR: IP Address needs 4 octets"; return 1; fi for oct in $*; do if [ "${oct}" -lt "0" -o "${oct}" -gt "255" ]; then echo "ERROR: Input octets should be between 0 - 255"; return 1 fi done return 0 } get_ip_address () { get_input "Enter BMC IP Address: " "${ip}"; } get_netmask () { get_input "Enter BMC Netmask: " "${nm}"; } get_gateway_ip_address () { get_input "Enter BMC Gateway: " "${gw}"; } accept_input () { iput_func=$1; valid_func=$2; local err; local input; input=$(${iput_func}) || return 1; while ! err=$(${valid_func} ${input}) do show_message "${err}"; input=$(${iput_func}) || return 1; done echo ${input}; return 0; } main () { ip=$(accept_input get_ip_address validate_ip_address) && nm=$(accept_input get_netmask validate_ip_address) && gw=$(accept_input get_gateway_ip_address validate_ip_address) && { ${BMC_CONFIG} --commit -f "${TEMPLATE}"; ${BMC_CONFIG} --commit -k "Lan_Conf:IP_Address=${ip}"; ${BMC_CONFIG} --commit -k "Lan_Conf:Subnet_Mask=${nm}"; ${BMC_CONFIG} --commit -k "Lan_Conf:Default_Gateway_IP_Address=${gw}"; } } _init "$@" && main "$@"; ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel
[Freeipmi-devel] bmc-autoconfig
hi, attached is a bmc-autconfig script which asks for ip/netmask/gateway in a wizard style and calls bmc-config to --commit them. regards, avati ___ Freeipmi-devel mailing list Freeipmi-devel@gnu.org http://lists.gnu.org/mailman/listinfo/freeipmi-devel