def poweron(hostname, timeout=20, username=None, password=None):
 client = __connect(hostname, timeout, username, password)
 if isinstance(client, paramiko.SSHClient):
  (stdin, stdout, stderr) = client.exec_command('racadm serveraction powerup')
  if ('successful' in stdout.readline()):
   log.info('powerup successful')
  else:
   log.error('powerup racadm command failed')
   return False
 else:
  log.error('client was not of type paramiko.SSHClient')
  return False
 return True

def poweron ( hostname , timeout = 20 , username = None , password = None ) : client = __connect ( hostname , timeout , username , password ) if isinstance ( client , paramiko . SSHClient ) : ( stdin , stdout , stderr ) = client . exec_command ( 'racadm serveraction powerup' ) if ( 'successful' in stdout . readline ( ) ) : log . info ( 'powerup successful' ) else : log . error ( 'powerup racadm command failed' ) return False else : log . error ( 'client was not of type paramiko.SSHClient' ) return False return True
power server on cli example: .