From d67e18f78a66ea8aa7c8eb2f40e7407f95a44ca9 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 24 Apr 2009 07:27:10 +0000 Subject: [PATCH] getmacs/rnetboot sometimes timeout at chsysstate. Enlarge the timeout value git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/lpar_netboot.expect | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xCAT-server/sbin/lpar_netboot.expect b/xCAT-server/sbin/lpar_netboot.expect index 490e5492b..6bf2db158 100644 --- a/xCAT-server/sbin/lpar_netboot.expect +++ b/xCAT-server/sbin/lpar_netboot.expect @@ -2233,7 +2233,7 @@ if { ([string compare "$msg" "Off"] == 0) || ([string compare "$msg" "Not Activa } else { set cmd "chsysstate -r lpar -o shutdown -m \"$manage\" -n \"$node\"" } - set timeout 30 + set timeout 120 send -i $ssh_spawn_id "$cmd; echo Rc=\$\?\r"; expect { @@ -2296,11 +2296,12 @@ if { ([string compare "$msg" "Off"] == 0) || ([string compare "$msg" "Not Activa if { $list_disk == 1 } { nc_msg "$PROGRAM Status: Power on to SMS.\n" - set rc [catch {eval exec $BINPATH/chsysstate -r lpar -o on -b sms -m \"$manage\" -n \"$node\" -f \"$profile\"} msg] + set timeout 120 + send -i $ssh_spawn_id "chsysstate -r lpar -o on -b sms -m \"$manage\" -n \"$node\" -f \"$profile\"" } else { send_user "# Power on $NODENAME to Open Firmware.\n" - set timeout 60 + set timeout 120 send -i $ssh_spawn_id "chsysstate -r lpar -o on -b of -m \"$manage\" -n \"$node\" -f \"$profile\"; echo Rc=\$\?\r" expect { @@ -2549,7 +2550,7 @@ if { $noboot } { # Display information for all supported adapters } else { set cmd "chsysstate -r lpar -o shutdown -m \"$manage\" -n \"$node\"" } - set timeout 30 + set timeout 120 send -i $ssh_spawn_id "$cmd; echo Rc=\$\?\r"; expect {