
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 14.2K Views
Ansible Modules for HP Switches (Comware 7)
I was developing some latest playbooks for HP Switches (HP 5130 - CMW710) and noticed the 3rd party modules (refer link below) are not working any more with latest Ansible version (ansible 2.9.9). Also I found the repository is not maintained anymore (or last update was few years ago).
Module Repo : https://github.com/HPENetworking/ansible-hpe-cw7
Documentation : https://hp-ansible.readthedocs.io/en/latest/index.html
Could anyone advise if there are Ansible modules for HP switches ? (eg: HP 5130)
Or any other best practice to implement Ansible for HP Network Automation ?
Notes:
I have tried raw, cli_commands like modules to achieve the dirty way of executing commands, but failed with those.
Already enabled netconf on devices but still fail with ansible_connection=network_cli or ansible_connection=netconf
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 13.4K Views
I am also interested in the topic :)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 13.3K Views
we have already dropped that plan to use those and used direct "raw" commands instead

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 13.3K Views
I also think it's not maintained anymore. Getting errors while trying simple comware_ping & comware_facts command. I'm using Ansible 2.9.16.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 13.3K Views
Yeah.
we have already dropped that plan to use those and used direct "raw" commands instead

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 12.1K Views
Hy!
How did you achieve to use the "cli_command"? I mean what did you use at "ansible_network_os", and "connection"?
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 11.1K Views
my apologies as I have overlooked this question.
Hope you have already found a solution for the same.
Anyway, sharing from my side (as per my old records as it was done in middle of 2020)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 8,233 Views
Hello,
Have included these variables:
"module_stdout": "",
"module_stderr": "command timeout triggered, timeout value is 30 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide.",
"msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
"_ansible_no_log": false,
"changed": false
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 8,202 Views
Is netconf enabled?
The ansible_connection var is netconf then the switch needs to have it enabled and configured.
It looks like the stderr message is a timeout which makes me wonder if netconf is enabled or not or something in the middle is not allowing it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 8,196 Views
@Juan3 my bad, I'm running this playbook on a HP A5500, which have a Comware 5.20.99: