Fibre Channel (SAN)

Reply
Contributor
Posts: 22
Registered: ‎10-02-2017
Accepted Solution

Copy File from Switch SAN to FTP

Hello,

 

I need copy a local file  "yyyy.txt"  storage in switch san (brocade) to a FTP Server.

 

Example;

 

switch# configlist -local

yyyy.txt 75650 2017 Sep 28 18:06

 

I don't know how to do it, can help me? please

 

Thanks, Regards.

Brocade Moderator
Posts: 55
Registered: ‎03-29-2010

Re: Copy File from Switch SAN to FTP

[ Edited ]

You will use the FTP get subcommand to move the file from the switch to the FTP server. You will need the root password for the Brocade switch to get the file you need.

 

ftp> 192.168.1.1 <IP of the brocade switch>

ftp> name : root <username with root privelges on switch>

ftp> password: therootpassword <the password for root login>

ftp> Guest login ok, access restrictions apply. 

ftp> cd /user/bin    <change to the dir where the file is located>

ftp> bin

ftp> Mode set to binary

ftp> get yyyy.txt

ftp>

200 PORT command successful.
150 ASCII data connection for yyyy.txt (192.168.1.1,3134) (75650 bytes).
226 ASCII Transfer complete. 

ftp> bye

%

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Now, if you are trying to move the switch config file from the switch to a ftp server, Brocade has provided the command to do that with: 'configupload -all'. This will interactively prompt you for credentials, and will move the config file from the switch to the ftp server, and save it in the directory where the ftp default downloads are kept.

 

B_switch:admin> configupload
Protocol (scp, ftp, sftp, local) [ftp]: ftp
Server Name or IP Address [host]: 10.1.2.3  <the FTP server>
User Name [user]: UserFoo
Path/Filename [<home dir>/config.txt]: switchConfig.txt
Section (all|chassis|FID# [all]): all
username@10.1.2.3
's password:
Password: <hidden>
configUpload complete

B_switch:admin>

doc

Any and all information provided by me is for entertainment value and should not be relied upon as a guaranteed solution or warranty of mechantability. All systems and all networks are different and unique. If you have a concern about data loss, or network disconnection, please open a TAC service request for service through Brocade, or through your OEM equipment provider. If this provided you with a solution to this issue, Please mark it with the button at the bottom "Accept as solution".

Brocade Moderator
Posts: 382
Registered: ‎03-29-2011

Re: Copy File from Switch SAN to FTP

Hi,

 

The easier way is to use  the confgupload CLI as covered by doc in the previous post.  

 

But if you want to move the yyyy.txt file stored on the switch, you will need root login on the switch and use ftp as below (the local storage for yyyy.txt is /var/config):

 

SW6510_1:FID128:root> configlist -local
yyyy.txt                42499   2017 Oct 03 09:43


SW6510_1:FID128:root> ftp 192.168.172.154
Connected to 192.168.172.154 (192.168.172.154).
220-FileZilla Server 0.9.59 beta
220-written by Tim Kosse (Tim.Kosse@gmx.de)
220 Please visit https://filezilla-project.org/
Name (192.168.172.154:root): admin
331 Password required for admin
Password:
230 Logged on
Remote system type is UNIX.
ftp> lcd /var/config  ### this is local files are stored
Local directory now /var/config
ftp> !ls
yyyy.txt
ftp> put yyyy.txt
local: yyyy.txt remote: yyyy.txt
200 Port command successful
150 Opening data channel for file upload to server of "/yyyy.txt"
226 Successfully transferred "/yyyy.txt"
43700 bytes sent in 0.0192 secs (2.2e+03 Kbytes/sec)
ftp> quit
221 Goodbye
SW6510_1:FID128:root>




If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution".


Any and all information provided by me is not reviewed, approved or endorsed by Brocade and is provided solely as a convenience for Brocade customers. All systems and all networks are different and unique. If you have a service affecting network problem, please open a TAC service request for service through Brocade, or through your OEM equipment provider. If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution"
Contributor
Posts: 22
Registered: ‎10-02-2017

Re: Copy File from Switch SAN to FTP

Hello Mr. Martin. Sjölin

 

 

Contributor
Posts: 22
Registered: ‎10-02-2017

Re: Copy File from Switch SAN to FTP

Hello Mr. doc

 

 

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

Download FREE NVMe eBook