
start:query_8233-E8B_reset
description:Reset the value of power saving and capping to a default one
type:8233-E8B-E8B
cmd:renergy $$CN savingstatus=off
check:rc==0
check:output=~Set savingstatus succeeded
cmd:renergy $$CN dsavingstatus=off
check:rc==0
check:output=~Set dsavingstatus succeeded
cmd:renergy $$CN cappingstatus=off
check:rc==0
check:output=~Set cappingstatus succeeded
cmd:renergy $$CN cappingwatt=2000
check:rc==0
end

start:query_8233-E8B_all
description:query all the attributes of the node
type:8233-E8B
cmd:renergy $$CN all
check:rc==0
check:output=~savingstatus: off
check:output=~cappingstatus: off
check:output=~dsavingstatus: off
check:output=~cappingmin: 1716
check:output=~cappingmax: 2121
check:output=~cappingvalue: 2000
check:output=~cappingsoftmin: 304
check:output=~averageAC: na
check:output~~averageDC: 681
check:output~~ambienttemp: 22
check:output~~ exhausttemp: 38
check:output~~CPUspeed: 3556
check:output=~syssbpower: na
check:output~~sysIPLtime: 900
end

start:query_8233-E8B_savingstatus
description:
type:8233-E8B
cmd:renergy $$CN savingstatus
check:rc==0
check:output=~savingstatus: off
check:output!~dsavingstatus
check:output!~cappingstatus
end

start:query_8233-E8B_dsavingstatus
description:
type:8233-E8B
cmd:renergy $$CN dsavingstatus
check:rc==0
check:output=~dsavingstatus: off
check:output!~: savingstatus
check:output!~cappingstatus
end

start:query_8233-E8B_cappingstatus
description:
type:8233-E8B
cmd:renergy $$CN cappingstatus
check:rc==0
check:output=~cappingstatus: off
check:output!~dsavingstatus
check:output!~savingstatus
end

start:query_8233-E8B_cappingmaxmin
description:
type:8233-E8B
cmd:renergy $$CN cappingmaxmin
check:rc==0
check:output=~cappingmin: 1716
check:output=~cappingmax: 2121
check:output!~cappingvalue
check:output!~cappingsoftmin
end

start:query_8233-E8B_cappingvalue
description:
type:8233-E8B
cmd:renergy $$CN cappingvalue
check:rc==0
check:output=~cappingvalue: 2000
check:output!~cappingmin
check:output!~cappingmax
check:output!~cappingsoftmin
end

start:query_8233-E8B_cappingsoftmin
description:
type:8233-E8B
cmd:renergy $$CN cappingsoftmin
check:rc==0
check:output=~cappingsoftmin: 304
check:output!~cappingmin
check:output!~cappingmax
check:output!~cappingvalue
end

start:query_8233-E8B_averageAC
description:
type:8233-E8B
cmd:renergy $$CN averageAC
check:rc==0
check:output=~averageAC: na
check:output!~averageDC
check:output!~ambienttemp
check:output!~exhausttemp
check:output!~CPUspeed
end

start:query_8233-E8B_averageDC
description:
type:8233-E8B
cmd:renergy $$CN averageDC
check:rc==0
check:output~~averageDC: 620
check:output!~averageAC
check:output!~ambienttemp
check:output!~exhausttemp
check:output!~CPUspeed
end

start:query_8233-E8B_ambienttemp
description:
type:8233-E8B
cmd:renergy $$CN ambienttemp
check:rc==0
check:output~~ambienttemp: 22
check:output!~averageAC
check:output!~averageDC
check:output!~exhausttemp
check:output!~CPUspeed
end

start:query_8233-E8B_exhausttemp
description:
type:8233-E8B
cmd:renergy $$CN exhausttemp
check:rc==0
check:output~~exhausttemp: 38
check:output!~averageAC
check:output!~ambienttemp
check:output!~averageDC
check:output!~CPUspeed
end

start:query_8233-E8B_CPUspeed
description:
type:8233-E8B
cmd:renergy $$CN CPUspeed
check:rc==0
check:output~~CPUspeed: 3556
check:output!~averageAC
check:output!~ambienttemp
check:output!~exhausttemp
check:output!~averageDC
end

start:query_8233-E8B_syssbpower
description:
type:8233-E8B
cmd:renergy $$CN syssbpower
check:rc==0
check:output=~syssbpower: na
check:output!~averageAC
check:output!~ambienttemp
check:output!~exhausttemp
check:output!~averageDC
check:output!~sysIPLtime
end

start:query_8233-E8B_sysIPLtime
description:
type:8233-E8B
cmd:renergy $$CN sysIPLtime
check:rc==0
check:output=~sysIPLtime: 900
check:output!~averageAC
check:output!~ambienttemp
check:output!~exhausttemp
check:output!~averageDC
check:output!~syssbpower
end

start:set_8233-E8B_savingstatus
description:
type:8233-E8B
cmd:renergy $$CN savingstatus=on
check:rc==0
check:output=~Set savingstatus succeeded
check:output=~This setting may need several minutes to take effect.
check:output!~Set savingstatus failed.
cmd:sleep 60

cmd:renergy $$CN savingstatus
check:rc==0
check:output=~savingstatus: on

cmd:renergy $$CN CPUspeed
check:rc==0
check:output~~CPUspeed: 2492

cmd:renergy $$CN savingstatus=onxx
check:rc!=0
check:output=~Usage:

cmd:renergy $$CN dsavingstatus=on-norm
check:rc!=0
check:output=~Cannot enable static and dynamic power
check:output=~Set dsavingstatus failed.

cmd:renergy $$CN savingstatus=off
check:rc==0
check:output=~Set savingstatus succeeded.
check:output=~This setting may need several minutes to take effect.
check:output!~Set savingstatus failed.

cmd:sleep 60

cmd:renergy $$CN savingstatus
check:rc==0
check:output=~savingstatus: off

cmd:renergy $$CN CPUspeed
check:rc==0
check:output~~CPUspeed: 3556
end


start:set_8233-E8B_dsavingstatus
description:
type:8233-E8B
cmd:renergy $$CN dsavingstatus=on
check:rc!=0
check:output=~ Usage:

cmd:renergy $$CN dsavingstatus=on-norm
check:rc==0
check:output=~Set dsavingstatus succeeded.
check:output=~This setting may need several minutes to take effect.
check:output!~Set dsavingstatus failed.

cmd:sleep 60

cmd:renergy $$CN dsavingstatus
check:rc==0
check:output=~dsavingstatus: on-norm

cmd:renergy $$CN CPUspeed
check:rc==0
check:output~~CPUspeed: 1652

cmd:renergy $$CN savingstatus=on
check:rc!=0
check:output=~Cannot enable static and dynamic power
check:output=~Set savingstatus failed.

cmd:renergy $$CN dsavingstatus=onxx
check:rc!=0
check:output=~ Usage:

cmd:renergy $$CN dsavingstatus=on-maxp
check:rc==0
check:output=~Set dsavingstatus succeeded.
check:output=~This setting may need several minutes to take effect.
check:output!~Set dsavingstatus failed.

cmd:renergy $$CN dsavingstatus
check:rc==0
check:output=~dsavingstatus: on-maxp

cmd:renergy $$CN CPUspeed
check:rc==0
check:output~~CPUspeed: 3864

cmd:renergy $$CN  dsavingstatus=off
check:rc==0
check:output=~Set dsavingstatus succeeded.
check:output=~This setting may need several minutes to take effect.
check:output!~Set dsavingstatus failed.

cmd:sleep 60

cmd:renergy $$CN dsavingstatus
check:rc==0
check:output=~dsavingstatus: off

cmd:renergy $$CN CPUspeed
check:rc==0
check:output~~CPUspeed: 3556
end

start:set_8233-E8B_cappingstatus
description:
type:8233-E8B
cmd:renergy $$CN cappingstatus=on
check:rc==0
check:output=~Set cappingstatus succeeded.
check:output=~This setting may need several minutes to take effect.
check:output!~Set cappingstatus failed.

cmd:sleep 60

cmd:renergy $$CN cappingstatus
check:rc==0
check:output=~cappingstatus: on

cmd:renergy $$CN cappingstatus=onxx
check:rc!=0
check:output=~Usage:

cmd:renergy $$CN cappingstatus=off
check:rc==0
check:output=~Set cappingstatus succeeded.
check:output=~This setting may need several minutes to take effect.
check:output!~Set cappingstatus failed.

cmd:sleep 60

cmd:renergy $$CN cappingstatus
check:rc==0
check:output=~cappingstatus: off
end

start:set_8233-E8B_cappingwatt
description:
type:8233-E8B
cmd:renergy $$CN cappingwatt=2050
check:rc==0
check:output=~Set cappingwatt succeeded.
check:output=~cappingvalue: 2050 
check:output!~Set cappingwatt failed.

cmd:renergy $$CN cappingvalue
check:rc==0
check:output=~cappingvalue: 2050

cmd:renergy $$CN cappingwatt=100
check:rc!=0
check:output!~Set cappingwatt succeeded.
check:output=~Set cappingwatt failed.
check:output=~Invalid value for cappingwatt.

cmd:renergy $$CN cappingwatt=3000
check:rc!=0
check:output!~Set cappingwatt succeeded.
check:output=~Set cappingwatt failed.
check:output=~Invalid value for cappingwatt.

cmd:renergy $$CN cappingvalue
check:rc==0
check:output=~cappingvalue: 2050

cmd:renergy $$CN cappingwatt=2000
check:rc==0
check:output=~Set cappingwatt succeeded.
check:output=~cappingvalue: 2000
check:output!~Set cappingwatt failed.

cmd:renergy $$CN cappingvalue
check:rc==0
check:output=~cappingvalue: 2000
end

start:set_8233-E8B_cappingperc
description:
type:8233-E8B
cmd:renergy $$CN cappingperc=0
check:rc==0
check:output=~Set cappingperc succeeded.
check:output=~cappingvalue: 1716
check:output!~Set cappingperc failed.

cmd:renergy $$CN cappingperc=50
check:rc==0
check:output=~Set cappingperc succeeded.
check:output=~cappingvalue: 1918 
check:output!~Set cappingperc failed.

cmd:renergy $$CN cappingperc=100
check:rc==0
check:output=~Set cappingperc succeeded.
check:output=~cappingvalue: 2121
check:output!~Set cappingperc failed.

cmd:renergy $$CN cappingperc=110
check:rc!=0
check:output!~Set cappingperc succeeded.
check:output=~Invalid value for cappingperc.
check:output=~Set cappingperc failed.

cmd:renergy $$CN cappingwatt=2000
check:rc==0
check:output=~Set cappingwatt succeeded.
check:output=~cappingvalue: 2000 
check:output!~Set cappingwatt failed.

cmd:renergy $$CN cappingvalue
check:rc==0
check:output=~cappingvalue: 2000

end
