I took a shot at it, because many months ago the same question arose, and I pointed out that in ONVIF specs, in the DeviceMgmt service, there's the SystemReboot command.
So I needed to find a linux library/client that implemented those APIs on my Ubuntu server. I checked with Python first, and...