Cmd

class playback.cmd.Cmd(user='ubuntu', hosts=None, key_filename=None, password=None, parallel=True, *args, **kwargs)

Bases: playback.common.Common

Run command line on the target host

Parameters:
  • user(str) – the user for remote server to login
  • hosts(list) – this is a second param
  • key_filename(str) – the ssh private key to used, default None
  • password(str) – the password for remote server
  • parallel(bool) – paralleler execute on remote server, default True
Returns:

None

cmd(*args, **kwargs)

The command line to be executed on the remote node

Parameters:command_line(str) – command line
Returns:None