seveas / python-hpilo

Accessing the HP iLO XML interface from python

Home Page:https://seveas.github.io/python-hpilo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

power reset is not working

maabik opened this issue · comments

I am trying to build a server from an iso file I construct using python-hpilo 4.1 module. When I try to reset the power in order the server will reboot and boot off the ISO image, but the ilo.reset_server() does not work. No thing appenned.
Here is what I do:
ilo = hpilo.Ilo('10...* ','hpadmin', '**')
ilo.insert_virtual_media('cdrom',
'http://
/CentOS-7.3-x86_64.iso')
ilo.set_vm_status(device='cdrom', boot_option='boot_once', write_protect=True)
ilo.reset_server()
Any help is welcome !

That should work. Add ilo.debug=2 before the insert_virtual_media call and all the XML that's being generated and received will be shown on stderr. Paste that in here and let's debug :)