Fundamentals Command Reference

HomeSupportWLANH3C WA2200 Series WLAN Access PointsReference GuidesCommand ReferencesH3C WA Series WLAN Access Points Command Reference-6W100Fundamentals Command Reference
04-File Management Commands
Title Size Download
04-File Management Commands 124.63 KB

l          The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.

l          Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.

l          The interface types and the number of interfaces vary by AP model.

 

 

The application file name used in this manual is test.bin.

 

File Management Configuration Commands

cd

Syntax

cd { directory | .. | / }

View

User view

Default Level

3: Manage level

Parameters

directory: Name of the target directory, in the format of [drive:/]path. For more information about the drive and path arguments, see File Management in the Fundamentals Configuration Guide. If no drive information is provided, the argument represents a folder or subfolder under the current directory.

..: Returns to an upper directory. If the current working directory is the root directory, or no upper directory exists, the current working directory does not change when the cd .. command is executed. This argument does not support command online help.

/: Returns to the root directory of the storage medium. The keyword does not support command line online help.

Description

Use the cd command to change the current directory.

Examples

# Change the current directory to Flash:.

<Sysname> cd test

# Return to the upper directory (Remember to enter a space after the keyword cd).

<Sysname> cd ..

# Return to the root directory.

<Sysname> cd /

To view the path of the current working directory after you change the current directory by using the cd command, use the pwd command.

copy

Syntax

copy fileurl-source fileurl-dest

View

User view

Default Level

3: Manage level

Parameters

fileurl-source: Name of the source file.

fileurl-dest: Name of the target file or folder.

Description

Use the copy command to copy a file.

If you specify a target folder, the system copies the file to the specified folder and uses the name of the source file as the file name.

Examples

# Copy file testcfg.cfg in the current folder and save it as testbackup.cfg.

<Sysname> copy test.cfg testbackup.cfg

Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y

....

%Copy file flash:/test.cfg to flash:/testbackup.cfg...Done.

# Copy file 1.cfg in the test folder on the flash to the testbackup folder, and save it as 1backup.cfg.

<Sysname> copy flash:/test/1.cfg flash:/testbackup/1backup.cfg

Copy flash:/test/1.cfg to flash:/testbackup/1backup.cfg?[Y/N]:y

%Copy file flash:/test/1.cfg to flash:/testbackup/1backup.cfg...Done.

delete

Syntax

delete [ /unreserved ] file-url

View

User view

Default Level

3: Manage level

Parameters

/unreserved: Permanently deletes the specified file. The deleted file can never be restored.

file-url: Name of the file to be deleted. Asterisks (*) are acceptable as wildcards. For example, to remove files with the expansion of txt in the current directory, you may use the delete *.txt command.

Description

Use the delete command to move a specified file from a storage medium to the recycle bin, where you can restore the file with the undelete command or permanently delete it with the reset recycle-bin command.

The dir /all command displays the files moved to the recycle bin. These files are enclosed in pairs of brackets.

 

If you delete two files in different directories but with the same filename, only the last one is retained in the recycle bin.

 

Examples

# Remove file tt.cfg from the current directory.

<Sysname> delete tt.cfg

Delete flash:/tt.cfg? [Y/N]:y

.

%Delete file flash:/tt.cfg...Done.

dir

Syntax

dir [ /all ] [ file-url ]

View

User view

Default Level

3: Manage level

Parameters

/all: Displays all files.

file-url: Name of the file or directory to be displayed. Asterisks (*) are acceptable as wildcards. For example, to display files with the .txt extension under the current directory, you may use the dir *.txt command.

Description

Use the dir command to display information about all visible files and folders in the current directory.

Use the dir /all command to display information about all files and folders in the current directory, including hidden files, hidden sub-folders and those in the recycle bin. The names of these deleted files are enclosed in pairs of brackets [ ].

The dir file-url command displays information about the specified file or folder.

Examples

# Display information about all files and folders.

<Sysname> dir /all

Directory of flash:/

 

   0     -rw-   4145120  Oct 10 2002 10:10:10   test.bin

   1     -rwh       690  Apr 26 2000 12:00:14   private-data.txt

   2     -rw-      1107  Apr 26 2000 12:03:16   startup.cfg

   3     -rwh         4  Apr 26 2000 14:22:15   snmpboots

 

6477 KB total (2423 KB free)

Table 1-1 dir command output description

Field

Description

Directory of

The current working directory

d

Indicates a directory; if this field does not exist, it indicates a file.

r

Indicates that the file or directory is readable.

w

Indicates that the file or directory is writable.

h

Indicates that the file or directory is hidden.

[ ]

Indicates that the file is in the recycle bin.

 

execute

Syntax

execute filename

View

System view

Default Level

2: System level

Parameters

filename: Name of a batch file with a .bat extension. To change the suffix of the configuration file to .bat to use it as a batch file, use the rename command.

Description

Use the execute command to execute the specified batch file.

Batch files are command line files. Executing a batch file is to execute a set of command lines in the file.

l          You should not include invisible characters in a batch file. If an invisible character is found during the execution, the batch process will abort and the commands that have been executed cannot be cancelled.

l          Not every command in a batch file is sure to be executed. For example, if a certain command is not correctly configured, the system omits this command and goes to the next one.

l          Each configuration command in a batch file must be a standard configuration command, meaning that the valid configuration information can be displayed with the display current-configuration command after this command is configured successfully; otherwise, this command may not be executed correctly.

Examples

# Execute the batch file test.bat in the root directory.

<Sysname> system-view

[Sysname] execute test.bat

file prompt

Syntax

file prompt { alert | quiet }

View

System view

Default Level

3: Manage level

Parameters

alert: Enables the system to warn you about operations that may bring undesirable results such as file corruption or data loss.

quiet: Disables the system from warning you about any operation.

Description

Use the file prompt command to set a prompt mode for file operations.

By default, the prompt mode is alert.

When the prompt mode is set to quiet, the system does not warn for any file operation. To prevent undesirable consequents resulted from misoperations, the alert mode is preferred.

Examples

# Set the file operation prompt mode to alert.

<Sysname> system-view

[Sysname] file prompt alert

fixdisk

Syntax

fixdisk device

View

User view

Default Level

3: Manage level

Parameters

device: Storage medium name.

Description

Use the fixdisk command to restore the space of a storage medium when it becomes unavailable because of some abnormal operation.

Examples

# Restore the space of the flash.

<Sysname> fixdisk flash:

Fixdisk flash: may take some time to complete...

%Fixdisk flash: completed.

format

Syntax

format device

View

User view

Default Level

3: Manage level

Parameters

device: Name of a storage medium (for example flash).

Description

Use the format command to format a storage medium.

 

Formatting a storage medium results in loss of all the files on the storage medium and these files cannot be restored. In particular, if there is a startup configuration file on a storage medium, formatting the storage medium results in loss of the startup configuration file.

 

Examples

# Format the Flash.

<Sysname> format flash:

All data on flash: will be lost, proceed with format? [Y/N]:y

./

%Format flash: completed.

mkdir

Syntax

mkdir directory

View

User view

Default Level

3: Manage level

Parameters

directory: Name of a folder.

Description

Use the mkdir command to create a folder under the specified directory on the storage medium.

The name of the folder to be created must be unique under the specified directory. Otherwise, you will fail to create the folder under the directory.

To use this command to create a folder, the specified directory must exist. For instance, to create folder flash:/test/mytest, the test folder must exist. Otherwise, you will fail to create folder mytest.

Examples

# Create a directory named test in the current directory.

<Sysname> mkdir test

....

%Created dir flash:/test.

# Create folder test/subtest in the current directory.

<Sysname> mkdir test/subtest

....

%Created dir flash:/test/subtest.

more

Syntax

more file-url

View

User view

Default Level

3: Manage level

Parameters

file-url: File name.

Description

Use the more command to display the contents of the specified file.

So far, this command is valid only for .txt files.

Examples

# Display the contents of file test.txt.

<Sysname> more test.txt

Welcome to H3C.

# Display the contents of file testcfg.cfg.

<Sysname> more testcfg.cfg

 

#

 version 5.20, Beta 1201, Standard

#

 sysname Sysname

#

 configure-user count 5

#

vlan 2

#

return

<Sysname>

move

Syntax

move fileurl-source fileurl-dest

View

User view

Default Level

3: Manage level

Parameters

fileurl-source: Name of the source file.

fileurl-dest: Name of the target file or folder.

Description

Use the move command to move a file.

If you specify a target folder, the system moves the source file to the specified folder, with the file name unchanged.

Examples

# Move file flash:/test/sample.txt to flash:/, and save it as 1.txt.

<Sysname> move flash:/test/sample.txt flash:/1.txt

Move flash:/test/sample.txt to flash:/1.txt? [Y/N]:y

....

% Moved file flash:/test/sample.txt to flash:/1.txt

# Move file b.cfg to the subfolder test2.

<Sysname> move b.cfg test2

Move flash:/b.cfg to flash:/test2/b.cfg?[Y/N]:y

.

%Moved file flash:/b.cfg to flash:/test2/b.cfg.

pwd

Syntax

pwd

View

User view

Default Level

3: Manage level

Parameters

None

Description

Use the pwd command to display the current path.

Examples

# Display the current path.

<Sysname> pwd

flash:

rename

Syntax

rename fileurl-source fileurl-dest

View

User view

Default Level

3: Manage level

Parameters

fileurl-source: Name of the source file or folder.

fileurl-dest: Name of the target file or folder.

Description

Use the rename command to rename a file or folder.

The target file name must be unique in the current path.

Examples

# Rename file sample.txt as sample.bat.

<Sysname> rename sample.txt sample.bat

Rename flash:/sample.txt to flash:/sample.bat? [Y/N]:y

 

% Renamed file flash:/sample.txt to flash:/sample.bat

reset recycle-bin

Syntax

reset recycle-bin [ /force ]

View

User view

Default Level

3: Manage level

Parameters

/force: Empties the recycle bin.

Description

Use the reset recycle-bin command to permanently delete the files in the recycle bin in the current directory.

If a file is corrupted, you may not be able to delete the file using the reset recycle-bin command. In this case, you can use the reset recycle-bin /force command, which deletes all files in the recycle bin forcibly.

Note the following:

l          The delete file-url command only moves a file to the recycle bin, and the file still occupies the memory space. To delete the file in the recycle bin, execute the reset recycle-bin command in the original directory of the file.

l          The reset recycle-bin command deletes files in the current directory and in the recycle bin. If the original path of the file to be deleted is not the current directory, use the cd command to enter the original directory of the file, and then execute the reset recycle-bin command.

Examples

# Empty the recycle bin.

<Sysname> reset recycle-bin

Clear flash:/~/tt.cfg? [Y/N]:y

Clearing files from flash may take a long time. Please wait...

 

%Cleared file flash:/~/tt.cfg.

rmdir

Syntax

rmdir directory

View

User view

Default Level

3: Manage level

Parameters

directory: Name of the folder.

Description

Use the rmdir command to remove a folder.

l          The folder must be an empty one. If not, delete all files and subfolders under it with the delete command.

l          The rmdir command automatically deletes the files in the recycle bin under the folder.

Examples

# Remove folder mydir.

<Sysname> rmdir mydir

Rmdir flash:/mydir?[Y/N]:y

 

%Removed directory flash:/mydir.

undelete

Syntax

undelete file-url

View

User view

Default Level

3: Manage level

Parameters

file-url: Name of the file to be restored.

Description

Use the undelete command to restore a file from the recycle bin.

If another file with the same name exists under the same path, the undelete operation causes it to be overwritten and the system asks you whether to continue.

Examples

# # Restore file a.cfg in directory flash: from the recycle bin.

<Sysname> undelete a.cfg

Undelete flash:/a.cfg?[Y/N]:y

.....

%Undeleted file flash:/a.cfg.

 


Configuration File Management Commands

Configuration File Management Commands

archive configuration

Syntax

archive configuration

View

User view

Default Level

3: Manage level

Parameters

None

Description

Use the archive configuration command to save the current running configuration manually.

This command saves the current running configuration with the specified filename (filename prefix + serial number) to the specified path.

Before executing the archive configuration command, you must configure the filename prefix and path for saving configuration files by using the archive configuration location command.

Examples

# Manually save the current running configuration.

<Sysname> archive configuration

Warning: Save the running configuration to an archive file. Continue? [Y/N]: Y

Please wait...

Info: The archive configuration file myarchive_1.cfg is saved.

archive configuration interval

Syntax

archive configuration interval minutes

undo archive configuration interval

View

System view

Default Level

3: Manage level

Parameters

minutes: Specifies the interval for automatically saving the current running configuration, in minutes. The value ranges from 10 to 525,600 (365 days).

Description

Use the archive configuration interval command to enable the automatic saving of the current running configuration and set the interval.

Use the undo archive configuration interval command to restore the default.

By default, the system does not automatically save the current running configuration.

This command saves the current running configuration with the specified filename to the specified path at a specified interval (the value of the minutes argument).

Configure an automatic saving interval according to the storage medium performance and the frequency of configuration modification:

l          If the configuration of the AP does not change frequently, save the current running configuration manually as needed (refer to the archive configuration command for details)

l          If a low-speed storage medium (such as a flash) is used, either save the current running configuration manually, or configure automatic saving with an interval longer than 1,440 minutes (24 hours).

Before executing the archive configuration interval command, you must configure the filename prefix and path for saving configuration files by using the archive configuration location command.

Examples

# Configure the system to save the current running configuration every 60 minutes.

<Sysname> system-view

[Sysname] archive configuration interval 60

Info: Archive files will be saved every 60 minutes.

archive configuration location

Syntax

archive configuration location directory filename-prefix filename-prefix

undo archive configuration location

View

System view

Default Level

3: Manage level

Parameters

directory: The path of the folder for saving configuration files, a case insensitive string of 1 to 63 characters, in the format of storage medium name:/[folder name]/subfolder name. The folder must be created before the configuration and the path cannot include a slot number.

filename-prefix: The filename prefix for saving configuration files, a case insensitive string of 1 to 30 characters (can include letters, numbers, _, and - only).

Description

Use the archive configuration location command to configure the path and filename prefix for saving configuration files.

Use the undo archive configuration location command to restore the default.

By default, the path and filename prefix for saving configuration files are not configured, and the system does not periodically save the configuration file.

Note the following:

l          Before the current running configuration is saved either manually or automatically, the file path and filename prefix must be configured.

l          If the undo archive configuration location command is executed, the current running configuration can neither be saved manually nor automatically, and the configuration by executing the archive configuration interval and archive configuration max commands restores to the default, meanwhile, the saved configuration files are cleared.

Examples

# Configure the path and the filename prefix for saving configuration files as flash:/archive/ and my_archive respectively.

<Sysname> mkdir archive

.

%Created dir flash:/archive.

<Sysname> system-view

[Sysname] archive configuration location flash:/archive filename-prefix my_archive

archive configuration max

Syntax

archive configuration max file-number

undo archive configuration max

View

System view

Default Level

3: Manage level

Parameters

file-number: The maximum number of configuration files that can be saved, in the range 1 to 10. The value of the file-number argument is determined by the memory space. You are recommended to set a comparatively small value for this argument if the available memory space is small.

Description

Use the archive configuration max command to set the maximum number of configuration files that can be saved.

Use the undo archive configuration max command to restore the default.

By default, a maximum of 5 configuration files can be saved.

Because excessive configuration files occupy large memory space, you can use this command to control the number of the files. With the maximum number of configuration files saved, the system deletes the oldest files when the next file is saved (either automatically or manually). When you change the maximum number of configuration files that can be saved, the exceeded files are not deleted. If the number of the existing configuration files is larger than or equal to the newly configured upper limit, the system deletes the oldest n files when the next file is saved, where n = the current number - the newly configured number + 1, for example: if the number of configuration files that have been saved is 7, and the newly configured upper limit is 4, when there is a new configuration file to be saved, the system deletes 4 oldest files, where 4 = 7-4+1.

Before executing this command, configure the path and filename prefix for saving configuration files by using the archive configuration location command; otherwise, the execution of this command fails.

The maximum number of configuration files that can be saved also restores to the default if the undo archive configuration location command is executed.

Examples

# Set the maximum number of configuration files that can be saved to 10.

<Sysname> system-view

[Sysname] archive configuration max 10

backup startup-configuration

Syntax

backup startup-configuration to dest-addr [ dest-filename ]

View

User view

Default Level

2: System level

Parameters

dest-addr: IP address or name of a TFTP server. The address cannot be an IPv6 address.

dest-filename: Target filename on the server. This file is to be used to save the startup configuration file of the AP.

Description

Use the backup startup-configuration command to back up the startup configuration file (used at the next system startup) to a specified TFTP server. If you do not specify this filename, the original filename is used.

Presently, the AP uses TFTP to backup the configuration file.

Examples

# Backup the configuration file to be used at the next startup of the AP to the TFTP server with IP address 2.2.2.2, using filename 192-168-1-26.cfg.

<Sysname> display startup

  Current startup saved-configuration file:          flash:/config.cfg

  Next startup saved-configuration file:             flash:/test.cfg

<Sysname> backup startup-configuration to 2.2.2.2 192-168-1-26.cfg

Backup next startup-configuration file to 2.2.2.2, please wait…finished!

<Sysname>

After the above operation, the AP backs up file test.cfg to TFTP server 2.2.2.2, where the file is saved as 192-168-1-26.cfg.

configuration replace file

Syntax

configuration replace file filename

View

System view

Default Level

3: Manage level

Parameters

filename: Specifies the name of the replacement configuration file for configuration rollback.

Description

Use the configuration replace file command to set configuration rollback.

With this command executed, the current running configuration rolls back to the configuration state based on the specified configuration file (filename).

Examples

# Roll back from the current running configuration to a previous configuration state based on a saved configuration file my_archive_1.cfg.

<Sysname> system-view

[Sysname] configuration replace file my_archive_1.cfg

Info: Now replacing the current configuration. Please wait...

Info: Succeeded in replacing current configuration with the file my_archive_1.cfg.

display archive configuration

Syntax

display archive configuration

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display archive configuration command to display information about configuration rollback.

Examples

# Display the information about configuration rollback.

<Sysname> display archive configuration

Location: flash:/archive

Filename prefix: my_archive

Archive interval in minutes: 120

Maximum number of archive files: 10

Saved archive files:

  No. TimeStamp              FileName

  1   Aug 05 2007 20:24:54   my_archive_1.cfg

  2   Aug 05 2007 20:34:54   my_archive_2.cfg

# 3   Aug 05 2007 20:44:54   my_archive_3.cfg

‘#’ indicates the most recent archive file.

Next archive file to be saved: my_archive_4.cfg

Table 2-1 display archive configuration command output description

Field

Description

Location

Absolute path of the saved configuration files

Archive interval in minutes

Configuration file saving interval, in minutes.

If the automatic saving is disabled, this field is not displayed.

 

display saved-configuration

Syntax

display saved-configuration [ by-linenum ]

View

Any view

Default Level

2: System level

Parameters

by-linenum: Identifies each line of displayed information with a line number.

Description

Use the display saved-configuration command to display the contents of the configuration file saved for the next startup of the AP.

During AP management and maintenance, you can use this command to check whether important configurations are saved to the configuration file to be used for the next startup of the AP.

If the system is not specified with a configuration file for the next startup or the specified configuration file does not exist, no information is displayed when you execute the display saved-configuration command.

Related commands: save and reset saved-configuration (in File Management in the Fundamentals Command Reference); display current-configuration (in Basic System Configuration in the Fundamentals Command Reference).

Examples

# Display the contents of the configuration file saved in the storage medium for the next AP reboot.

#

#

 version 5.20, Test 5310

#

 sysname Sysname

#

 domain default enable system

#

 telnet server enable

#

 multicast routing-enable

#

vlan 1

#

vlan 999

#

domain system

 access-limit disable

 state active

 idle-cut disable

 self-service-url disable

#

interface NULL0

#

  ---- More ----

The configurations are displayed in the order of global, port, and user interface. The More prompt indicates that there are more line that the screen can display. Pressing Enter displays the next line; pressing Space displays the next screen; pressing Ctrl+C or any other key exits the display.

# Display the contents of the configuration file saved for the next startup of the AP with a number identifying each line.

<Sysname> display saved-configuration by-linenum

    1:  #

    2:   version 5.20, Test 5310

    3:  #

    4:   sysname Sysname

    5:  #

    6:   domain default enable system

    7:  #

    8:   telnet server enable

    9:  #

   10:   multicast routing-enable

   11:  #

   12:  vlan 1

   13:  #

   14:  vlan 999

   15:  #

   16:  domain system

   17:   access-limit disable

   18:   state active

   19:   idle-cut disable

   20:   self-service-url disable

   21:  #

   22:  interface NULL0

   23:  #

---- More ----

The More prompt indicates that there are more line that the screen can display. Pressing Enter displays the next line; pressing Space displays the next screen; pressing Ctrl+C or any other key exits the display.

display startup

Syntax

display startup

View

Any view

Default Level

1: Monitor level

Parameters

None

Description

Use the display startup command to display the configuration file used at this startup and the one to be used at the next startup.

Related commands: startup saved-configuration.

Examples

# Display the configuration file used at this startup and the one to be used at the next startup.

<Sysname> display startup

  Current startup saved-configuration file:          flash:/testcfg.cfg

  Next main startup saved-configuration file:        flash:/testcfg.cfg

  Next backup startup saved-configuration file:      NULL

reset saved-configuration

Syntax

reset saved-configuration [ backup | main ]

View

User view

Default Level

2: System level

Parameters

backup: Deletes the backup startup configuration file.

main: Deletes the main startup configuration file.

Description

Use the reset saved-configuration command to delete the startup configuration file saved on the storage medium of the AP.

l          This command permanently deletes the configuration file from the AP. Use it with caution.

l          If the main and backup startup configuration files are the same, when you perform the delete operation for once, the system does not delete the configuration file but only sets the corresponding startup configuration file (main or backup, according to which one you specified in the command) to NULL.

l          For a AP that supports the main and backup keywords, the execution of the reset saved-configuration command and that of the reset saved-configuration main command have the same effect, which means they both delete the main startup configuration file.

Related commands: save, display saved-configuration.

Examples

# Delete the configuration file to be used at the next startup from the storage medium of the AP.

<Sysname> reset saved-configuration

The saved configuration file will be erased. Are you sure? [Y/N]:y

Configuration file in flash is being cleared.

Please wait ...........

 Configuration file is cleared

restore startup-configuration

Syntax

restore startup-configuration from src-addr src-filename

View

User view

Default Level

2: System level

Parameters

src-addr: IP address or name of a TFTP server. The address cannot be an IPv6 address.

src-filename: Filename of the configuration file to be downloaded from the specified server.

Description

Use the restore startup-configuration command to download a configuration file from the specified TFTP server and specify it as the configuration file to be used at the next startup of the AP.

The file to be downloaded will be set as the main startup configuration file to be used at the next system startup.

Examples

# Download configuration file config.cfg from the TFTP server whose IP address is .2.2.2.2, and the configuration file is to be used at the next startup of the AP.

<Sysname> restore startup from 2.2.2.2 config.cfg

Restore next startup-configuration file from 2.2.2.2. Please wait............

finished!

save

Syntax

save file-url

save [ safely ] [ backup | main ]

View

Any view

Default Level

2: System level

Parameters

file-url: File path, where the extension of the file name must be .cfg.

safely: Sets the configuration saving mode to safe. If this argument is not specified, the configuration file is saved in fast mode.

backup: Saves the current configuration to the startup configuration file specified in the interactive mode, and specifies the file as the backup startup configuration file to be used at the next startup of the AP.

main: Saves the current configuration to the main startup configuration file specified in the interactive mode, and specifies the file as the main startup configuration file to be used at the next startup of the AP.

Description

Use the save file-url command to save the current configuration to the specified configuration file, but the system does not specify the file as the startup configuration file to be used at the next system startup. If the file specified by file-url does not exist, the system creates the file and then saves the configuration to the file.

Use the save [ safely ] [ backup | main ] command to save the current configuration to the root directory of the storage medium, and specify the file as the startup configuration file for the next system startup.

Related commands: reset saved-configuration, display current-configuration, display saved-configuration.

Examples

# Save the current configuration file to the specified directory, but do not specify the configuration file as the configuration file for the next startup.

<Sysname> save test.cfg

The current configuration will be saved to flash:/test.cfg. Continue? [Y/N]:y

Now saving current configuration to the device.

Saving configuration flash:/test.cfg. Please wait...

............

Configuration is saved to flash successfully.

# Save the current configuration file to the root directory of the storage medium, and specify the configuration file as the configuration file for the next startup.

<Sysname> display startup

 Current startup saved-configuration file: flash:/hmr.cfg

 Next main startup saved-configuration file: flash:/aa.cfg

 Next backup startup saved-configuration file: NULL

// The above information indicates that the main startup configuration file for the next system startup is aa.cfg.

<Sysname> save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/aa.cfg]

(To leave the existing filename unchanged, press the enter key):startup.cfg

 Validating file. Please wait............

 Configuration is saved to device successfully.

<Sysname> display startup

 Current startup saved-configuration file: flash:/hmr.cfg

 Next main startup saved-configuration file: flash:/startup.cfg

 Next backup startup saved-configuration file: NULL

// The above information indicates that the main startup configuration file for the next system startup is changed to startup.cfg.

startup saved-configuration

Syntax

startup saved-configuration cfgfile [ backup | main ]

undo startup saved-configuration

View

User view

Default Level

2: System level

Parameters

cfgfile: Configuration file name. The file must be a file with an extension .cfg stored in the root directory of the storage medium.

backup: Sets the configuration file as the backup startup configuration file that will be used at the next startup of the AP.

main: Sets the configuration file as the main startup configuration file that will be used at the next startup of the AP.

Description

Use the startup saved-configuration command to specify a startup configuration file (the configuration file to be used at the next system startup).

Use the undo startup saved-configuration command to configure the AP to start up with the null configuration, that is, the factory configuration.

l          The startup saved-configuration and startup saved-configuration main commands have the same effect: Both of them are used to specify the main startup configuration file.

l          The main and backup startup configuration files can be specified as the same file. However, it is recommended you use different files, or, save the same configuration as two files using different file names, one specified as the main startup configuration file, and the other specified as the backup.

l          When you execute the undo startup saved-configuration command, the system sets the main and backup startup configuration file as NULL, but does not delete the two configuration files.

Related commands: display startup.

Examples

# Specify a configuration file to be used at the next startup.

<Sysname> startup saved-configuration testcfg.cfg

Please wait ....... Done!

 

  • 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
新华三官网