dgg
Minnow
Posts: 2
|
Post by dgg on Apr 25, 2024 17:33:38 GMT
I'm working on automating provisioning of a Linux based image on a piece of hardware with iLO 6 on it, and I need to send a sequence of key strokes during boot time to configure it.
Is it possible to send a sequence of keystrokes through redfish's Python rest api?
Any help or guidance would be appreciated.
best Regards!
|
|
|
Post by jautor on Apr 25, 2024 19:31:47 GMT
No, at least not with the standard schema definitions, but there could be some OEM methods to do that... Are you trying to inject keystrokes into a remote console session (serial or KVM-IP), or is this some command routing to an option card setup, or something else completely?
Can you give us some more detail on what you're trying to accomplish? Because having to stuff keystrokes is not exactly what we want to promote as a good, repeatable/interoperable solution for any deployment tasks. We may not have an answer, but we'd like to understand the issue...
Jeff
|
|
dgg
Minnow
Posts: 2
|
Post by dgg on Apr 27, 2024 21:09:02 GMT
Hi Jeff,
yes.
I have a Debian based image which I'm mounting as a scripted media from an http server; we use the same image to configure the master and slave nodes of a cluster. After booting from the image, when the OS installer is displayed, we make some selections depending on the type of node (master or slave). For nodes that we deploy as ESXi hosted virtual machines, we already automate this process by sending key events through a powershell script.
We ship this ISO to our customers who install it on very different hardware and networking environments (sometimes airgapped), and it's important each OS installation can be configured manually to explicitly account for "unicorn" setups. When it comes to testing these images via test automation, we don't want a human to need to intervene, so sending in some well-timed keystrokes has worked reliably enough in our other test environments.
I would like to replicate this process to deploy nodes on bare-metal hardware, and I was hoping I could also send key events through redfish or an SSH session to the iLO.
P.D. Another approach I've explored, without success, is automating the HTML5 console with Playwright but the console is a canvas element that's not responding to key events as I would expect.
|
|