Friday, May 3, 2019

SSH AND Telnet Libraries to use in same Python Script?

I'm fairly new to scripting so please bear with me.

I built a script that uses Netmiko to go out and check firmware on our devices. I wanted to incorporate telnet into this as well. We have a shop of mixed vendors as well as a mix of SSH/Telnet (don't ask) and i'm having trouble trying to do this.

I don't think there's a way to load a json file to use with Telnet like there is with Netmiko correct? If that's the case, what's the best way to load a list of devices, where I could only call one file, rather than make two separate files.

Sorry if this is vague. If you need more info, please let me know.

Thanks.



No comments:

Post a Comment