cancel
Showing results for 
Search instead for 
Did you mean: 

SLX-OS: Copy confing to FTP

SLX-OS: Copy confing to FTP

olegu
New Contributor

Hi team,

I’m having trouble while trying to copy running config to the remote ftp server.

I have two VRFs (mgmt and default), each configured with 0.0.0.0/0.

I’m able to ping the remote ftp server.

SLX-OS: 17r.1.0

SC2-SLX9540-A29# copy running-config ftp://user:password@172.16.31.11/slx.txt
Error while transferring file over ftp. Please check the host IP address, user/password, and the permission and space left on the remote directory.

 

In addition, I was able to download the config form my VDX fabric, configured the same way.

Would appreciate any troubleshooting hints.

 

Thank you, Oleg

 

1 ACCEPTED SOLUTION

Michael_Morey
Extreme Employee

Oleg,

 

If you have already verified connectivity, UN/PW and directory permissions, I suggest you test if you can reach the FTP server from the linux sub-system.

From SLXOS issue the command:

     copy run flash://slx.txt

Then go to the Linux shell:

     start-shell

  • This will place you in the VRF “mgmt-vrf”
  • To move to the VRF “default”, elevate to Root with “su” and use the command:
    • /fabos/cliexec/vrfcmd 1 bash

Once in the Shell and appropriate VRF issue the command:

     cd /var/config/vcs/scripts

Verify you see your config file with the “ls” command, and then establish FTP:

     ftp [FTP_SERVER_IP]

Provide your UN/PW and navigate to the appropriate destination.

Use the following command to attempt to upload your config:

     put slx.txt

 

At the various steps you can eliminate some of the variables in your issue; if you can connect via FTP we can validate that the UN/PW is being accepted, if you can navigate to the path we can validate that the path is correct, and if you can copy successfully we know the permissions are OK.

Michael Morey
Principal Technical Support Engineer
Extreme Networks

View solution in original post

3 REPLIES 3

joergkost
Contributor II

vrf-support has been added in SLX OS 18r.2.00.

olegu
New Contributor

Thank you,

That solved the issue. Keep forgetting that SLX-OS has a linux sub-system.

Still would be good to have the copy command to be vrf-aware.

 

Thanks one more time, Oleg

Michael_Morey
Extreme Employee

Oleg,

 

If you have already verified connectivity, UN/PW and directory permissions, I suggest you test if you can reach the FTP server from the linux sub-system.

From SLXOS issue the command:

     copy run flash://slx.txt

Then go to the Linux shell:

     start-shell

  • This will place you in the VRF “mgmt-vrf”
  • To move to the VRF “default”, elevate to Root with “su” and use the command:
    • /fabos/cliexec/vrfcmd 1 bash

Once in the Shell and appropriate VRF issue the command:

     cd /var/config/vcs/scripts

Verify you see your config file with the “ls” command, and then establish FTP:

     ftp [FTP_SERVER_IP]

Provide your UN/PW and navigate to the appropriate destination.

Use the following command to attempt to upload your config:

     put slx.txt

 

At the various steps you can eliminate some of the variables in your issue; if you can connect via FTP we can validate that the UN/PW is being accepted, if you can navigate to the path we can validate that the path is correct, and if you can copy successfully we know the permissions are OK.

Michael Morey
Principal Technical Support Engineer
Extreme Networks
GTM-P2G8KFN