-
Notifications
You must be signed in to change notification settings - Fork 49
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
Command timeout on RouterOS 7 #229
Comments
I found the issue: I have added parenthesis in all devices identity at this location. So name convenction some something like: location-sw1-(rack1) That caused ssh to work improperly. I did not had time yet to check, but I suspect that this is not escaped / parsed incorrectly when receiving response. |
Maybe it's related to prompt detection, or something like that. (For my personal use, I started only using the SSH modules to set up API via HTTPS and then only use that.) |
Yes, same for me, 99% I use API where I can, though there are some cases where it is not implemented in API yet or even not possible through API. There are no endpoints for these operations. It might be better to create a script/scheduler on device for this, but I did not like that before when I tried, it is easier to manage this centrally (at least for me). |
IIRC there is an API endpoint for exporting the config, but you can only write it to a file on the router's filesystem. Then you have to use something like net_get to download the file. (At least that's what I wrote a longer time ago when working on the |
Have same issue. Any workaround for this? |
Linking this page for reference: It specifies that device names can only use alphanumeric characters, underscores and dashes. Another big one is the need to add @stasstryukov if you're still having this issue, give this page a glance and see if that resolves it for you. |
If there are commas in the Identity, a timeout issue occurs |
Also if the identity contains points - our identity is a fqdn, but it doesn't work. |
SUMMARY
Dear Community!
I have a weird issue. I have some Mikrotik devices, these are using my ansible backup playbook, to do a backup once a week.
Some of them now fails to do the backup (one site). Some devices were gave up during a storm recently, but some are still the same as before. New, identical devices were installed, backup was applied to them.
Around since then, the backup script is not working at this site. On all of the devices.
SSH is working correctly, I can log-in from the server to these devices.
API connection is working correctly, even in Ansible.
I can see that Ansible can log-in, key is accepted, access is granted. But after that, nothing happens basically.
Login attempt by Ansible:
In Ansible, I can't find anything suspicious. It just times out, as it is unable to reach the destination...:
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
The text was updated successfully, but these errors were encountered: