Accessing Safe Mode with Paramiko

Hi everyone!

I’m trying to execute some commands in my Mikrotik router via Python scripts. With Paramiko, I’m currently able to access the router and execute the commands. However, some of them are a little bit ‘risky’ and I would like to run them using Safe Mode. According to the ASCII table, CTRL+X command can be introduced by sending \x18 to the router. However, if I do that, I see not response at all.

Said that, I would like to know if someone here has used a similar solution to access the router in Safe Mode. If so, I would aprecciate some help with that.

Thanks.

Hi
Did you find any solution for this?
I’m trying to the same but with mikrotik scripts.

Thanks

Safe mode works only in ineractive mode.