# cli\_command and python

**URL:** <https://forum.ansible.com/t/cli-command-and-python/31496>\
**Category:** Ansible Project\
**Created:** [October 21, 2019, 2:33pm UTC](https://forum.ansible.com/t/cli-command-and-python/31496 "2019-10-21T14:33:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [October 21, 2019, 2:33pm UTC](https://forum.ansible.com/t/cli-command-and-python/31496/1 "2019-10-21T14:33:35Z")

</div>

Does the cli\_command module require python on the remote host?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 21, 2019, 3:08pm UTC](https://forum.ansible.com/t/cli-command-and-python/31496/2 "2019-10-21T15:08:55Z")

</div>

No, it's for use with network devices and majority of them doesn't have Python.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [October 21, 2019, 3:17pm UTC](https://forum.ansible.com/t/cli-command-and-python/31496/3 "2019-10-21T15:17:37Z")

</div>

> \> Does the cli\_command module require python on the remote host?
> 
> No, it's for use with network devices and majority of them doesn't have Python.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;How does it send the command? Does it look for a shell or sends  
it in a expect-like fashion?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 21, 2019, 3:22pm UTC](https://forum.ansible.com/t/cli-command-and-python/31496/4 "2019-10-21T15:22:17Z")

</div>

It depends, I recommend reading the docs since it has all the information  
[https://docs.ansible.com/ansible/latest/network/index.html](https://docs.ansible.com/ansible/latest/network/index.html)  
[https://docs.ansible.com/ansible/latest/network/getting\_started/network\_differences.html](https://docs.ansible.com/ansible/latest/network/getting_started/network_differences.html)

---

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [October 21, 2019, 3:33pm UTC](https://forum.ansible.com/t/cli-command-and-python/31496/5 "2019-10-21T15:33:06Z")

</div>

> \>\>  
> \>\>\> Does the cli\_command module require python on the remote host?  
> \>\>  
> \>\> No, it's for use with network devices and majority of them doesn't have Python.  
> \>\>  
> \> How does it send the command? Does it look for a shell or sends  
> \> it in a expect-like fashion?
> 
> It depends, I recommend reading the docs since it has all the information  
> [https://docs.ansible.com/ansible/latest/network/index.html](https://docs.ansible.com/ansible/latest/network/index.html)  
> [https://docs.ansible.com/ansible/latest/network/getting\_started/network\_differences.html](https://docs.ansible.com/ansible/latest/network/getting_started/network_differences.html)

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;And that explains why what I am trying to do does not work.

Thanks!
