Hi Experts,

We are planning to automate extreme network switch backup through ansible 
facing issues with few hosts.The playbook works for few hosts and shows 
below errors for remaining hosts.

Is something need to be checked from network switch for below error?

An exception occurred during task execution. To see the full traceback, use 
-vvv. The error was: ansible.module_utils.connection.ConnectionError: 
unable to set terminal parameters
fatal: [10.190.203.14]: FAILED! => {"ansible_facts": 
{"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, 
"module_stderr": "Traceback (most recent call last):\n  File 
\"/home/arappadm/.ansible/tmp/ansible-local-81032AFss5m/ansible-tmp-1600511919.14-205761635036333/AnsiballZ_exos_command.py\",
 
line 102, in <module>\n    _ansiballz_main()\n  File 
\"/home/arappadm/.ansible/tmp/ansible-local-81032AFss5m/ansible-tmp-1600511919.14-205761635036333/AnsiballZ_exos_command.py\",
 
line 94, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, 
ANSIBALLZ_PARAMS)\n  File 
\"/home/arappadm/.ansible/tmp/ansible-local-81032AFss5m/ansible-tmp-1600511919.14-205761635036333/AnsiballZ_exos_command.py\",
 
line 40, in invoke_module\n    
runpy.run_module(mod_name='ansible.modules.network.exos.exos_command', 
init_globals=None, run_name='__main__', alter_sys=True)\n  File 
\"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n    fname, 
loader, pkg_name)\n  File \"/usr/lib64/python2.7/runpy.py\", line 82, in 
_run_module_code\n    mod_name, mod_fname, mod_loader, pkg_name)\n  File 
\"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n    exec code in 
run_globals\n  File 
\"/tmp/ansible_exos_command_payload_EXepoV/ansible_exos_command_payload.zip/ansible/modules/network/exos/exos_command.py\",
 
line 221, in <module>\n  File 
\"/tmp/ansible_exos_command_payload_EXepoV/ansible_exos_command_payload.zip/ansible/modules/network/exos/exos_command.py\",
 
line 191, in main\n  File 
\"/tmp/ansible_exos_command_payload_EXepoV/ansible_exos_command_payload.zip/ansible/module_utils/network/exos/exos.py\",
 
line 187, in run_commands\n  File 
\"/tmp/ansible_exos_command_payload_EXepoV/ansible_exos_command_payload.zip/ansible/module_utils/network/exos/exos.py\",
 
line 164, in get_connection\n  File 
\"/tmp/ansible_exos_command_payload_EXepoV/ansible_exos_command_payload.zip/ansible/module_utils/connection.py\",
 
line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: 
unable to set terminal parameters\n", "module_stdout": "", "msg": "MODULE 
FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Below is the playbook

---
- name: "PLAY Capture and store configuration output"
  hosts: switches
  become: true
  become_method: enable
  connection: network_cli
  tasks:
    - name: "TASK 1: Extreme show configuration using SSH"
      #slxos_command:
      exos_command:
       #commands: show configuration
       commands:
         - show version
     #  authorize: yes # don't run enable mode commands until it's on 
enable mode
      register: cli_result

    - name: "TASK 2: Print output of the show configuration output"
      debug:
        msg: "{{ cli_result.stdout[0] }}"


Regards
Kumar

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9a824486-ce50-40e0-8fb5-c299c6979286n%40googlegroups.com.

Reply via email to