I can successfully programmatically download the config from Juniper network devices using SCP – I'd like to do the same for a Cisco router.
SSH access is already working, and I've enabled SCP using ip scp server enable
. Problem is that I don't know the name or location of the file I need to download, and GUI tools like WinSCP don't seem to work (complains that I need a BASH shell).
Is this possible for Cisco devices?
Best Answer
scp <user>@<router>:startup-config
(orrunning-config
)Or the full pathname of whatever file you want, like nvram:/startup-config.
[there's also the
CONFIG-COPY-MIB
to initiate a copy by SNMP. It's come up many times before, so go here]