in reply to Telnet to multiple IPs and tftp individual config files
Yes, you can. My CRAPPS (https://github.com/vinsworldcom/crapps) script does just that - among many other things - for Cisco routers.
Essentially, you delay the reading of the config file to use until you read the host to connect to. When you get the hostname, you then look in your config directory for a "hostname.confg" file and open it for reading. Then simply issue the commands over the Telnet session.
If you provide some minimal code to show what you've done so far, we could be of more help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Telnet to multiple IPs and tftp individual config files
by maclaren_role (Initiate) on May 11, 2016 at 14:17 UTC | |
by choroba (Cardinal) on May 11, 2016 at 14:36 UTC |