10-11-2013 09:27 AM - edited 03-07-2019 03:59 PM
Hi Everyone,
I need to test FTP functionality of server as i need to upgrade the IOS via FTP.
I have made text file name switch1.txt that has only
ip dhcp snooping in it.
If i use this command
copy ftp://admin:{pw}@192.168.50.1//home/admin/configs/switches/switch1.txt running-config
Where admin is username
192.168.50.1 is IP of FTP server
Switch1 is hostname of the switch.
If i run the above copy command on switch will it will simply add the ip dhcp snopping in running config of switch and previous config of switch will not change?
Also is the above command syntax correct?
I can not test as i am not sure what will this command do as switch is in production?
Regards
Mahesh
Solved! Go to Solution.
10-14-2013 11:31 AM
Mahesh
Am I correct in understanding that what you want is really some experience in using FTP to copy a file from an external server and using that file to make some config changes of low (or none) impact on the switch. In that case I would suggest that instead of dhcp snooping that you put in config commands to make (or change) the description on some interface? This will exercise FTP, make a config change that has no impact and is easy to verify.
I am a little confused what you mean when you say:" in running config of switch and previous config of switch will not change?". The running config will change and the startup config will be the same as it was.
HTH
Rick
10-14-2013 02:32 PM
If i run the above copy command on switch will it will simply add the ip dhcp snopping in running config of switch and previous config of switch will not change?
Correct. If you run the command "copy ftp://admin:{pw}@192.168.50.1//home/admin/configs/switches/switch1.txt running-config", the switch will read the "switch1.txt" file and apply what's in this file into the running-config. It will only change what you have in the text file and will not alter the rest.
So you are not familiar with the effects? May I recommend you put a "time b0mb" before running the copy command? Do this:
reload in 10 < --- Reloads in 10 minutes
copy ftp://admin:{pw}@192.168.50.1//home/admin/configs/switches/switch1.txt running-config
If there are no ill-effect, cancel the scheduled reload using the command "reload cancel".
10-14-2013 11:31 AM
Mahesh
Am I correct in understanding that what you want is really some experience in using FTP to copy a file from an external server and using that file to make some config changes of low (or none) impact on the switch. In that case I would suggest that instead of dhcp snooping that you put in config commands to make (or change) the description on some interface? This will exercise FTP, make a config change that has no impact and is easy to verify.
I am a little confused what you mean when you say:" in running config of switch and previous config of switch will not change?". The running config will change and the startup config will be the same as it was.
HTH
Rick
10-16-2013 02:28 PM
Hi Rick,
Yes i was trying to make some changes on run config of switch of low impact using FTP.
As per your adive i tried change by changing int description instead of ip dhcp snooping and it worked great.
Regarding " in running config of switch and previous config of switch will not change? i should have been more clearer
i was trying to say that when i run the ftp command syntax as i was doing this first time once i apply the low level change it will of course change the interface description of the switch to the new one.
I was intending to stay otehr than interface description remaining config of switch should remain same.
Hope makes Sense.
Regards
Mahesh
10-16-2013 02:59 PM
Mahesh
Thank you for the explanation. It now makes much more sense. And yes all other parts of the running config stay the same and only the particular part that you specified will change.
HTH
Rick
10-14-2013 02:32 PM
If i run the above copy command on switch will it will simply add the ip dhcp snopping in running config of switch and previous config of switch will not change?
Correct. If you run the command "copy ftp://admin:{pw}@192.168.50.1//home/admin/configs/switches/switch1.txt running-config", the switch will read the "switch1.txt" file and apply what's in this file into the running-config. It will only change what you have in the text file and will not alter the rest.
So you are not familiar with the effects? May I recommend you put a "time b0mb" before running the copy command? Do this:
reload in 10 < --- Reloads in 10 minutes
copy ftp://admin:{pw}@192.168.50.1//home/admin/configs/switches/switch1.txt running-config
If there are no ill-effect, cancel the scheduled reload using the command "reload cancel".
10-16-2013 02:30 PM
Hi Leo,
Above syntax
copy ftp://admin:{pw}@192.168.50.1//home/admin/configs/switches/switch1.txt running-config
As i was doing this first time so i was not sure of effect of this syntax.
Thanks for you help.
Regards
Mahesh
10-16-2013 02:42 PM
Mahesh,
Should be fine, Mahesh. We do this in our network very regularly.
One thing to consider: If you are just uploading a few lines, you can use TFTP.
Thanks for the ratings.
10-16-2013 02:55 PM
Hi Leo,
But we have to use FTP only no other choice.
Regards
Mahesh
10-16-2013 03:03 PM
But we have to use FTP only no other choice.
Ahhhhh ... Ok.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide