2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_off
|
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:ouptut=~Running
|
|
|
|
cmd:rpower $$CN off
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Success
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:output=~Not Activated
|
|
|
|
cmd:rpower $$CN on
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_stat
|
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Running
|
|
|
|
cmd:rpower $$CN state
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Running
|
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_boot
|
|
|
|
cmd:rpower $$CN off
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:output=~Not Activated
|
|
|
|
cmd:rpower $$CN boot
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Success
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:output=~Running
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_on
|
|
|
|
cmd:rpower $$CN off
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:output=~Not Activated
|
|
|
|
cmd:rpower $$CN on
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Success
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:output=~Running
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_reset
|
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:ouptut=~Running
|
|
|
|
cmd:rpower $$CN reset
|
|
|
|
check:rc==0
|
|
|
|
check:output=~Success
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
cmd:rpower $$CN stat
|
|
|
|
check:output=~Running
|
2012-10-16 08:24:47 +00:00
|
|
|
cmd:sleep 60
|
2010-09-20 08:10:57 +00:00
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_noderange
|
|
|
|
cmd:rpower $$CN
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_noderange_nodeps
|
|
|
|
cmd:rpower $$CN --nodeps
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Usage
|
|
|
|
end
|
2011-12-28 09:58:01 +00:00
|
|
|
|
2010-09-20 08:10:57 +00:00
|
|
|
start:rpower_err_noderange
|
|
|
|
cmd:rpower testnode stat
|
|
|
|
check:rc!=0
|
|
|
|
check:output=~Error
|
|
|
|
end
|