Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Cisco wlc - Unable to decode JSON from response to exec_command('{\"command\": \"show sysinfo - connection issues #630

Description

@akashombase7

when i tried connect to cisco wlc device

ansible-playbook [core 2.16.3]
config file = /home/admin/ansible_automation/ansible.cfg
configured module search path = ['/home/admin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /home/admin/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible-playbook
python version = 3.12.6 (main, Sep 23 2024, 09:58:19) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] (/usr/bin/python3.12)
jinja version = 3.1.2
libyaml = True
Using /home/admin/ansible_automation/ansible.cfg as config file

Error:

PLAY [Backup Cisco wlc devices] **********************************************************************************************

TASK [Show system info] ******************************************************************************************************
task path: /home/admin/ansible_automation/cisco.yml:10
redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
fatal: [sinkc203-corwc01]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"commands": [
"show sysinfo"
],
"host": null,
"interval": 1,
"match": "all",
"password": null,
"port": null,
"retries": 10,
"ssh_keyfile": null,
"timeout": null,
"username": null,
"wait_for": null
}
},
"msg": "Unable to decode JSON from response to exec_command('{"command": "show sysinfo", "prompt": null, "answer": null}'). Received 'None'.",
"rc": 1
}

playbook:

  • name: Backup Cisco wlc devices
    hosts: cisco
    gather_facts: false
    connection: network_cli
    tasks:
    • name: Show system info
      community.network.aireos_command:
      commands: show sysinfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions