★风云★刀的小站

Kratos
一款专注于用户阅读体验的响应式博客主题
  1. 首页
  2. 技术
  3. 正文

NXOS配置技巧一-配置回滚

2017-08-01 1145点热度 0人点赞 0条评论

指导和局限

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.
本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: Cisco Nexus
最后更新:2019-03-23

hale

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2022 iteachs.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

苏ICP备2022000219号-1