.TRY resource status p0
.EXT crm_resource -W -r 'p0'
resource p0 is NOT running
.SETENV showobj=p3
.TRY resource start p3
.INP: configure
.INP: _regtest on
.INP: show xml p3
.TRY resource stop p3
.INP: configure
.INP: _regtest on
.INP: show xml p3
.SETENV showobj=c1
.TRY resource manage c1
.INP: configure
.INP: _regtest on
.INP: show xml c1
.TRY resource unmanage c1
.INP: configure
.INP: _regtest on
.INP: show xml c1
.SETENV showobj=cli-prefer-p3
.TRY resource migrate p3
.EXT crm_resource -M -r 'p3'
Resource p3 not moved: not-active and no preferred location specified.
Error performing operation: cib object missing
.INP: configure
.INP: _regtest on
.INP: show xml cli-prefer-p3
.TRY resource migrate p3 node1
.EXT crm_resource -M -r 'p3' --node='node1'
.INP: configure
.INP: _regtest on
.INP: show xml cli-prefer-p3
.TRY resource unmigrate p3
.EXT crm_resource -U -r 'p3'
.INP: configure
.INP: _regtest on
.INP: show xml cli-prefer-p3
.SETENV showobj=p0
.TRY resource param p0 set a0 "1 2 3"
.EXT crm_resource -r 'p0' -p 'a0' -v '1 2 3'
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource param p0 show a0
.EXT crm_resource -r 'p0' -g 'a0'
1 2 3
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource param p0 delete a0
.EXT crm_resource -r 'p0' -d 'a0'
Deleted p0 option: id=p0-instance_attributes-a0 name=a0
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource meta p0 set m0 123
.EXT crm_resource --meta -r 'p0' -p 'm0' -v '123'
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource meta p0 show m0
.EXT crm_resource --meta -r 'p0' -g 'm0'
123
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource meta p0 delete m0
.EXT crm_resource --meta -r 'p0' -d 'm0'
Deleted p0 option: id=p0-meta_attributes-m0 name=m0
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource failcount p0 set node1 5
.EXT crm_attribute -t status -n 'fail-count-p0' -N 'node1' -v '5' -d 0
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource failcount p0 show node1
.EXT crm_attribute -t status -n 'fail-count-p0' -N 'node1' -G -d 0
scope=status name=fail-count-p0 value=0
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource failcount p0 delete node1
.EXT crm_attribute -t status -n 'fail-count-p0' -N 'node1' -D -d 0
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource cleanup p0 node1
.EXT crm_resource -C -r 'p0' -H 'node1'
Error performing operation: connection failed
.INP: configure
.INP: _regtest on
.INP: show xml p0
.TRY resource cleanup p0
.EXT crm_resource -C -r 'p0'
Error performing operation: connection failed
.INP: configure
.INP: _regtest on
.INP: show xml p0