I have ESXi 5.5, Dell R430, a DVD rom installed in it. How can I check the most easiest way, if a DVD is inserted into the DVD drive? The reason I want to know this, is that when the system is rebooted, and the boot order is set to DVD, I want to avoid to start any install from there.
Tried to check things in /dev/cdrom, but have not found a working solution yet. It would be okay, to have the boot order check as well, I want to make it automatized in the end - that's why I need a CLI command solution.
Thanks for the help in advance!