2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

update after review

This commit is contained in:
caomengmeng
2017-01-10 03:49:32 -05:00
parent b39a45cb5f
commit e218b9b06b
2 changed files with 19 additions and 2 deletions

View File

@ -15,7 +15,7 @@ check:output=~Version
end
start:prsync_dir_node
description: run prsync -o to copy files in dir from MN to CN
description: run prsync to copy files in dir from MN to CN
os:Linux
cmd: mkdir -p /tmp/pscp
check:rc==0
@ -40,7 +40,7 @@ check:rc==0
end
start:prsync_file_node
description: run prsync -o to copy file from MN to CN
description: run prsync to copy file from MN to CN
os:Linux
cmd: echo "prsync-test" > prsync.test
check:rc==0

View File

@ -35,3 +35,20 @@ check:output=~$$CN
check:output=~/root
end
start:psh_l
description: psh -l user CN 'uptime' in linux
os:Linux
cmd:psh -l root $$CN 'uptime'
check:rc==0
check:output=~$$CN
end
start:psh_i
description: psh -i interface CN 'uptime' in linux
os:Linux
cmd:interface=`xdsh $$CN 'ifconfig' | sed -n 1p | awk -F : '{print $2}' | awk -F ' ' '{print $1}'`;sed -i "s/com $$CN/com $$CN $$CN-$interface/g" '/etc/hosts';psh -i $interface $$CN 'uptime'
check:output=~$$CN
check:rc==0
end