title: What is the difference between exec_command and send with invoke_shell() on Paramiko?
body: <p>So what is the difference between <code>SSHClient.exec_command()</code> and send with <code>SSHClient.invoke_shell</code> on Paramiko?</p>
  
  <p>I can send and execute command with <code>exec_command</code> to MikroTik router device but can't execute it with <code>send</code> (<code>invoke_shell()</code>).</p>
  
  <p>On the other hand, I can send and execute command <code>send</code> (<code>invoke_shell()</code>) to Cisco device, but can't execute it with <code>exec_command</code>.</p>
  
  <p>The command I mean is the configuration command like routing (ip route xxx xxx) or make vlan or add an ip address and etc..</p>