From 4572e601f88e86d1fff79daf84c36a2ee4bf41ee Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Fri, 9 Mar 2012 09:07:05 +0000 Subject: [PATCH] add sleep for rcons to check the blade state if it is in 'power off' state git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11801 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/cons/fsp | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/share/xcat/cons/fsp b/xCAT-server/share/xcat/cons/fsp index 806b40e1e..f6e6fc8c0 100755 --- a/xCAT-server/share/xcat/cons/fsp +++ b/xCAT-server/share/xcat/cons/fsp @@ -256,6 +256,7 @@ sub invoke_cmd { my $power_state_cmd = "$fsp_api -a cec_state -t $type:$fsp_ip:$id:$node: 2>&1"; my $res = xCAT::Utils->runcmd($power_state_cmd, -1); unless ($res and $res =~ /operating|standby/) { + sleep 5; return("The command 'rcons' is only support while the $machine is in the '$state' state"); }