9a2937f3fd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
80 lines
1.2 KiB
Plaintext
80 lines
1.2 KiB
Plaintext
start:rpower_off
|
|
cmd:rpower $$CN stat
|
|
check:ouptut=~Running
|
|
cmd:rpower $$CN off
|
|
check:rc==0
|
|
check:output=~Success
|
|
cmd:sleep 60
|
|
cmd:rpower $$CN stat
|
|
check:output=~Not Activated
|
|
cmd:rpower $$CN on
|
|
cmd:sleep 60
|
|
end
|
|
|
|
start:rpower_stat
|
|
cmd:rpower $$CN stat
|
|
check:rc==0
|
|
check:output=~Running
|
|
cmd:rpower $$CN state
|
|
check:rc==0
|
|
check:output=~Running
|
|
end
|
|
|
|
start:rpower_boot
|
|
cmd:rpower $$CN off
|
|
cmd:sleep 60
|
|
cmd:rpower $$CN stat
|
|
check:output=~Not Activated
|
|
cmd:rpower $$CN boot
|
|
check:rc==0
|
|
check:output=~Success
|
|
cmd:sleep 60
|
|
cmd:rpower $$CN stat
|
|
check:output=~Running
|
|
cmd:sleep 60
|
|
end
|
|
|
|
start:rpower_on
|
|
cmd:rpower $$CN off
|
|
cmd:sleep 60
|
|
cmd:rpower $$CN stat
|
|
check:output=~Not Activated
|
|
cmd:rpower $$CN on
|
|
check:rc==0
|
|
check:output=~Success
|
|
cmd:sleep 60
|
|
cmd:rpower $$CN stat
|
|
check:output=~Running
|
|
cmd:sleep 60
|
|
end
|
|
|
|
start:rpower_reset
|
|
cmd:rpower $$CN stat
|
|
check:ouptut=~Running
|
|
cmd:rpower $$CN reset
|
|
check:rc==0
|
|
check:output=~Success
|
|
cmd:sleep 60
|
|
cmd:rpower $$CN stat
|
|
check:output=~Running
|
|
cmd:sleep 60
|
|
end
|
|
|
|
start:rpower_noderange
|
|
cmd:rpower $$CN
|
|
check:rc!=0
|
|
check:output=~Usage
|
|
end
|
|
|
|
start:rpower_noderange_nodeps
|
|
cmd:rpower $$CN --nodeps
|
|
check:rc!=0
|
|
check:output=~Usage
|
|
end
|
|
|
|
start:rpower_err_noderange
|
|
cmd:rpower testnode stat
|
|
check:rc!=0
|
|
check:output=~Error
|
|
end
|