This article describes how to transfer a file using FTP to the FortiNAC-F. This procedure requires a FTP server.
Scope
FortiNAC-F v7.2 and above
Solution
Step 1: Log in to the FortiNAC-OS CLI as admin.
Step 2: Download or Import a File from a Remote Server.
Download the file to the /home/admin directory of the FortiNAC:
execute enter-shell ftp <FTP Server IP>
When prompted, enter the user and password. Type the following once the prompt returns:
cd <FTP directory> bin get <filename> bye exit
Example:
Download DevicesImport.csv from FTP server 10.106.90.70 located under ‘mydirectory’:
tb03-fortinac72 # execute enter-shell tb03-fortinac72:~$ ftp 10.106.90.70 Connected to 10.106.90.70. 220 (vsFTPd 3.0.5) Name (10.106.90.70:admin): username 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd mydirectory 250 Directory successfully changed. ftp> bin 200 Switching to Binary mode. ftp> get DevicesImport.csv local: DevicesImport.csv remote: DevicesImport.csv 200 PORT command successful. Consider using PASV. 150 Opening BINARY mode data connection for DevicesImport.csv (45 bytes). 226 Transfer complete. 45 bytes received in 0.000174 secs (2.5e+02 Kbytes/sec) ftp> bye 221 Goodbye. exit
Step 3: Upload or Export a File to the Remote Server.
Upload the file from the /home/admin directory of the FortiNAC to the Server:
execute enter-shell ftp <FTP Server IP>
When prompted, enter the user and password. Type the following once the prompt returns:
cd <FTP directory> bin get <filename> bye exit
Example:
Upload DevicesImport.csv to FTP server 10.106.90.70 located under ‘mydirectory’.
tb03-fortinac72 # execute enter-shell tb03-fortinac72:~$ ftp 10.106.90.70 Connected to 10.106.90.70. 220 (vsFTPd 3.0.5) Name (10.106.90.70:admin): username 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> cd mydirectory 250 Directory successfully changed. ftp> bin 200 Switching to Binary mode. ftp> put DevicesImport.csv local: DevicesImport.csv remote: DevicesImport.csv 200 PORT command successful. Consider using PASV. 150 Ok to send data. 226 Transfer complete. 45 bytes sent in 0.000113 secs (3.9e+02 Kbytes/sec) ftp> bye 221 Goodbye. tb03-fortinac72:~$ exit logout tb03-fortinac72 #