7703dd2164
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8876 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
78 lines
2.1 KiB
Plaintext
78 lines
2.1 KiB
Plaintext
start:rscan_noderange
|
|
hcp:hmc
|
|
cmd:rscan __GETNODEATTR($$CN,hcp)__
|
|
check:rc==0
|
|
check:output=~lpar\s+\w+\s+\d+\s+\w{4}-\w{3}\s+\w{7}\s+[\w|-]+
|
|
check:output=~cec\s+[\w|-]+\s+\w{4}-\w{3}\s+\w{7}
|
|
check:output=~hmc\s+__GETNODEATTR($$CN,hcp)__\s+\w{4}-\w{3}\s+\w{7}
|
|
end
|
|
start:rscan_x
|
|
hcp:hmc
|
|
cmd:rscan __GETNODEATTR($$CN,hcp)__ -x
|
|
check:rc==0
|
|
check:output=~<parent>[\w-]+</parent>
|
|
end
|
|
start:rscan_z
|
|
hcp:hmc
|
|
cmd:rscan __GETNODEATTR($$CN,hcp)__ -z
|
|
check:rc==0
|
|
check:output=~hcp=__GETNODEATTR($$CN,hcp)__
|
|
end
|
|
start:rscan_w
|
|
hcp:hmc
|
|
cmd:lsdef -t node -l $$CN -z > /tmp/$$CN.stanza
|
|
check:rc==0
|
|
cmd:perl -pi -e 's/$$CN/testnode/g' /tmp/$$CN.stanza
|
|
cmd:cat /tmp/$$CN.stanza | mkdef -z
|
|
cmd:rmdef $$CN
|
|
cmd:rscan __GETNODEATTR(testnode,hcp)__ -w
|
|
check:rc==0
|
|
check:output=~lpar\s+\w+\s+\d+\s+\w{4}-\w{3}\s+\w{7}\s+[\w|-]+
|
|
check:output=~cec\s+[\w|-]+\s+\w{4}-\w{3}\s+\w{7}
|
|
check:output=~hmc\s+__GETNODEATTR($$CN,hcp)__\s+\w{4}-\w{3}\s+\w{7}
|
|
cmd:lsdef -l $$CN
|
|
check:rc==0
|
|
check:output=~hcp=__GETNODEATTR($$CN,hcp)__
|
|
cmd:rmdef $$CN,testnode
|
|
cmd:perl -pi -e 's/testnode/$$CN/g' /tmp/$$CN.stanza
|
|
cmd:cat /tmp/$$CN.stanza | mkdef -z
|
|
cmd:rm -f /tmp/$$CN.stanza
|
|
end
|
|
start:rscan_x_w
|
|
hcp:hmc
|
|
cmd:lsdef -t node -l $$CN -z > /tmp/$$CN.stanza
|
|
check:rc==0
|
|
cmd:perl -pi -e 's/$$CN/testnode/g' /tmp/$$CN.stanza
|
|
cmd:cat /tmp/$$CN.stanza | mkdef -z
|
|
cmd:rmdef $$CN
|
|
cmd:rscan __GETNODEATTR(testnode,hcp)__ -x -w
|
|
check:rc==0
|
|
check:output=~<parent>[\w-]+</parent>
|
|
cmd:lsdef -l $$CN
|
|
check:rc==0
|
|
check:output=~hcp=__GETNODEATTR($$CN,hcp)__
|
|
cmd:rmdef $$CN,testnode
|
|
cmd:perl -pi -e 's/testnode/$$CN/g' /tmp/$$CN.stanza
|
|
cmd:cat /tmp/$$CN.stanza | mkdef -z
|
|
cmd:rm -f /tmp/$$CN.stanza
|
|
end
|
|
start:rscan_z_w
|
|
hcp:hmc
|
|
cmd:lsdef -t node -l $$CN -z > /tmp/$$CN.stanza
|
|
check:rc==0
|
|
cmd:perl -pi -e 's/$$CN/testnode/g' /tmp/$$CN.stanza
|
|
cmd:cat /tmp/$$CN.stanza | mkdef -z
|
|
cmd:rmdef $$CN
|
|
cmd:rscan __GETNODEATTR(testnode,hcp)__ -z -w
|
|
check:rc==0
|
|
check:output=~parent=[\w-]+
|
|
check:lsdef -l $$CN
|
|
check:rc==0
|
|
check:output=~parent=[\w-]+
|
|
cmd:rmdef $$CN,testnode
|
|
cmd:perl -pi -e 's/testnode/$$CN/g' /tmp/$$CN.stanza
|
|
cmd:cat /tmp/$$CN.stanza | mkdef -z
|
|
cmd:rm -f /tmp/$$CN.stanza
|
|
end
|
|
|