mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			72 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.9 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
 | |
| 
 | |
| start:beacon_node_rest
 | |
| description: get OpenBMC node beacon with REST API
 | |
| hcp:openbmc
 | |
| cmd:restapitest -m GET -r /nodes/$$CN/beacon -u $$username -p $$password
 | |
| check:rc==200
 | |
| check:output=~Front
 | |
| check:output=~Rear
 | |
| end
 | |
| 
 | |
| start:beacon_set_node_rest
 | |
| description: set OpenBMC node beacon with REST API
 | |
| hcp:openbmc
 | |
| cmd:restapitest -m PUT -r /nodes/$$CN/beacon -d '{"action":"on"}' -u $$username -p $$password
 | |
| check:rc==200
 | |
| end
 | |
| 
 | |
| start:beacon_set_node_rest2
 | |
| description: set IPMI node beacon with REST API
 | |
| hcp:ipmi
 | |
| cmd:restapitest -m PUT -r /nodes/$$CN/beacon -d '{"action":"on"}' -u $$username -p $$password
 | |
| check:rc==200
 | |
| end
 | |
| 
 |