Searched refs:cmd_str (Results 1 – 3 of 3) sorted by relevance
102 def cmd(self, cmd_str, wait_ret=True): argument103 if not isinstance(cmd_str, str):104 raise TypeError('Invalid command string', cmd_str)110 cmd_str.strip(self.tx_cmd_separator)112 self._tn.write(_ascii_string(cmd_str + self.tx_cmd_separator))121 logging.debug('Telnet Command: {}'.format(cmd_str))
147 def cmd(self, cmd_str): argument157 cmd_str.strip(self.tx_cmd_separator)162 self._tn.write(utils.ascii_string(cmd_str + self.tx_cmd_separator))167 raise pdu.PduError("Command failed: %s" % cmd_str)170 raise pdu.PduError("Command Invalid: %s" % cmd_str)174 res = res.replace(cmd_str, '')
63 def run(self, prompt, cmd_str): argument77 cmd_str = '%s%s' % (cmd_str, SEPARATOR)80 self.tn.write(_ascii_string(cmd_str))