Using The Device As An Ftp Client; Establishing An Ftp Connection - HPE FlexFabric 5940 Series Configuration Manual

Fundamentals configuration guide
Hide thumbs Also See for FlexFabric 5940 Series:
Table of Contents

Advertisement

# Create a local user with username abc and password 123456.
<Sysname> system-view
[Sysname] local-user abc class manage
[Sysname-luser-abc] password simple 123456
# Assign the network-admin user role to the user. Set the working directory to the root
directory of the flash memory on the master. (To set the working directory to the root directory of
the flash memory on the subordinate member, you must include the slot number in the directory
path.)
[Sysname-luser-abc] authorization-attribute user-role network-admin work-directory
flash:/
# Assign the service type FTP to the user.
[Sysname-luser-abc] service-type ftp
[Sysname-luser-abc] quit
# Enable the FTP server.
[Sysname] ftp server enable
[Sysname] quit
Perform FTP operations from the FTP client:
3.
# Log in to the FTP server at 1.1.1.1 using username abc and password 123456.
c:\> ftp 1.1.1.1
Connected to 1.1.1.1.
220 FTP service ready.
User(1.1.1.1:(none)):abc
331 Password required for abc.
Password:
230 User logged in.
# Use the ASCII mode to download configuration file config.cfg from the FTP server to the PC
for backup.
ftp> ascii
200 TYPE is now ASCII
ftp> get config.cfg back-config.cfg
# Use the binary mode to upload the temp.bin file from the PC to the root directory of the flash
memory on the master.
ftp> binary
200 TYPE is now 8-bit binary
ftp> put temp.bin
# Exit FTP.
ftp> bye

Using the device as an FTP client

Establishing an FTP connection

To access an FTP server, you must establish a connection from the FTP client to the FTP server.
To establish an IPv4 FTP connection:
Step
Enter system view.
1.
Command
system-view
80
Remarks
N/A

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flexfabric 5950 series

Table of Contents