idrac8 bmc.Screenshot() returns error
Closed this issue · 1 comments
joelrebel commented
Error returned is requested page couldn't be found in the server
https://github.com/bmc-toolbox/bmclib/blob/master/providers/dell/idrac8/query.go#L13
We're missing a step before the capture, this was missed because I would login to the BMC before hand and a capture was already generated.
The fix would be to,
- query
https://<ip>/data?get=consolepreview[auto 1540366265264]
- then query
capconsole/scapture0.png?1540366265265
Sample code here https://gist.github.com/joelrebel/e08b0a1ea02f9be7e041accaa8a57bb7