# No output from Cisco router

**URL:** <https://forum.ansible.com/t/no-output-from-cisco-router/25864>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 30, 2017, 12:06pm UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864 "2017-10-30T12:06:33Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![psprygad](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@psprygad](https://forum.ansible.com/u/psprygad)\
**Post date:** [October 30, 2017, 12:06pm UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/1 "2017-10-30T12:06:33Z")

</div>

run with -v (or -vvv) to see the output of the task on the command line

use register to further process the output ([http://docs.ansible.com/ansible/latest/playbooks\_variables.html#registered-variables](http://docs.ansible.com/ansible/latest/playbooks_variables.html#registered-variables))

---

<div class="post-metadata">

**Author:** ![Karn\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@Karn\_Kumar](https://forum.ansible.com/u/Karn_Kumar)\
**Post date:** [October 30, 2017, 2:32pm UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/2 "2017-10-30T14:32:34Z")

</div>

where is your password and username saved? there should be a template for these?

---

<div class="post-metadata">

**Author:** ![Karn\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@Karn\_Kumar](https://forum.ansible.com/u/Karn_Kumar)\
**Post date:** [October 30, 2017, 2:40pm UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/3 "2017-10-30T14:40:16Z")

</div>

try below… you need to register the output & the use debug to display the stdout of register…

---

<div class="post-metadata">

**Author:** ![SK1](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@SK1](https://forum.ansible.com/u/SK1)\
**Post date:** [December 8, 2017, 8:10am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/4 "2017-12-08T08:10:55Z")

</div>

Hi,

I am also facing a similar problem. The output says “register” is not supported for ios\_command module. Any idea on this? I am running the latest ansible version 2.4.2.0. If I don’t use the register command, the playbook executes successfully, so the error is only caused by register/stdout related commands.

Appreciate any help.

---

<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:** [December 8, 2017, 8:19am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/5 "2017-12-08T08:19:28Z")

</div>

register is a directive for the task and not the module.  
So the register is indented to spaces to much, it should be on the same level as ios\_command, delegate\_to and name.

---

<div class="post-metadata">

**Author:** ![SK1](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@SK1](https://forum.ansible.com/u/SK1)\
**Post date:** [December 8, 2017, 9:10am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/6 "2017-12-08T09:10:12Z")

</div>

Excellent! Many thanks for the pointer and it is working now. Is there any link that you could provide me regarding the best practices for indendations?

---

<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:** [December 8, 2017, 9:26am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/7 "2017-12-08T09:26:44Z")

</div>

You have the YAML specification that says it must be space and you need to be consistent on the number of spaces you use.

For Ansible you have the list[1] that list all directives and where you can use them.  
What you can use on the module it self is documented under each module.

So for register, you'll not find that documented under ios\_command so you can't have under the module. But if you check the link you'll see that register on can be used on the task.

[1] [http://docs.ansible.com/ansible/latest/playbooks\_keywords.html](http://docs.ansible.com/ansible/latest/playbooks_keywords.html)

---

<div class="post-metadata">

**Author:** ![Kazi\_Sohel\_Hasan](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@Kazi\_Sohel\_Hasan](https://forum.ansible.com/u/Kazi_Sohel_Hasan)\
**Post date:** [February 20, 2020, 11:33am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/8 "2020-02-20T11:33:28Z")

</div>

I am getting following error:

fatal: [210.4.64.100]: FAILED! =\> {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“invocation”: {  
“module\_args”: {  
“command”: “show version”  
}  
},  
“msg”: “Unsupported parameters for (ios\_command) module: command Supported parameters include: auth\_pass, authorize, commands, host, interval, match, password, port, provider, retries, ssh\_keyfile, timeout, username, wait\_for”  
}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
210.4.64.100 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Someone please assist me

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [February 20, 2020, 11:41am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/9 "2020-02-20T11:41:19Z")

</div>

> I am getting following error:
> 
> fatal: [210.4.64.100]: FAILED! =\> {  
> "ansible\_facts": {  
> "discovered\_interpreter\_python": "/usr/bin/python"  
> },  
> "changed": false,  
> "invocation": {  
> "module\_args": {  
> "command": "show version"  
> }  
> },  
> "msg": "Unsupported parameters for (ios\_command) module: command Supported parameters include: auth\_pass, authorize,  
> commands, host, interval, match, password, port, provider, retries, ssh\_keyfile, timeout, username, wait\_for"  
> }

The error message really points out the mistake in your playbook.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [February 20, 2020, 11:49am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/10 "2020-02-20T11:49:24Z")

</div>

Should be "commands" instead of "command", probably?

HTH,

&nbsp;&nbsp;-vlado

---

<div class="post-metadata">

**Author:** ![Kazi\_Sohel\_Hasan](https://avatars.discourse-cdn.com/v4/letter/k/c5a1d2/32.png) [@Kazi\_Sohel\_Hasan](https://forum.ansible.com/u/Kazi_Sohel_Hasan)\
**Post date:** [February 20, 2020, 12:01pm UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/11 "2020-02-20T12:01:06Z")

</div>

Here is my playbook, would you please check ?

---

<div class="post-metadata">

**Author:** ![Dushyant](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@Dushyant](https://forum.ansible.com/u/Dushyant)\
**Post date:** [March 21, 2020, 8:38am UTC](https://forum.ansible.com/t/no-output-from-cisco-router/25864/12 "2020-03-21T08:38:28Z")

</div>

Hello Kazi,

The following error indicates that during the execution of ios\_command module an unsupported parameter ‘command’ was found. Do check the Ansible document [1] for the support parameters in the ios\_command module.
