R0106-HP MSR Router Series Fundamentals Configuration Guide(V7)

121
Using the emergency shell
In this chapter,"MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024,
MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080.
Overview
At startup, the device tries to locate and load the Comware startup software images. These images might
include a boot image, a system image, feature images, and patch images. If the following conditions are
met, the device enters emergency shell mode:
The boot image exists and can be used.
The system image, a feature image, or a patch image is missing or corrupt.
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 feature
images and patch images. This chapter describes how to get and load the system image in emergency
shell mode. For information about loading feature and patch images, see "Upgrading software."
If the device has two MPUs, the two MPUs start up independently. If one MPU enters emergency shell
mode, log in to that MPU through its console port to load a system image for it. (On an MSR4000.)
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 stora
g
e 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 memory.
The name for the new folder must be unique in the
parent folder.
Display the current
path.
pwd N/A