Hi,
I have installed ‘cisco.iosxr’ ansible collection and try to run show commands through cli using Ansible on the Cisco routers.
Playbook:
- name: Retrieve software version details from Cisco IOS XR routers
hosts: ios
gather_facts: no
connection: network_cli
tasks:
- name: Retrieve IOS-XR version
cisco.iosxr.iosxr_command:
commands:
- show run
register: version
- name: Display software version
debug:
msg: "{{ version.stdout }}"
I am always getting error “msg”: “unable to set terminal parameters.”’ . Even I have try to set terminal length & width directly on routers. Still it doesn’t work.