After 23 attempts, failed to spawn pexpect session error
56 views
Skip to first unread message
Suneel Hegde
unread,
Jul 15, 2021, 11:50:17 PM7/15/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Hello Team,
we are trying to copy NXOS image using ansible getting this error when we ran the playbook form the AWX anyone please help what is causing this issuefatal: [switch]: FAILED! => { “msg”: “After 23 attempts, failed to spawn pexpect session to switchBEFORE: None, AFTER: None” }this is the the configuration - name: COPY_NXOS_IMAGE_USING_SCP nxos_file_copy: file_pull: True local_file: “{{new_nxos_image}}” remote_file: “/root/networkscript/nexus-image/{{new_nxos_image}}” remote_scp_server: “{{scp_server}}” remote_scp_server_user: “{{scp_server_username}}” remote_scp_server_password: “{{scp_server_password}}” vrf: “management” timeout: 600 vars: ansible_command_timeout: 30 when: ansible_network_os == ‘nxos’