def server_pxe():
 if __execute_cmd('config -g cfgServerInfo -o             cfgServerFirstBootDevice PXE'):
  if __execute_cmd('config -g cfgServerInfo -o cfgServerBootOnce 1'):
   return server_reboot
  else:
   log.warning('failed to set boot order')
   return False
 log.warning('failed to to configure PXE boot')
 return False

def server_pxe ( ) : if __execute_cmd ( 'config -g cfgServerInfo -o             cfgServerFirstBootDevice PXE' ) : if __execute_cmd ( 'config -g cfgServerInfo -o cfgServerBootOnce 1' ) : return server_reboot else : log . warning ( 'failed to set boot order' ) return False log . warning ( 'failed to to configure PXE boot' ) return False
configure server to pxe perform a one off pxe boot cli example: .