Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

How to pull running-config of a Nexus from a server via scp

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

3 REPLIES
Community Member

How to pull running-config of a Nexus from a server via scp

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.

Community Member

How to pull running-config of a Nexus from a server via scp

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

Community Member

How to pull running-config of a Nexus from a server via scp

Sorry but I misunderstood the question.

If I find out how to do it, I'll tell you.

Regards.


1384
Views
0
Helpful
3
Replies
CreatePlease to create content