10-02-2013 07:24 AM - edited 03-07-2019 03:48 PM
Hello,
Is it possible to pull the running-config of a Nexus from a server using scp? All I found is how to push it from the Nexus to a server or pull it from a server to the Nexus. All I want to do is:
user@server> scp user@nexus:running-config /directory/running-config-of-nexus
But I get the following error:
nexus# scp: /bootflash/running-config: No such file or directory
It is possible with Catalyst switches... but that is of no help here...
A work around is to save the running config to a file and pull this file, but this requires 2 connections:
user@server> ssh user@nexus 'copy running-config bootflash:running-config.20131002-1620'
user@server> scp user@nexus:running-config.20131002-1620 /directory/running-config-of-nexus
Thanks in advance for your ideas
tom
10-05-2013 08:33 AM
Hello,
if I understood your question,
try with this command:
********************************************************************************************************************************************
SW-N5K1# copy running-config scp://usuario_scp:password_scp@1.1.1.1// vrf default
100% 27KB 26.7KB/s 00:00
*********************************************************************************************************************************************
I have implemented with a Red Hat Server (native scp) and with WinSSHD 5.26 (Bitvise Tunnelier) on Windows 7.
Regards.
10-06-2013 11:34 PM
Hello Iker,
Thank you but I want it the other way round: connect from a server or PC via scp to directly fetch the running-config. On an IOS Switch I have (c2960s) it works like this:
user@server> scp ciscouser@switch:running-config /directory/local-file
and that is what I want to do with the nexus too.
Regards
tom
10-07-2013 12:18 AM
Sorry but I misunderstood the question.
If I find out how to do it, I'll tell you.
Regards.
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