Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use Network_Cli to log into Cisco Switches after Upgrade to Mac OS Sequoia #671

Open
dbasta1977 opened this issue Oct 3, 2024 · 1 comment

Comments

@dbasta1977
Copy link

All of my scripts worked last week with regard to this situation. I upgraded OS and Mac Sequoia broke a few things, Python modules are no longer installed outside of venv instances. I fixed those issues.

Ansible specific is the network_cli module can no longer SSH into switches.

The full traceback is:
File "/Users/directory/.ansible/collections/ansible_collections/cisco/ios/plugins/module_utils/network/ios/ios.py", line 60, in get_capabilities
capabilities = Connection(module._socket_path).get_capabilities()
File "/Users/directory/Library/Python/3.9/lib/python/site-packages/ansible/module_utils/connection.py", line 200, in rpc
raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
fatal: [basta-home]: FAILED! => changed=false
invocation:
module_args:
commands:
- show run | inc snmp-server location
interval: 1
match: all
retries: 9
wait_for: null
msg: '[Errno None] Unable to connect to port 22 on 10.10.10.1'

I can ssh directly to the switch without issue using the username and password in the Ansible Playbook.

@Ruchip16
Copy link
Contributor

Ruchip16 commented Oct 9, 2024

@dbasta1977 can you please share the version of collection and what version are you using?
along with a sample playbook to test this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants