# FAILED! =\> {"msg": "network os ansible.netcommon.cli\_command is not supported"}

**URL:** <https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667>\
**Category:** Get Help\
**Tags:** galaxy-ng\
**Created:** [June 19, 2024, 2:28pm UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667 "2024-06-19T14:28:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kabamaru](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kabamaru](https://forum.ansible.com/u/kabamaru)\
**Post date:** [June 19, 2024, 2:28pm UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667/1 "2024-06-19T14:28:05Z")

</div>

Hello everyone

Rocky Linux 9.4  
ansible [core 2.15.12]

I’m trying to use connection module: _ansible.netcommon.cli\_command_ but I get this error:

**fatal: [10.84.0.201]: FAILED! =\> {“msg”: “network os ansible.netcommon.cli\_command is not supported”}**

I have a file with variables located in /etc/ansible/group\_vars/switches.yml  
that looks like this:

**ansible\_user: admin**  
ansible\_password:  
**ansible\_network\_os: ansible.netcommon.cli\_command**  
**ansible\_connection: network\_cli**  
**ansible\_become: yes**  
**ansible\_become\_method: enable**  
**ansible\_become\_password: my\_enable\_password**

My playbook:

* * *

- name: Retrieve Dell OS6 switch OS version  
hosts: switches  
gather\_facts: no # Disable gathering facts since we’re executing a command directly

* * *

My hosts file has this group lines in it:  
**[switches]**  
**10.84.0.201**

I can confirm that module ansible.netcommon is installed.

**[root@paok group\_vars]# ansible-galaxy collection list | grep ansible.netcommon**  
**ansible.netcommon 6.0.0**

**[root@paok net]# ansible-galaxy collection list | grep dellemc.os6**  
**dellemc.os6 1.0.7**

Do you see anything wrong?

Thank you  
Kabamaru

---

<div class="post-metadata">

**Author:** ![McGlovin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mcglovin/32/3698_2.png) [@McGlovin](https://forum.ansible.com/u/McGlovin)\
**Post date:** [June 19, 2024, 4:18pm UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667/2 "2024-06-19T16:18:04Z")

</div>

I think, based on the name of your Play, you need to change the value of `ansible_network_os` to `dellemc.os6.os6`

See here for details: [https://docs.ansible.com/ansible/latest/network/user\_guide/platform\_dellos6.html#](https://docs.ansible.com/ansible/latest/network/user_guide/platform_dellos6.html#)

---

<div class="post-metadata">

**Author:** ![kabamaru](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kabamaru](https://forum.ansible.com/u/kabamaru)\
**Post date:** [June 20, 2024, 10:56am UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667/3 "2024-06-20T10:56:07Z")

</div>

Hi James

I tried your suggestion and run the playbook. I got this warning:  
_[WARNING]: ansible-pylibssh not installed, falling back to paramiko_  
followed by the same error as before.

I installed ansible-pylibssh using pip with no problems and run the playbook again. The warning is gone but the error message remains.

* * *

I also tried the playbook, after changing the line **ansible.netcommon.cli\_command:** to **dellemc.os6.os6:** and I get something different:

**An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: ‘PluginLoader’ object has no attribute ‘find\_plugin\_with\_name’**  
**fatal: [10.84.0.201]: FAILED! =\> {“msg”: “Unexpected failure during module execution: ‘PluginLoader’ object has no attribute ‘find\_plugin\_with\_name’”, “stdout”: “”}**

* * *

If run the playbook with -vvv I get:

**The full traceback is:**  
**Traceback (most recent call last):**  
\*\* File “/root/.ansible/collections/ansible\_collections/ansible/netcommon/plugins/action/network.py”, line 260, in \_find\_load\_module\*\*  
\*\* module = importlib.import\_module(context.plugin\_resolved\_name)\*\*  
\*\* File “/usr/lib64/python3.9/importlib/ **init**.py”, line 118, in import\_module\*\*  
\*\* if name.startswith(‘.’):\*\*  
**AttributeError: ‘NoneType’ object has no attribute ‘startswith’**

**During handling of the above exception, another exception occurred:**

**Traceback (most recent call last):**  
\*\* File “/root/.local/lib/python3.9/site-packages/ansible/executor/task\_executor.py”, line 165, in run\*\*  
\*\* res = self.\_execute()\*\*  
\*\* File “/root/.local/lib/python3.9/site-packages/ansible/executor/task\_executor.py”, line 656, in \_execute\*\*  
\*\* result = self.\_handler.run(task\_vars=vars\_copy)\*\*  
\*\* File “/root/.ansible/collections/ansible\_collections/dellemc/os6/plugins/action/os6.py”, line 94, in run\*\*  
\*\* result = super(ActionModule, self).run(task\_vars=task\_vars)\*\*  
\*\* File “/root/.ansible/collections/ansible\_collections/ansible/netcommon/plugins/action/network.py”, line 44, in run\*\*  
\*\* filename, module = self.\_find\_load\_module()\*\*  
\*\* File “/root/.ansible/collections/ansible\_collections/ansible/netcommon/plugins/action/network.py”, line 263, in \_find\_load\_module\*\*  
\*\* fullname, filename = mloadr.find\_plugin\_with\_name(\*\*  
**AttributeError: ‘PluginLoader’ object has no attribute ‘find\_plugin\_with\_name’**  
**fatal: [10.84.0.201]: FAILED! =\> {**  
\*\* “msg”: “Unexpected failure during module execution: ‘PluginLoader’ object has no attribute ‘find\_plugin\_with\_name’”,\*\*  
\*\* “stdout”: “”\*\*  
**}**

---

<div class="post-metadata">

**Author:** ![McGlovin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mcglovin/32/3698_2.png) [@McGlovin](https://forum.ansible.com/u/McGlovin)\
**Post date:** [June 20, 2024, 12:53pm UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667/4 "2024-06-20T12:53:47Z")

</div>

It may well be that you also need to use the `dellemc.os6` collection modules to run commands against your devices, such as the `dellemc.os6.os6_command` module.

The collection documentation can be found here: [https://docs.ansible.com/ansible/5/collections/dellemc/os6/index.html](https://docs.ansible.com/ansible/5/collections/dellemc/os6/index.html)  
Note, this isn’t latest documentation, as this doesn’t appear included in latest. The repo for this collection is here: [https://github.com/ansible-collections/dellemc.os6](https://github.com/ansible-collections/dellemc.os6)

Thus, you would set `ansible_network_os` to `dellemc.os6.os6` in your `switches.yml` file.  
Then use the `dellemc.os6.os6_command` module in your playbook (or one of the other supported modules as per link).

---

<div class="post-metadata">

**Author:** ![kabamaru](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kabamaru](https://forum.ansible.com/u/kabamaru)\
**Post date:** [June 20, 2024, 1:55pm UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667/5 "2024-06-20T13:55:42Z")

</div>

Hi

After a lot of trial and error, the playbook worked. This is what I did:  
In my playbook changed the line:

ansible.netcommon.cli\_command: to **dellemc.os6.os6:**

Also in the variables files, I changed:

1. _ansible\_network\_os:_ from ansible.netcommon.cli\_command to **dellemc.os6.os6**
2. _ansible\_connection:_ from network\_cli to **ansible.netcommon.network\_cli**

James thank you very much for pointing me to the right direction. 👍

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 20, 2024, 1:55pm UTC](https://forum.ansible.com/t/failed-msg-network-os-ansible-netcommon-cli-command-is-not-supported/6667/6 "2024-07-20T13:55:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
