取消
显示结果 
搜索替代 
您的意思是: 
cancel
18306
查看次数
846
有帮助
18
回复

IOS-XR升级问题

Adinm
Level 11
Level 11
我升级IOS-XR,先把PIE传到Disk0的根目录下,然后再admin模式下install add disk0:XXX sy 就一直报错,但是如果是install add tftp://x.x.x.x/xxx sy就没有错,为何PIE不能从disk0里面install add,如果能再disk0里面add的,命令又是怎么样的?谢谢!
1 个已接受解答

已接受的解答

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-13 11:04
(admin)#install activate disk0:/asr9k-mini-px.pie-6.3.2
started by user 'cisco' via CLI at 19:33 ...

先执行add加载操作,再执行activate激活操作
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

在原帖中查看解决方案

18 条回复18

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-13 11:04
(admin)#install activate disk0:/asr9k-mini-px.pie-6.3.2
started by user 'cisco' via CLI at 19:33 ...

先执行add加载操作,再执行activate激活操作
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Rockyw
Spotlight
Spotlight
本帖最后由 Rocky 于 2018-7-11 23:08 编辑
直接安装PIE文件,如果你的版本是A,要升级B,那么直接active B的PIE即可,但要注意,A和B的PIE要保持一致才能安装,否则会有兼容
RP/0/RP0/CPU0: LAB-CRS-1(admin)#install activate disk0:hfr-mini-px-4.2.4 disk0:hfr-mgbl-px-4.2.4 sync
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Adinm
Level 11
Level 11
Rocky 发表于 2018-7-11 23:04
直接安装PIE文件,如果你的版本是A,要升级B,那么直接active B的PIE即可,但要注意,A和B的PIE要保持一致 ...

谢谢您,明天上午我到公司试试。

Adinm
Level 11
Level 11
Rocky 发表于 2018-7-11 23:04
直接安装PIE文件,如果你的版本是A,要升级B,那么直接active B的PIE即可,但要注意,A和B的PIE要保持一致 ...

不行呀,
#install activate disk0:asr9k-mini-px.pie-6.3.2 synchronous
Thu Jul 12 21:03:36.991 UTC
Install operation 41 '(admin) install activate disk0:asr9k-mini-px.pie-6.3.2 synchronous'
started by user 'cisco' via CLI at 21:03:37 UTC Thu Jul 12 2018.
Error: Cannot activate the following package because it could not be found:
Error: disk0:asr9k-mini-px.pie-6.3.2
Error: Suggested steps to resolve this:
Error: - check the name of the package being activated.
Error: - check the set of inactive packages using '(admin) show install inactive'.
Error: - add the missing packages to the router, if not present, using '(admin) install
Error: add'.
Error: Cannot proceed with the activation as there are no packages to activate
Error: Suggested steps to resolve this:
Error: - check the names of the packages being activated.
Install operation 41 failed at 21:03:37 UTC Thu Jul 12 2018.

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-12 12:29
不行呀,
#install activate disk0:asr9k-mini-px.pie-6.3.2 synchronous
Thu Jul 12 21:03:36.991 UT ...

看清楚一点,上面命令后面跟的是两个pie文件,一个是之前的,一个是升级后的。你用install activate ?看看命令的用法。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-12 12:29
不行呀,
#install activate disk0:asr9k-mini-px.pie-6.3.2 synchronous
Thu Jul 12 21:03:36.991 UT ...

Error: Cannot activate the following package because it could not be found:
文件不存在是怎么回事?是写少了某个字母了吗?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Adinm
Level 11
Level 11
Rocky 发表于 2018-7-12 13:02
Error: Cannot activate the following package because it could not be found:
文件不存在是怎么回 ...

RP/0/RSP0/CPU0:ASR9006-F#dir disk0:
Thu Jul 12 22:59:44.832 UTC
Directory of disk0:
48898 -r-- 3127548 Sat Apr 14 01:38:54 2018 .bitmap
17 -r-- 2465792 Sat Apr 14 01:38:54 2018 .inodes
18 -rw- 0 Sat Apr 14 01:38:54 2018 .boot
19 -rw- 0 Sat Apr 14 01:38:54 2018 .altboot
48903 drwx 4096 Sat Apr 14 01:38:56 2018 LOST.DIR
48904 -r-- 114688 Sat Apr 14 01:38:54 2018 .longfilenames
48905 drwx 4096 Sat Apr 14 01:51:02 2018 config
48906 drwx 4096 Sat Apr 14 01:38:59 2018 eem_rdsfs
48964 drwx 4096 Fri Jun 22 01:28:18 2018 asr9k-scfclient-5.3.4
48908 drwx 4096 Thu Jul 12 21:02:47 2018 instdb
30926986 drwx 4096 Fri Jun 22 01:28:18 2018 asr9k-diags-supp-5.3.4
30927008 drwx 4096 Fri Jun 22 01:28:19 2018 asr9k-ce-5.3.4
49026 drwx 4096 Fri Jun 22 01:29:24 2018 asr9k-fwding-5.3.4
981902 drwx 4096 Fri Jun 22 01:31:05 2018 asr9k-base-5.3.4
2507368 drwx 4096 Fri Jun 22 01:31:07 2018 asr9k-os-mbi-5.3.4
2507389 drwx 4096 Fri Jun 22 01:31:11 2018 iosxr-gcp-fwding-5.3.4
4419506 drwx 4096 Fri Jun 22 01:31:20 2018 asr9k-cpp-5.3.4
4564824 drwx 4096 Fri Jun 22 01:31:23 2018 iosxr-common-pd-fib-5.3.4
4564889 drwx 4096 Fri Jun 22 01:31:30 2018 iosxr-ce-5.3.4
4808650 drwx 4096 Fri Jun 22 01:31:30 2018 iosxr-diags-5.3.4
4808691 drwx 4096 Fri Jun 22 01:31:59 2018 iosxr-routing-5.3.4
5251664 drwx 4096 Fri Jun 22 01:33:13 2018 iosxr-fwding-5.3.4
6956731 drwx 4096 Fri Jun 22 01:34:34 2018 iosxr-infra-5.3.4
8784846 drwx 4096 Fri Jun 22 01:34:35 2018 asr9k-mini-px-5.3.4
48923 -rw- 30050 Thu Jul 12 01:21:42 2018 sam_certdb
48924 -rw- 126 Thu Jul 12 01:21:42 2018 sam_crldb
48925 -rw- 0 Sat Apr 14 01:47:34 2018 umass.log
48926 drwx 4096 Sat Apr 14 01:51:12 2018 sm_rdsfs
48927 drwx 4096 Sat Apr 14 01:50:15 2018 rem_proxy
48928 drwx 4096 Sat Apr 14 01:50:15 2018 aaa
48929 drwx 4096 Sat Apr 14 01:50:16 2018 onepk_cli_rdsfs
48930 drwx 4096 Sat Apr 14 01:50:56 2018 license
48931 drwx 4096 Sat Apr 14 01:51:01 2018 snmp
48932 drwx 4096 Sat Apr 14 01:51:12 2018 var
48933 drwx 4096 Sat Apr 14 01:51:12 2018 virtual-instance
48934 drwx 4096 Thu Jul 12 01:16:20 2018 pkg_v3_temp
48935 drwx 4096 Sat Apr 14 01:51:18 2018 sdk_python
48936 drwx 4096 Sat Apr 14 01:53:31 2018 np
8784859 drwx 4096 Fri Jun 22 03:26:13 2018 asr9k-os-mbi-5.3.4.CSCvf33621-1.0.0
8784874 drwx 4096 Fri Jun 22 03:26:13 2018 iosxr-fwding-5.3.4.CSCvf33621-1.0.0
8784965 drwx 4096 Fri Jun 22 03:26:14 2018 iosxr-infra-5.3.4.CSCvf33621-1.0.0
8785028 drwx 4096 Fri Jun 22 03:26:14 2018 asr9k-px-5.3.4.CSCvf33621-1.0.0
8785046 drwx 4096 Fri Jun 22 03:54:08 2018 asr9k-os-mbi-5.3.4.CSCvf24118-1.0.0
8785060 drwx 4096 Fri Jun 22 03:54:20 2018 asr9k-base-5.3.4.CSCvf24118-1.0.0
12207971 drwx 4096 Fri Jun 22 03:54:21 2018 iosxr-infra-5.3.4.CSCvf24118-1.0.0
12208084 drwx 4096 Fri Jun 22 03:54:35 2018 asr9k-fpd-5.3.4.CSCvf24118-1.0.0
12389278 drwx 4096 Fri Jun 22 03:54:35 2018 asr9k-px-5.3.4.CSCvf24118-1.0.0
12389294 drwx 4096 Fri Jun 22 03:55:25 2018 iosxr-infra-5.3.4.CSCvb45094-1.0.0
12389327 drwx 4096 Fri Jun 22 03:55:25 2018 asr9k-px-5.3.4.CSCvb45094-1.0.0
48961 drwx 4096 Fri Jun 22 19:14:42 2018 asr9k-os-mbi-5.3.4.CSCvf74903-1.0.0
12389364 drwx 4096 Fri Jun 22 19:14:43 2018 iosxr-fwding-5.3.4.CSCvf74903-1.0.0
12733252 drwx 4096 Fri Jun 22 19:14:43 2018 iosxr-infra-5.3.4.CSCvf74903-1.0.0
12733327 drwx 4096 Fri Jun 22 19:14:43 2018 asr9k-px-5.3.4.CSCvf74903-1.0.0
12389334 drwx 4096 Thu Jul 12 00:40:14 2018 iosxr-infra-6.2.3
30927859 drwx 4096 Thu Jul 12 00:40:43 2018 iosxr-fwding-6.2.3
30933731 drwx 4096 Thu Jul 12 00:40:48 2018 iosxr-routing-6.2.3
30934490 drwx 4096 Thu Jul 12 00:40:49 2018 iosxr-diags-6.2.3
30934529 drwx 4096 Thu Jul 12 00:40:52 2018 iosxr-ce-6.2.3
30935119 drwx 4096 Thu Jul 12 00:40:53 2018 iosxr-gcp-fwding-6.2.3
30935208 drwx 4096 Thu Jul 12 00:40:53 2018 iosxr-common-pd-fib-6.2.3
30935275 drwx 4096 Thu Jul 12 00:40:57 2018 asr9k-os-mbi-6.2.3
30935290 drwx 4096 Thu Jul 12 01:14:59 2018 asr9k-base-6.2.3
30939030 drwx 4096 Thu Jul 12 00:41:25 2018 asr9k-fwding-6.2.3
30940839 drwx 4096 Thu Jul 12 00:41:25 2018 asr9k-diags-supp-6.2.3
30940858 drwx 4096 Thu Jul 12 00:41:26 2018 asr9k-scfclient-6.2.3
30940863 drwx 4096 Thu Jul 12 00:41:28 2018 asr9k-cpp-6.2.3
30941268 drwx 4096 Thu Jul 12 00:41:29 2018 asr9k-ce-6.2.3
30941337 drwx 4096 Thu Jul 12 00:41:29 2018 asr9k-mini-px-6.2.3
9434017 drwx 4096 Thu Jul 12 01:21:41 2018 iosxr-mpls-6.2.3
31445053 drwx 4096 Thu Jul 12 01:21:41 2018 asr9k-mpls-px-6.2.3
13459169 drwx 4096 Thu Jul 12 03:55:01 2018 cfgmgr
30941378 -rwx 499823607 Thu Jul 12 22:53:02 2018 asr9k-mini-px.pie-6.3.2
RP/0/RSP0/CPU0:ASR9006(admin)#install activate disk0:asr9k-mini-px-6.2.3 disk0:asr9k-mini-px.pie-6.3.2 synchronous
Thu Jul 12 22:57:22.931 UTC
Install operation 43 '(admin) install activate disk0:asr9k-mini-px-6.2.3
disk0:asr9k-mini-px.pie-6.3.2 synchronous' started by user 'cisco' via CLI at 22:57:23 UTC Thu
Jul 12 2018.
Info: Cannot activate the following packages as they are already active on the router:
Info:
Info: disk0:asr9k-mini-px-6.2.3
Info: disk0:asr9k-ce-6.2.3
Info: disk0:asr9k-cpp-6.2.3
Info: disk0:asr9k-scfclient-6.2.3
Info: disk0:asr9k-diags-supp-6.2.3
Info: disk0:asr9k-fwding-6.2.3
Info: disk0:asr9k-base-6.2.3
Info: disk0:asr9k-os-mbi-6.2.3
Info: disk0:iosxr-common-pd-fib-6.2.3
Info: disk0:iosxr-gcp-fwding-6.2.3
Info: disk0:iosxr-ce-6.2.3
Info: disk0:iosxr-diags-6.2.3
Info: disk0:iosxr-routing-6.2.3
Info: disk0:iosxr-fwding-6.2.3
Info: disk0:iosxr-infra-6.2.3
Info:
Error: Cannot activate the following package because it could not be found:
Error: disk0:asr9k-mini-px.pie-6.3.2
Error: Suggested steps to resolve this:
Error: - check the name of the package being activated.
Error: - check the set of inactive packages using '(admin) show install inactive'.
Error: - add the missing packages to the router, if not present, using '(admin) install
Error: add'.
Error: Cannot proceed with the activation as there are no packages to activate
Error: Suggested steps to resolve this:
Error: - check the names of the packages being activated.
Install operation 43 failed at 22:57:23 UTC Thu Jul 12 2018.

Rockyw
Spotlight
Spotlight
本帖最后由 Rocky 于 2018-7-12 22:31 编辑
asdm 发表于 2018-7-12 14:23
RP/0/RSP0/CPU0:ASR9006-F#dir disk0:
Thu Jul 12 22:59:44.832 UTC

31445053 drwx 4096 Thu Jul 12 01:21:41 2018 asr9k-mpls-px-6.2.3 #这个是目录
13459169 drwx 4096 Thu Jul 12 03:55:01 2018 cfgmgr
30941378 -rwx 499823607 Thu Jul 12 22:53:02 2018 asr9k-mini-px.pie-6.3.2 #这个是文件
你没加载这个asr9k-mini-px.pie-6.3.2这个文件呀
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-12 14:23
RP/0/RSP0/CPU0:ASR9006-F#dir disk0:
Thu Jul 12 22:59:44.832 UTC

执行一下show ins ac sum看看Active Packages。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-12 14:23
RP/0/RSP0/CPU0:ASR9006-F#dir disk0:
Thu Jul 12 22:59:44.832 UTC

“disk0:asr9k-mini-px.pie-6.3.2”或者试试在disk0:后面加“/"看看
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-12 14:23
RP/0/RSP0/CPU0:ASR9006-F#dir disk0:
Thu Jul 12 22:59:44.832 UTC

1、首先,将SMU安装包上传到IOS XR路由器本地磁盘
2、加载SMU安装包,加载完成后,SMU安装包会解压到disk0磁盘(相当于windows操作系统C盘)
RP/0/RP0/CPU0:MC-LCC0-40G(admin)#install add harddisk:/smu/hfr-px-5.1.4.CSCur74848.pie synchronous
3、SMU安装包加载成功后,通过命令可以在未激活安装包列表中查看到其信息
RP/0/RP0/CPU0:MC-LCC0-40G(admin)#sho install summary
4、激活SMU安装包,注意选择SMU安装包解压后的路径,应该选择disk0磁盘下的;如果有多个SMU安装包进行激活,可以在一条命令中同时列出多个SMU安装包的信息,而不需要通过多条命令来执行,如果有多个SMU安装包激活时需要重启系统的,则可以避免多次重启系统;
RP/0/RP0/CPU0:MC-LCC0-40G(admin)# install activate disk0:hfr-px-5.1.4.CSCur74848-1.0.0 synchronous
5、SMU安装包激活成功后,可以看到该SMU安装包在激活安装包列表中
RP/0/RP0/CPU0:MC-LCC0-40G(admin)#sho install summary
6、如果是需要重启的SMU安装包,SMU安装包成功激活后,IOSXR系统自动进行重启,重启完成后,还需要执行commit,否则,下次重启该SMU可能失效;而且commit建议在重启完成后执行,如果SMU安装包后系统异常,可以通过重启系统来进行回退操作,如果重启前先执行了commit操作,则需要执行去激活SMU安装包。commit操作如下所示:

RP/0/RP0/CPU0:MC-LCC0-40G(admin)#install commit


7、注意:在执行SMU操作的时候,要确保各板卡和硬件模块状态正常,否则无法执行SMU;例如,有一块板卡故障,则需要先手动关闭板卡,再执行SMU
你可以参与一下,上述信息来自下面的文档
CISCO IOS XR软件补丁(SMU)安装操作
http://blog.51cto.com/qirui/1604862
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !

Adinm
Level 11
Level 11
Rocky 发表于 2018-7-12 22:06
31445053 drwx 4096 Thu Jul 12 01:21:41 2018 asr9k-mpls-px-6.2.3 #这个是目录
13459169 ...

加载显示错误;
RP/0/RSP0/CPU0:ASR9006(admin)#install add disk0:asr9k-mini-px.pie-6.3.2 sync
Fri Jul 13 07:45:41.309 UTC
Install operation 45 '(admin) install add /disk0:asr9k-mini-px.pie-6.3.2
synchronous' started by user 'cisco' via CLI at 07:45:41 UTC Fri Jul 13 2018.
Error: Cannot proceed with the add operation because the pie
Error: '/disk0:asr9k-mini-px.pie-6.3.2' could not be found.
RP/0/RSP0/CPU0:Jul 13 07:45:42.209 : instdir[254]: %INSTALL-INSTMGR-3-INSTALL_OPERATION_USER_ERROR : User error occurred during install operation 45. See 'show install log 45 detail' for more infError: Suggested steps to resolve this:
ormation.
Error: - check the name of the pie.
Error: - check the location of the pie.
Error: - check the file permissions of the pie.
Error: - check network connectivity of the SDR containing the dSC.
Install operation 45 failed at 07:45:42 UTC Fri Jul 13 2018.

Adinm
Level 11
Level 11
Rocky 发表于 2018-7-12 22:08
执行一下show ins ac sum看看Active Packages。

RP/0/RSP0/CPU0:ASR9006-F(admin)#show ins ac sum
Fri Jul 13 07:48:04.855 UTC
Default Profile:
SDRs:
Owner
Active Packages:
disk0:asr9k-mini-px-6.2.3

Rockyw
Spotlight
Spotlight
asdm 发表于 2018-7-12 23:09
加载显示错误;
RP/0/RSP0/CPU0:ASR9006(admin)#install add disk0:asr9k-mini-px.pie-6.3.2 sync
Fri ...

disk0:asr9k-mini-px.pie-6.3.2在disk0:后加个"/"看看
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rockyw | If it solves your problem, please mark as answer. Thanks !
快捷链接