i would like to ask how can i copy running-config from my switch to linux, and a ready configurations (with changed values) back to switch but i dont want to use any ftp server or any other method with IP address. I am connected with device via console cable, the device is "clean" and i am using minicom with configurable connection.
Please correct me if I'm wrong, but when i want send already ready configurations can I use the cp command, where gives a target / dev / ttyS0 ? Do replace the Clean configurations?
And does will it work now with the new configuration?
2 Answers
If you want to transfer the file, then you need to use an IP address.
You could always just use the show running-configuration
command, and copy what is in your terminal to a file. Many terminal applications have a capture feature, or you could just copy-and-paste.
-
Ye i know about that, but i wonder how can i send it back. So, i can't upload a new config into my switch ? That switch need the adress ip ?– PerkamanCommented Oct 8, 2016 at 14:39
-
You can paste it into the terminal and it is just like typing it in. Text editors and terminal application are used for this every day.– Ron Maupin ♦Commented Oct 8, 2016 at 14:40
-
What if I have a lot of switches, new switches and each one wants to set up the same way?– PerkamanCommented Oct 8, 2016 at 14:40
-
But i want to automate this task later, i just plug in the switch, start up the script and it copy the new config.– PerkamanCommented Oct 8, 2016 at 14:42
-
I created an application for use in my company. It creates text files for devices configurations, sometimes many devices. The engineers just open the files in a text editor, copy the configurations, and paste the configurations into the terminal application to configure the devices.– Ron Maupin ♦Commented Oct 8, 2016 at 14:43
TFTP server can be used to copy Configuration from device to pc
Install TFTP server on pc and and connect console cable to switch allocate management ip address to switch
#copy running-config TFTP
Can copy Configuration from switch to TFTP server installed on PC
#copy TFTP runing-config
This above command allow us to restore Configuration from TFTP to switch .