How to move a file from one Netscaler to another via CLI using SCP.

How to move a file from one Netscaler to another via CLI using SCP.

book

Article ID: CTX582626

calendar_today

Updated On:

Description

Understand how to utilize the SCP command to move a file from one ADC to another via CLI.


Instructions

In a use case where we'd want to obtain a file and it is already present on another ADC, which is reachable.
We can move a file with the SCP protocol by applying the following:
  1. Log into CLI.
  2. Move to Shell mode.
  3. Execute the command: scp <source-file> <username>@<destination-IP>:<destination-path>

In this example we will move a file named "adc.version" in ADC03 but renaming it as "testfile.log"

The command will look like this:
  1. scp adc.version nsroot@10.xx.xx.xx:/var/nsinstall/testfile.log
  2. After which, you will be prompted for the password of the destination ADC, in this case, ADC01.
image.png

After we move the file, we can see the file was successfully transferred to the destination ADC and renamed as testfile.log:
image.png

The opposite effect of pulling a file from another device can be accomplished by flipping the order of the command, as follows:
  1. scp <username>@<source-IP>:<source-file> <destination-path>