Technical data
24 Meru System Director Configuration Guide © 2012 Meru Networks, Inc.
Manipulating System Files
The following example uses secure FTP to access the file named meru-3.7-config
on a server named ftp.merunetworks.com. This example uses the username admin
and the password secret to access this server:
controller# copy sftp://admin:secret@ftp.merunetworks.com/meru-3.7-config<space>.
For SCP (secure copy), replace the prefix sftp with scp.
Remote File Transfer Tasks
On a remote file system located on an FTP, SFTP, TFTP or SSH server, you can perform
the following tasks:
Copy files to or from the controller using the copy command.
List the files in a given directory using the dir command.
Copying Files to a Remote Server
For example, to copy a backup image jun01.backup.mbu from the local directory
images to a remote directory /home/backup on server server1, with user user1 using
FTP, with the same remote filename, type:
controller# cd images
controller# dir
total 48
-rw-r--r-- 1 root root 15317 Jan 9 15:46 jun01.backup.mbu
controller# copy jun01.backup.mbu ftp://user1@server1/home/backup/.
FTP Password:
controller#
Type the password for user user1 at the FTP Password prompt. To use SCP instead of
FTP:
controller# copy jun01.backup.mbu scp://user1@server1/home/backup/.
SCP Password:
Displaying a Remote Server’s Directory Contents
To display the contents of the remote directory /home/backup on the server server1,
for the username user1 and password userpass, you can type:
controller# dir ftp://user1:userpass@server1/home/backup
If you only specify the user name but not the password, the CLI prompts you to enter
the password:
controller# dir ftp://user1@server1/home/backup
FTP Password: