H3C S5830V2 Command Reference Manual page 148

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

Predefined user roles
network-admin
Parameters
directory: Specifies the name of a configuration archive directory, a case-insensitive string of 1 to 63
characters. The directory name must take the format storage-medium-name:/folder-name. This
directory must already exist on the master.
filename-prefix: Specifies a file name prefix for configuration archives, a case-insensitive string of 1
to 30 characters. Valid characters are letters, digits, underscores (_), and hyphens (-).
Usage guidelines
Before archiving the running configuration, either manually or automatically, you must configure a
directory and file name prefix for configuration archives.
In an IRF fabric, the configuration archive function saves the running configuration only on the
master device. To make sure the system can archive the running configuration after a
master/subordinate switchover, create the directory on all IRF members.
Configuration archives take the file name format prefix_serial number.cfg, for example,
20080620archive_1.cfg and 20080620archive_2.cfg. The serial number is automatically assigned
from 1 to 1000, increasing by 1. After the serial number reaches 1000, it restarts from 1.
After you change the file directory or file name prefix, or reboot the device, all of the following events
occur:
The old configuration archives are regarded as common configuration files.
The configuration archive counter is reset.
The display archive configuration command no longer displays the old configuration
archives.
The serial number for new configuration archives starts at 1.
The undo archive configuration location command removes the configuration archive directory
and file name prefix settings. The command also performs the following tasks:
Disables the configuration archive function (both manual and automatic methods).
Restores the default settings of the archive configuration interval and archive
configuration max commands.
Clears the configuration archive information displayed by using the display archive
configuration command.
Examples
# Configure the configuration archive directory as flash:/archive and the archive file name prefix as
my_archive.
<Sysname> mkdir flash:/archive
Creating directory flash:/archive... Done.
<Sysname> system-view
[Sysname] archive configuration location flash:/archive filename-prefix my_archive
Related commands
archive configuration
archive configuration location
archive configuration max
display archive configuration
136

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents