NXOS配置技巧一-配置回滚

2017-8-1 hale 技术

指导和局限

You can create up to ten checkpoint copies.

You cannot apply the checkpoint file of one switch into another switch.

Your checkpoint file names must be 75 characters or less.

You cannot start a checkpoint filename with the word system.

Beginning in Cisco NX-OS Release 5.0(2)N1(1), you can start a checkpoint filename with the word auto.

Beginning in Cisco NX-OS Release 5.0(2)N1(1), you can name a checkpoint file summary or any abbreviation of the word summary.

Only one user can perform a checkpoint, rollback, or copy the running configuration to the startup configuration at the same time.

After you enter the write erase and reload command, checkpoints are deleted. You can use the clear checkpoint database command to clear out all checkpoint files.

When checkpoints are created on bootflash, differences with the running-system configuration cannot be performed before performing the rollback, and the system reports “No Changes.”

Checkpoints are local to a switch.

Checkpoints that are created using the checkpoint and checkpoint checkpoint_name commands are present upon a switchover for all switches.

A rollback to files on bootflash is supported only on files that are created using the checkpoint checkpoint_name command and not on any other type of ASCII file.

Checkpoint names must be unique. You cannot overwrite previously saved checkpoints with the same name.

The Cisco NX-OS commands may differ from the Cisco IOS commands.

配置方法

1,配置检查点

switch# checkpoint checkpoint-1 description ok-1

可以创建成文件,默认是在内存中,重启会丢失。

switch# checkpoint file bootflash:///checkpoint-1

.Done

2,查看检查点

switch# show checkpoint summary

1) checkpoint-1:

Created by admin

Created at Thu, 01:36:23 10 Aug 2017

Size is 22,595 bytes

User Checkpoint Summary

--------------------------------------------------------------------------------

Description: ok-1

switch#

3,查看现有配置和检查点的区别

switch# show diff rollback-patch checkpoint checkpoint-1 running-config

Collecting Running-Config

#Generating Rollback Patch

Rollback Patch is Empty

4,配置回滚

switch# rollback running-config checkpoint checkpoint-1 atomic

Collecting Running-Config

Generating Rollback patch for switch profile

Rollback Patch is Empty

Note: Applying config parallelly may fail Rollback verification

Collecting Running-Config

#Generating Rollback Patch

Rollback Patch is Empty

Rollback completed successfully.


标签: NXOS

发表评论:

Powered by emlog 苏ICP备11083054号-1