mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
start:inventory_node_rest
|
|
description: get OpenBMC node inventory with REST API
|
|
hcp:openbmc
|
|
cmd:restapitest -m GET -r /nodes/$$CN/inventory -u $$username -p $$password
|
|
check:rc==200
|
|
check:output =~ "CPU0 PrettyName":"PROCESSOR MODULE"
|
|
end
|
|
|
|
start:inventory_node_rest2
|
|
description: get IPMI node inventory with REST API
|
|
hcp:ipmi
|
|
cmd:restapitest -m GET -r /nodes/$$CN/inventory -u $$username -p $$password
|
|
check:rc==200
|
|
check:output=~Board Serial Number
|
|
end
|
|
|
|
start:vitals_node_rest
|
|
description: get OpenBMC node vitals with REST API
|
|
hcp:openbmc
|
|
cmd:restapitest -m GET -r /nodes/$$CN/vitals -u $$username -p $$password
|
|
check:rc==200
|
|
check:output =~"LEDs Front Fault"
|
|
end
|
|
|
|
start:vitals_node_rest2
|
|
description: get IPMI node vitals with REST API
|
|
hcp:ipmi
|
|
cmd:restapitest -m GET -r /nodes/$$CN/vitals -u $$username -p $$password
|
|
check:rc==200
|
|
check:output=~CPU Core Temp
|
|
end
|
|
|
|
start:eventlog_node_rest
|
|
description: get OpenBMC node inventory with REST API
|
|
hcp:openbmc
|
|
cmd:restapitest -m GET -r /nodes/$$CN/eventlog -u $$username -p $$password
|
|
check:rc==200
|
|
check:output=~"eventlog"
|
|
end
|
|
|
|
start:eventlog_node_rest2
|
|
description: get IPMI node eventlog with REST API
|
|
hcp:ipmi
|
|
cmd:restapitest -m GET -r /nodes/$$CN/eventlog -u $$username -p $$password
|
|
check:rc==200
|
|
check:output=~eventlog
|
|
end
|