Enable SCP on the Switch/Router
!
conf t
username <scpuser> privilege 15 password <super53crectPW>
ip scp server enable
!
Sending FILE to the Server
CLI Syntax:
scp <LocalPath:filename.Ext> <username>@<ServerIPAddr>:<DestPath:filename.ext>
e.q.:
c:\> scp c:\Store\iosxe-17.13.0.1.bin scpuser@111.222.111.123:flash:iosxe-17.13.0.1.bin
Viewing File
Syntax:
switch# dir <path>:
switch# more <path>:<filename.ext>
e.q.:
switch# dir flash:
switch# more flash:filename.txt
Deleting File After Use
Syntax:
switch# del /f /r <path>:<filename.ext>
e.q.:
switch# del flash:filename.txt
switch# del /f /r flash:filename.txt
Disable SCP After Use
Syntax:
!
no ip scp server enable
!