Configuration File Formats; Startup Configuration File Selection; Configuration File Content Organization And Format - HP 5920 series Fundamentals Configuration Manual

Hide thumbs Also See for 5920 series:
Table of Contents

Advertisement

c.
If you have not specified a backup startup configuration file, or the specified backup startup
configuration file is not available, the device starts up with the factory defaults. If a parameter
is not included in the factory defaults, its initial setting is used.

Configuration file formats

Configuration files you specify for saving configuration must use the .cfg extension. A .cfg configuration
file is a human-readable text file. When you save configuration to a .cfg file, the device automatically
saves the configuration to an .mdb user-inaccessible binary file that has the same name as the .cfg file.
The device loads an .mdb file faster than loading a .cfg file.

Startup configuration file selection

At startup, the device uses the following procedure to identify the configuration file to load:
1.
The device searches for a valid .cfg next-startup configuration file.
2.
If one is found, the device searches for an .mdb file that has the same name and content as the .cfg
file.
3.
If an .mdb file has the same name and content as the .cfg file, the device starts up with the .mdb
file. If none is found, the device starts up with the .cfg file.
Unless otherwise stated, the term "configuration file" in this document refers to a .cfg configuration file.

Configuration file content organization and format

IMPORTANT:
To run on the device, a configuration file must meet the content and format requirements. To ensure a
successful configuration load at startup, use a configuration file that was automatically created on the
device or created by using the save command. If you edit the configuration file, make sure all edits are
compliant with the requirements.
A configuration file must meet the following requirements:
All commands are saved in their complete form.
Commands are sorted in sections by command view, typically in this order: system view, interface
view, protocol views, and user interface view.
Two adjacent sections are separated by a comment line that starts with a pound sign (#).
The configuration file ends with the word return.
The following is a sample configuration file excerpt:
#
local-user root class manage
password hash $h$6$ZsQ6nIdasfn7fpya$oA2mN3HR2s63depCR2OFMClJD25HdX6qeEXxRO7Mfzv
KY0goFPaw9y73zmEjqsRd18XHvJcFsFvrhQs54/vqIg==
service-type ssh telnet terminal
authorization-attribute user-role network-admin
#
interface Ten-GigabitEthernet1/0/1
port link-mode route
93

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900 series

Table of Contents