while read line
do
boardIP=`echo "${line}" | awk -F"baseip=" {'print $2'} | awk -F"\"" {'print $2'}`;
echo "${boardIP}";
#主控板同时有vcs节点和node节点,去掉vcs节点。
nodeID=`echo "${line}" | awk -F"id=" {'print $2'} | awk -F"\"" {'print $2'} | awk -F"-" {'print $1'}`;
if [ "-${boardIP}" != "-" ] && [ "_${nodeID}" != "_Vcs" ]
then
SyncSingleBoard ${boardIP} $1 2>&1 &
fi;
done <${ClusterBoardsFile};
2. test.sh > /dev/null 2>&1;
3.添加操作系统命令
Alias="alias mdxsync='/opt/command_mdxsync.sh $1'";
Root_Bashrc_File="/root/.bashrc";
Alias_Mdx_Sync=`grep 'alias mdxsync=' ${Root_Bashrc_File}`;
if [ "-${Alias_Mdx_Sync}" = "-" ]
then
echo "${Sync_All_Board_Alias}" >> ${Root_Bashrc_File};
source ${Root_Bashrc_File}
echo "set the alias opasswd success";
fi