01-Fundamentals Configuration Guide

HomeSupportResource CenterRoutersCR19000 Core SeriesCR19000 Core SeriesTechnical DocumentsConfigure & DeployConfiguration GuidesH3C CR19000 Core Router Series Configuration Guides-E3521-5W10001-Fundamentals Configuration Guide
09-Emergency shell configuration
Title Size Download
09-Emergency shell configuration 59.17 KB

Using the emergency shell

About the emergency shell

At startup, the device tries to locate and load the following images on the startup software images list:

·     Boot image, required for the device to operate.

·     System image, required for the device to operate.

·     Feature images, used to provide features as needed.

·     Patch images, used to fix bugs as needed.

If the boot image is available but one or more of the other images are not, the device enters emergency shell mode.

In emergency shell mode, common service interfaces are not available. You can log in to the device only through the console port. After login, you can obtain and load a system image to start the Comware system.

For more information about software images, see "Upgrading software."

Restrictions and guidelines: Emergency shell

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.

Emergency shell tasks at a glance

To use the emergency shell, perform the following tasks:

1.     (Optional.) Managing the file systems

2.     Loading the system image

3.     Rebooting the device

Managing the file systems

About this task

The emergency shell provides some basic file system management commands for managing files, directories, and storage media.

Procedure

To manage the file systems, execute the following commands as needed in user view:

·     Display the current status of the file systems.

¡     Display files or directories.

dir [ /all ] [ file | directory ]

¡     Display the working directory.

pwd

¡     Display the contents of a text file.

more file

·     Create a directory.

mkdir directory

The parent directory must already exist. The name for the new directory must be unique in the parent directory.

·     Copy a file.

copy source-file { dest-file | dest-directory }

·     Move a file.

move source-file { dest-file | dest-directory }

The destination directory must have enough space for the file.

·     Delete files or directories.

¡     Permanently delete a file.

delete file

Use this command with caution. The deleted file cannot be restored.

¡     Delete a directory.

rmdir directory

To delete a directory, first delete all files and subdirectories in the directory.

Use this command with caution. The deleted directory cannot be restored.

·     Format a file system.

format filesystem

Use this command with caution. This command permanently deletes all files and directories from the file system. The deleted files and directories cannot be restored.

Loading the system image

To load the system image, execute the following commands in user view:

1.     Display version information for the boot image and system image.

display version

display install package

Make sure the version of the system image matches the version of the boot image.

2.     Load the system image.

install load system-package

To ensure the device can reboot correctly, this command modifies the main startup software image set to include only the boot image and system image.

Rebooting the device

About this task

For the system image to take effect, you must reboot the device.

Procedure

To reboot the current MPU, execute the following command in user view:

reboot

Display and maintenance commands for emergency shell

Execute display commands in any view.

 

Task

Command

Display copyright information.

display copyright

Display software package information.

display install package package

Display boot image version information.

display version

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网