HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 120

Using the emergency shell, Managing the file system

Page 120 highlights

Using the emergency shell At startup, the device tries to locate and load the Comware startup software images, which includes a boot image, a system image, and some patch images (if any). If the boot image exists and can be used but the system image or a patch image is missing or corrupted, the device enters emergency shell mode. After the device enters emergency shell mode, you can log in through the console port and get and load a system image to start the Comware system. After the Comware system is started, you can load patch images as described in "Upgrading software" by using install series commands." This chapter describes how to get and load the system image in emergency shell mode. If more than one member exists on the device, each member starts up independently. If one member enters emergency shell mode, log in to that member through its console port to load a system image for it. For more information about software images, see "Upgrading software." For more information about how to log in through the console port, see "Logging in through the console port for the first device access." Managing the file system The emergency shell provides some basic file system management commands for managing the files on the device's storage media. You can use these commands to manage the file system. IMPORTANT: • A file deleted by using the delete command cannot be restored. • The format command permanently deletes all files and folders from a storage medium, and the deleted files and folders cannot be restored. To manage the file system, execute the following commands in user view: Task Command Display files or folders. dir [ /all ] [ file-url ] Create a folder on a storage medium. mkdir directory Display the current path. Copy a file. Move a file. Display the contents of a file. pwd copy fileurl-source fileurl-dest move fileurl-source fileurl-dest more file-url Remarks N/A The parent folder must already exist. For example, to create folder flash:/test/mytest, the parent folder test must already exist on the Flash. The name for the new folder must be unique under the parent folder. N/A N/A The target folder must have enough space for the file. N/A 113

  • 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
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155

113
Using the emergency shell
At startup, the device tries to locate and load the Comware startup software images, which includes a
boot image, a system image, and some patch images (if any). If the boot image exists and can be used
but the system image or a patch image is missing or corrupted, the device enters emergency shell mode.
After the device enters emergency shell mode, you can log in through the console port and get and load
a system image to start the Comware system. After the Comware system is started, you can load patch
images as described in "Upgrading software" by using install series commands." This chapter describes
how to get and load the system image in emergency shell mode.
If more than one member exists on the device, each member starts up independently. If one member
enters emergency shell mode, log in to that member through its console port to load a system image for
it.
For more information about software images, see "
Upgrading software
." For more information about
how to log in through the console port, see "
Logging in through the console port for the first device
access
."
Managing the file system
The emergency shell provides some basic file system management commands for managing the files on
the device's storage media.
Y
ou can use these commands to manage the file system.
IMPORTANT:
A file deleted by using the
delete
command cannot be restored.
The
format
command permanently deletes all files and folders from a storage medium, and the deleted
files and folders cannot be restored.
To manage the file system, execute the following commands in user view:
Task
Command
Remarks
Display files or folders.
dir
[
/all
] [
file-url
]
N/A
Create a folder on a
storage medium.
mkdir
directory
The parent folder must already exist. For example, to
create folder
flash:/test/mytest
, the parent folder
test
must already exist on the Flash.
The name for the new folder must be unique under the
parent folder.
Display the current
path.
pwd
N/A
Copy a file.
copy
fileurl-source
fileurl-dest
N/A
Move a file.
move
fileurl-source
fileurl-dest
The target folder must have enough space for the file.
Display the contents of
a file.
more
file-url
N/A