def pxe(hostname, timeout=20, username=None, password=None):
 _cmds = ['racadm config -g cfgServerInfo -o cfgServerFirstBootDevice pxe', 'racadm config -g cfgServerInfo -o cfgServerBootOnce 1', 'racadm serveraction powercycle']
 client = __connect(hostname, timeout, username, password)
 if isinstance(client, paramiko.SSHClient):
  for (i, cmd) in enumerate(_cmds, 1):
   log.info('Executing command {0}'.format(i))
   (stdin, stdout, stderr) = client.exec_command(cmd)
  if ('successful' in stdout.readline()):
   log.info('Executing command: {0}'.format(cmd))
  else:
   log.error('Unable to execute: {0}'.format(cmd))
   return False
 return True

def pxe ( hostname , timeout = 20 , username = None , password = None ) : _cmds = [ 'racadm config -g cfgServerInfo -o cfgServerFirstBootDevice pxe' , 'racadm config -g cfgServerInfo -o cfgServerBootOnce 1' , 'racadm serveraction powercycle' ] client = __connect ( hostname , timeout , username , password ) if isinstance ( client , paramiko . SSHClient ) : for ( i , cmd ) in enumerate ( _cmds , 1 ) : log . info ( 'Executing command {0}' . format ( i ) ) ( stdin , stdout , stderr ) = client . exec_command ( cmd ) if ( 'successful' in stdout . readline ( ) ) : log . info ( 'Executing command: {0}' . format ( cmd ) ) else : log . error ( 'Unable to execute: {0}' . format ( cmd ) ) return False return True
connect to the dell drac and have the boot order set to pxe and power cycle the system to pxe boot cli example: .