HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Configuration - Page 85

to the Flash root directory of the master., Upload the file

Page 85 highlights

# Create a local user account abc, set its password to abc and the user privilege level to level 3 (the manage level), specify the Flash root directory of the master device as the authorized directory, and specify the service type as FTP. system-view [Sysname] local-user abc [Sysname-luser-abc] password simple abc [Sysname-luser-abc] authorization-attribute level 3 [Sysname-luser-abc] authorization-attribute work-directory flash:/ [Sysname-luser-abc] service-type ftp [Sysname-luser-abc] quit To access the Flash root directory of the subordinate device (with the member ID 2), replace flash:/ in the command authorization-attribute work-directory flash:/ with slot2#flash:/. # Enable the FTP server. [Sysname] ftp server enable [Sysname] quit 2. Perform FTP operations from the FTP client: # Log in to the FTP server at 1.1.1.1 by using the username abc and password abc. 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. # Download the configuration file config.cfg from the FTP server to the PC for backup. ftp> get config.cfg back-config.cfg # Upload the file newest.bin to the Flash root directory of the master. ftp> put newest.bin 200 Port command okay. 150 Opening ASCII mode data connection for /newest.bin. 226 Transfer complete. ftp> bye 221 Server closing. c:\> This FTP procedure also applies to upgrading configuration files. After you finish upgrading the Boot ROM image through FTP, execute the bootrom update command to upgrade Boot ROM. 3. Upgrade the FTP server: # Copy the system software image file newest.bin to the Flash root directory of the subordinate device (with the member ID 2). copy newest.bin slot2#flash:/ # Specify newest.bin as the main system software image file for the next startup of all member devices. boot-loader file newest.bin slot all main This command will set the boot file of the specified board. Continue? [Y/N]:y 79

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135

79
# Create a local user account
abc
, set its password to
abc
and the user privilege level to level 3 (the
manage level), specify the Flash root directory of the master device as the authorized directory,
and specify the service type as FTP.
<Sysname> system-view
[Sysname] local-user abc
[Sysname-luser-abc] password simple abc
[Sysname-luser-abc] authorization-attribute level 3
[Sysname-luser-abc] authorization-attribute work-directory flash:/
[Sysname-luser-abc] service-type ftp
[Sysname-luser-abc] quit
To access the Flash root directory of the subordinate device (with the member ID 2), replace
flash:/
in the command
authorization-attribute work-directory flash:/
with
slot2#flash:/
.
# Enable the FTP server.
[Sysname] ftp server enable
[Sysname] quit
2.
Perform FTP operations from the FTP client:
# Log in to the FTP server at 1.1.1.1 by using the username
abc
and password
abc
.
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.
# Download the configuration file
config.cfg
from the FTP server to the PC for backup.
ftp> get config.cfg back-config.cfg
# Upload the file
newest.bin
to the Flash root directory of the master.
ftp> put newest.bin
200 Port command okay.
150 Opening ASCII mode data connection for /newest.bin.
226 Transfer complete.
ftp> bye
221 Server closing.
c:\>
This FTP procedure also applies to upgrading configuration files.
After you finish upgrading the Boot ROM image through FTP, execute the
bootrom update
command to upgrade Boot ROM.
3.
Upgrade the FTP server:
# Copy the system software image file
newest.bin
to the Flash root directory of the subordinate
device (with the member ID 2).
<Sysname> copy newest.bin slot2#flash:/
# Specify
newest.bin
as the main system software image file for the next startup of all member
devices.
<Sysname> boot-loader file newest.bin slot all main
This command will set the boot file of the specified board. Continue? [Y/N]:y