diff --git a/xCAT-nbroot/overlay/bin/bmcsetup b/xCAT-nbroot/overlay/bin/bmcsetup index 8333cf4de..ebb5c38ea 100755 --- a/xCAT-nbroot/overlay/bin/bmcsetup +++ b/xCAT-nbroot/overlay/bin/bmcsetup @@ -59,6 +59,11 @@ ipmitool raw 0xc 0x21 0x1 0x1 0x1 echo "Enabling SOL for user 2" ipmitool raw 6 0x4c 1 2 2 0 0 0 +allowcred.awk & +CREDPID=$! +frume.awk +kill $CREDPID + echo "Lighting Identify Light" ipmitool raw 0 4 0xff diff --git a/xCAT-nbroot/overlay/bin/frume.awk b/xCAT-nbroot/overlay/bin/frume.awk new file mode 100755 index 000000000..09090bcec --- /dev/null +++ b/xCAT-nbroot/overlay/bin/frume.awk @@ -0,0 +1,26 @@ +#!/usr/bin/awk -f +# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html +BEGIN { + localport = ARGV[1] + ns = "/inet/tcp/0/127.0.0.1/" localport + canexit = 0 + + print "" |& ns + print "rewritemyfru" |& ns + print "" |& ns + + while (1) { + if ((ns |& getline) > 0) { + print $0 > "/tmp/fru.status" + if ($0 ~ /<\/serverdone>/) + canexit = 1 + if (canexit == 1 && $0 == "") + break + } else { + close(ns) + exit 1 + } + } + close(ns) + exit 0 +}