request system software sync
语法
request system software sync (current | rollback | all-versions)
描述
在系统的主路由引擎上使用此命令可将软件和配置从主路由引擎同步到其他节点,然后重新启动其他节点。即使映像相同,配置也会同步。如果在备份路由引擎上指定,则该命令将失败。
request system software sync
该命令仅在具有两个路由引擎的 PTX 系列和 QFX 系列设备上受支持。
选项
current | rollback | all-versions |
指定要同步到其他节点的软件版本(当前、回滚或所有版本):
|
其他信息
对于该 all-versions
选项,同步将按如下方式进行:
- 除当前版本外,其他节点上的所有版本都将被删除。
- 当前映像和回滚映像及配置将从主路由引擎复制到另一个节点。即使软件版本匹配,也会复制配置并继续执行下一个映像。
- 任何其他版本和配置都将从主路由引擎复制到其他节点。
- 如果另一个节点上的当前版本与主路由引擎上的当前版本不同,则在警告用户后将重新启动另一个节点。
request system software sync all-versions
如果同步的前两个步骤成功,则该命令成功。如果步骤 3 失败,将显示一条警告消息。要使版本匹配,可以使用操作模式命令删除request system software delete
额外的版本。
要查看设备上可用的软件版本,请使用 show system software list
命令。
如果将具有不同软件版本的路由引擎插入系统,则路由引擎将保留在系统外部并生成软件不匹配告警,该告警指定路由引擎名称和该路由引擎上的软件版本,类似于以下内容: Software Version Mismatch on re1:junos-evo-install-ptx-x86-64-20.4R2.6-EVO.
要清除此告警,请使用 request system software sync all-versions
命令同步软件。新路由引擎重新启动后,即加入系统。
user@host-re0> show system alarms 2 alarms currently active Alarm time Class Description 2021-04-19 16:02:26 PDT Major Re1 Node unreachable 2021-04-19 16:04:46 PDT Major Software Version Mismatch on re1:junos-evo-install-ptx-x86-64-20.4R2.6-EVO
对于该 current
选项,在将控制切换到新插入的路由引擎之前,请使用操作模式命令的输出比较两个路由引擎上安装的映像并确保它们相同,确保所有映像都同步到新插入的 show system software list
路由引擎。在将控制权切换到新插入的路由引擎之前,必须确保系统已完成后台所有映像的同步,以确保新插入的路由引擎不会从现有路由引擎中删除任何映像。
所需权限级别
视图
示例输出
请求系统软件同步电流
user@host-re0> request system software sync current warning: Erase software versions present on the other RE node and sync software versions from Master RE node Erase software versions on the other RE and sync from Master RE? [yes,no] (no) yes The current version on master RE - junos-evo-install-ptx-x86-64-20.4R2.14-EVO The current version on other RE - junos-evo-install-ptx-x86-64-20.4R2.13-EVO Transfer software version files for junos-evo-install-ptx-x86-64-20.4R2.14-EVO to node re1... Sync in progress for /soft/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... /data/var/home/root Sync in progress for /data/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/config/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/etc/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/var_db/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/usr_conf/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/usr_evo_share/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/var_pfe/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Sync in progress for /data/var_etc/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... Setting up software version files for junos-evo-install-ptx-x86-64-20.4R2.14-EVO on re1 Sync in progress /data/var/home... Software sync completed for junos-evo-install-ptx-x86-64-20.4R2.14-EVO Warning: Rebooting re1 Please run 'show system software list' to see SW versions installed in all nodes
请求系统软件同步回滚(版本已相同)
user@host> request system software sync rollback warning: Erase software versions present on the other RE node and sync software versions from Master RE node Erase software versions on the other RE and sync from Master RE? [yes,no] (no) yes The rollback version on master RE - junos-evo-install-ptx-x86-64-20.4R2.14-EVO The rollback version on other RE - junos-evo-install-ptx-x86-64-20.4R2.14-EVO Warning: The rollback version junos-evo-install-ptx-x86-64-20.4R2.14-EVO matches to rollback version on other-RE. Skipping software sync Software sync completed for junos-evo-install-ptx-x86-64-20.4R2.14-EVO Please run 'show system software list' to see SW versions installed in all nodes
请求系统软件同步所有版本
user@host-re0 request system software sync all-versions warning: Erase software versions present on the other RE node and sync software versions from Master RE node Erase software versions on the other RE and sync from Master RE? [yes,no] (no) ...yes Cleanup old software versions on re1 The current version on master RE - junos-evo-install-ptx-x86-64-20.4R2.14-EVO The current version on other RE - junos-evo-install-ptx-x86-64-20.4R2.13-EVO Sync in progress for /soft/junos-evo-install-ptx-x86-64-20.4R2.14-EVO... The rollback version on master RE - junos-evo-install-ptx-x86-64-20.4R2.13-EVO The rollback version on other RE - junos-evo-install-ptx-x86-64-20.4R2.14-EVO Sync in progress for /soft/junos-evo-install-ptx-x86-64-20.4R2.13-EVO... Software sync completed for all versions Warning: Rebooting re1 Please run 'show system software list' to see SW versions installed in all nodes
发布信息
在 Junos OS 演化版 18.3R1 中引入的命令。