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.
I am also interested in the topic :)
we have already dropped that plan to use those and used direct "raw" commands instead
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.
Yeah.
we have already dropped that plan to use those and used direct "raw" commands instead
Hy!
How did you achieve to use the "cli_command"? I mean what did you use at "ansible_network_os", and "connection"?
Thanks.
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)
Hello,
Have included these variables:
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.
@Juan3 my bad, I'm running this playbook on a HP A5500, which have a Comware 5.20.99:
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.