# Help on terminal and cliconf plugin

**URL:** <https://forum.ansible.com/t/help-on-terminal-and-cliconf-plugin/29824>\
**Category:** Ansible Project\
**Created:** [March 5, 2019, 5:55am UTC](https://forum.ansible.com/t/help-on-terminal-and-cliconf-plugin/29824 "2019-03-05T05:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpachi](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rpachi](https://forum.ansible.com/u/rpachi)\
**Post date:** [March 5, 2019, 5:55am UTC](https://forum.ansible.com/t/help-on-terminal-and-cliconf-plugin/29824/1 "2019-03-05T05:55:39Z")

</div>

Hi Experts,

I am unable to create terminal and cliconf plugin for my company. Can some one help me in creating it. I can arrange a call.

Thanks in advance.

Thanks,  
Rajas

---

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [March 5, 2019, 8:53am UTC](https://forum.ansible.com/t/help-on-terminal-and-cliconf-plugin/29824/2 "2019-03-05T08:53:42Z")

</div>

Hi,

I’ve written those plugins for some of our in-house devices. Key points:

- You have to tell Ansible where your plugins are, either using environmental variables or via ansible.cfg
- You’ll need a module that actually uses your plugins
- The ios.py (in plugins/cliconf and plugins/terminal) is a very good start, the corresponding module is modules/network/ios/ios\_command.py
- getting the regular expression in the terminal plugin (in variable terminal\_stdout\_re) right is critical - start with something really generic and work from there, if that regular expression doesn’t catch the prompt you’ll get weird errors about timeouts (even though the ssh session connected fine).
- If you want to debug things - run Ansible in full debug mode (writing to a file), if you need more have a look in [https://github.com/ansible/ansible/blob/devel/lib/ansible/module\_utils/connection.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/connection.py) around line 190.

kind regards  
Pshem
