You are on page 1of 16

Guide for Rommon recovery, IOS UP-gradation & Download file

from flash of Router & Switch(Cisco & Huawei)

At first we need to know by which procedure we can recover rommon. We can recover rommon
using different procedure for different devices. Here we need TFTP server(.exe file 32bit/64bit),
desire IOS image file(.bin/.extbin file), 2 types of Console(RS232 & USBv2.0-to-USBv2.0), UTP(RJ45-
to-RJ45)Cable & pen drive(USB v2.0). Rommon recovery procedure is just for booting. Rommon
recovery procedure will be complete when IOS will be uploaded to flash of Router.

Use of Tools for rommon recovery & IOS upgradation

Laptop : Need to configure IP at LAN port(1.1.1.0/24 except 1.1.1.1 which


We used for Router Mgmnt Port)
TFTP server : Need to run TFTP server.
RS232 console : Connect Laptop to Routers Console port via Laptop’s USB Port.
USBv2.0-to-USBv2.0 : Connect Laptop to Routers USB Console Port via Laptop’s USB Port.
UTP (RJ45-to-RJ45)Cable : Connect Laptop to Routers Mgmnt. Port via Laptop’s LAN Port.
Pen drive(USB v2.0) : Boot IOS using Routers USB Memory Port via Pen drive(USB v2.0).

Let’s need to know for which type of device which tools need to recover rommon, locally IOS up
gradation & IOS up gradation while at network.

1) Cisco A901-12C-(F-D/FT-D) can recover rommon only using UTP(RJ45-to-RJ45)Cable & RS232
Console.

2) Cisco A901-6CZ-(F-A/F-D/FT-D) can recover rommon using UTP(RJ45-to-RJ45)Cable/pen drive(USB


v2.0) & RS232 Console but locally IOS up gradation need UTP(RJ45-to-RJ45)Cable.

3) Cisco ASR-902/Cisco ASR-903/Cisco ASR-920-(24SZ-IM/12CZ-D) can recover rommon only using Pen
drive(USB v2.0) & RS232/USBv2.0-to-USBv2.0 Console but for locally IOS up gradation need
UTP(RJ45-to-RJ45)Cable.

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
TFTP Server Settings

Step 1: Click to Settings.


Step 2: Click to TFTP.
Step 3: Click to Brows & select TFTP-Root folder which we have to store at ”C” Drive.
Step 4: Select OK to complete.
Step 5: Click Drop-Down Button to select IP which we used at LAN.

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Rommon recovery using RS232 Console & UTP(RJ45-to-RJ45)Cable
for IOS(ASR901 series)

rommon 1 > IP_ADDRESS=1.1.1.1


rommon 2 > IP_SUBNET_MASK=255.255.255.0
rommon 3 > DEFAULT_GATEWAY=1.1.1.1
rommon 4 > TFTP_SERVER=1.1.1.2 //Laptop LAN or TFTP IP Address //
rommon 5 > TFTP_FILE=asr901-universalk9-mz.154-3.S9.bin //Image file to BOOT//
rommon 6 > tftpdnld

IP_ADDRESS: 1.1.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 1.1.1.1
TFTP_SERVER: 1.1.1.2
TFTP_FILE: asr901-universalk9-mz.154-3.S9.bin
Performing tftpdnld over Ethernet.
Interface link state up.
Receiving asr901-universalk9-mz.154-3.S9.bin from 1.1.1.2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
program load complete, entry point: 0x2000000, size: 0x276fd90
Self decompressing the image :
##################################################################################
# [OK]
May 12 08:40:21.799: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
changed state to up

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Rommon recovery using pen drive (USB v2.0) for both IOS
XE(ASR902, ASR903, ASR920 Series) & IOS(ASR901-6CZ Series)

Step-1
Need a pen drive & format that at FAT/FAT-32 system.

Step-2
Need to copy desire IOS to pen drive which we want to use for BOOT.

Step-3
Need to connect pen drive to Router at USB Memory

Step-4
rommon 1 > dev usb0:
Devices in device table:
id name
bootflash: Internal disk
usb0: USB disk //For ASR900 & ASR920 series//
usbflash0: USB disk //For ASR901-6CZ//

rommon 2 > dir usb0: //For ASR900 & ASR920 series// or dir usbflash0: //For ASR901-6CZ series//
Checking USB devices..
USB EHCI 1.00
scanning USB bus for devices..
2 USB Device(s) found
scanning bus for storage devices...

USB Mass Storage device detected


1 Storage Device(s) found
File System: FAT32

3 0 drw- System Volume Information


6 333554684 -rw- asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin

rommon 3 > boot usb0:asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin


Located asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin, start cluster is 6
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
Image loaded
Boot image size = 333554684 (0x13e1a3fc) bytes
Passing control to the main image.
*May 12 19:15:49.641: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0,
changed state to up.
Authentication passed

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
IOS UP Gradation using RS232 Console & UTP(RJ45-to-RJ45)Cable
Locally for IOS(ASR901 Series) after Rommon recovery
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int FastEthernet0/0 //For ASR901 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface fastEthernet 0/0 //For ASR901 series//
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config)#end
May 12 08:40:51.963: %SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]

Router#copy tftp: flash:


Address or name of remote host []? 1.1.1.2 //Laptop LAN or TFTP IP Address//
Source filename []? asr901-universalk9-mz.154-3.S9.bin //Image file to BOOT//
Destination filename [asr901-universalk9-mz.154-3.S9.bin]?
Accessing tftp://1.1.1.2/asr901-universalk9-mz.154-3.S9.bin...
Loading asr901-universalk9-mz.154-3.S9.bin from 1.1.1.2 (via FastEthernet0/0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 41352916 bytes]
Verifying checksum... OK (0xC431)
41352916 bytes copied in 133.004 secs (310915 bytes/sec)

Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)
Router #delete flash:asr901-universalk9-mz.154-3.S9.bin

Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin[deleted]
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]

Router# squeeze flash:


Squeeze operation may take a while. Continue? [confirm]
squeeze in progress...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Squeeze of flash complete
Chanchal Kumar Biswas
IP Transmission O&M
Fiber@Home Ltd.
Router#sho flash:
System flash directory:
File Length Name/status
1 41352916 asr901-universalk9-mz.154-3.S9.bin
[41352980 bytes used, 59048168 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)
Router#

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
IOS UP Gradation using USBv2.0-to-USBv2.0 & UTP(RJ45-to-
RJ45)Cable Locally for IOS XE(ASR902, ASR903, ASR920 Series) after
Rommon recovery

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0 //For ASR900 & ASR920 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface gigabitEthernet 0 //For ASR902, ASR903 & ASR920 series//
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config-if)#end
*May 12 19:16:47.537: %SYS-5-CONFIG_I: Configured from console by console

Router#copy tftp: flash:


Address or name of remote host []? 1.1.1.2 //Laptop or TFTP IP Address//
Source filename []? asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin //Image file to BOOT//
Destination filename [asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin]?
Accessing tftp://1.1.1.2/asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin...
Loading asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin from 1.1.1.2 (via GigabitEthernet0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 333554684 bytes]
333554684 bytes copied in 338.212 secs (986230 bytes/sec)

Router#sho flash: | in extbin


659 333554684 May 12 2018 19:22:54 +00:00 /bootflash/asr920-universalk9_npe.03.18.03.SP.156-
2.SP3-extbin
Router# config t
Router(config)#boot-start-marker
Router(config)#boot system bootflash:/asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin
Router(config)#boot-end-marker
Router(config)#exit
Router#wr

Router#verify /md5 bootflash:asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin


.........................................................................................Done!
verify /md5 (bootflash:asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin) =
34215a6dffe168bff00fee920ebce0ef

Router#delete bootflash:asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin
Delete filename [asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin]?
Delete bootflash:/asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin? [confirm]
Router#

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
IOS UP Gradation using Loopback IP when reachable via Network
for IOS(ASR901 Series)
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int FastEthernet0/0 //For ASR901 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface fastEthernet 0/0 //For ASR901 series//
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config)#end
May 12 08:40:51.963: %SYS-5-CONFIG_I: Configured from console by console
Router#wr
Building configuration...
[OK]

Router#copy tftp: flash:


Address or name of remote host []? 10.1.0.85 //Laptop LAN or TFTP IP Address//
Source filename []? asr901-universalk9-mz.154-3.S9.bin //Image file to BOOT//
Destination filename [asr901-universalk9-mz.154-3.S9.bin]?
Accessing tftp://10.1.0.85/asr901-universalk9-mz.154-3.S9.bin...
Loading asr901-universalk9-mz.154-3.S9.bin from 10.1.10.85 (via VLAN10):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 41352916 bytes]
Verifying checksum... OK (0xC431)
41352916 bytes copied in 133.004 secs (310915 bytes/sec)

Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)
Router #delete flash:asr901-universalk9-mz.154-3.S9.bin

Router#sho flash:
System flash directory:
File Length Name/status
1 37169480 asr901-universalk9-mz.153-3.S.bin[deleted]
2 41352916 asr901-universalk9-mz.154-3.S9.bin
[78522460 bytes used, 21878752 available, 100401148 total]

Router# squeeze flash:


Squeeze operation may take a while. Continue? [confirm]
squeeze in progress...eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Squeeze of flash complete
Chanchal Kumar Biswas
IP Transmission O&M
Fiber@Home Ltd.
Router#sho flash:
System flash directory:
File Length Name/status
1 41352916 asr901-universalk9-mz.154-3.S9.bin
[41352980 bytes used, 59048168 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)
Router#

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
IOS UP Gradation using Loopback IP when reachable via Network
for IOS XE(ASR902, ASR903, ASR920 Series)

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0 //For ASR900 & ASR920 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface Loopback1
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config-if)#end
*May 12 19:16:47.537: %SYS-5-CONFIG_I: Configured from console by console

Router#copy tftp: flash:


Address or name of remote host []? 10.1.0.85 //Laptop or TFTP IP Address//
Source filename []? asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin //Image file to BOOT//
Destination filename [asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin]?
Accessing tftp://10.1.0.85/asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin...
Loading asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin from 10.1.0.85 (via BDI853):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 333554684 bytes]
333554684 bytes copied in 338.212 secs (986230 bytes/sec)

Router#sho flash: | in extbin


659 333554684 May 12 2018 19:22:54 +00:00 /bootflash/asr920-universalk9_npe.03.18.03.SP.156-
2.SP3-extbin
Router# config t
Router(config)#boot-start-marker
Router(config)#boot system bootflash:/asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin
Router(config)#boot-end-marker
Router(config)#exit
Router#wr

Router#verify /md5 bootflash:asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin


.........................................................................................Done!
verify /md5 (bootflash:asr920-universalk9_npe.03.18.03.SP.156-2.SP3-extbin) =
34215a6dffe168bff00fee920ebce0ef

Router#delete bootflash:asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin
Delete filename [asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin]?
Delete bootflash:/asr920-universalk9_npe.03.18.01.S.156-2.S1-std.bin? [confirm]
Router#

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Download files from Flash using TFTP via Loopback IP when
reachable via Network for IOS XE & IOS

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitEthernet 0 //For ASR900 & ASR920 series//
Or
Router(config)#int FastEthernet0/0 //For ASR901 series//
Router(config-if)#ip address 1.1.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#ip tftp source-interface Loopback1
Router(config)#ip tftp blocksize 1000 //For define Upload speed from TFTP to Router//
Router(config-if)#end
*May 12 19:16:47.537: %SYS-5-CONFIG_I: Configured from console by console

Router #show flash:

System flash directory:


File Length Name/status
1 41237256 asr901-universalk9-mz.154-3.S2.bin
2 1178 CAT1930U1TS_1438023522.lic
3 1171 CAT1930U1TS_201701240254295520.lic
[41239800 bytes used, 59161348 available, 100401148 total]
98304K bytes of processor board System flash (Read/Write)

Router #copy flash: tftp:


Source filename []? CAT1930U1TS_1438023522.lic //Required file to Upload at TFTP//
Address or name of remote host []? 10.1.0.85 //Laptop or TFTP IP Address//
Destination filename [CAT1930U1TS_1438023522.lic]?
!!
1178 bytes copied in 0.056 secs (21036 bytes/sec)
Router #

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Downloading files Remotely from TFTP to Flash at HUAWEI Router

<Huawei> tftp -i LoopBack 1 10.1.0.85 get tt.txt //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Downloading the file from the remote TFTP server. Please wait...|
TFTP: Downloading the file successfully.
826 bytes received in 1 second.

<Huawei>dir
Directory of cfcard:/

Idx Attr Size(Byte) Date Time FileName


0 drw- - Jan 07 2002 06:29:14 logfile
1 -rw- 27,830,022 Jun 29 2013 16:15:18 v200r002c00spc300-atn-910i.cc
2 -rw- 5,120 Jan 01 2002 04:51:18 bcf.txt
3 -rw- 1,826 Jan 07 2002 06:29:20 private-data.txt
4 -rw- 2,250 Jan 01 2002 04:51:18 vrpcfg.zip
5 drw- - Jun 29 2013 16:19:02 pmdata
6 drw- - Jun 29 2013 16:19:12 piccc
7 -rw- 8 Jan 07 2002 06:29:10 $_drvpatstate_reboot
8 -rw- 4 Jun 29 2013 16:19:14 snmpnotilog.txt
9 -rw- 328 Apr 12 2017 19:13:08 hostkey_dsa
10 drw- - May 18 2017 20:17:30 aaa
11 drw- - Jun 29 2013 16:43:48 mplstpoam
12 -rw- 36 Jul 03 2013 12:01:04 $_patchstate_reboot
13 -rw- 3,684 Jul 03 2013 12:01:04 $_patch_history
14 -rw- 2,166 Jul 03 2013 12:00:54 2102310myl10d6000028.dat
15 -rw- 1,268 Apr 12 2017 19:33:14 rsahostkey.dat
16 -rw- 548 Apr 12 2017 19:33:16 rsaserverkey.dat
17 -rw- 826 Jan 08 2002 06:37:46 nmc_banner.txt
18 -rw- 826 Jan 08 2002 06:44:32 tt.txt
124,472 KB total (88,996 KB free)

<Huawei>delete cfcard:/nmc_banner.txt
Delete cfcard:/nmc_banner.txt?[Y/N]:y
Info: Deleting file cfcard:/nmc_banner.txt...succeeded.
<Huawei>system-view
[Huawei] header login file cfcard:/tt.txt //For Welcome Warning Message//
[Huawei]quit
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Uploading files to Remote TFTP from Flash at HUAWEI Router

<Huawei>dir
Directory of cfcard:/

Idx Attr Size(Byte) Date Time FileName


0 drw- - Jan 07 2002 06:29:14 logfile
1 -rw- 27,830,022 Jun 29 2013 16:15:18 v200r002c00spc300-atn-910i.cc
2 -rw- 5,120 Jan 01 2002 04:51:18 bcf.txt
3 -rw- 1,826 Jan 07 2002 06:29:20 private-data.txt
4 -rw- 2,250 Jan 01 2002 04:51:18 vrpcfg.zip
5 drw- - Jun 29 2013 16:19:02 pmdata
6 drw- - Jun 29 2013 16:19:12 piccc
7 -rw- 8 Jan 07 2002 06:29:10 $_drvpatstate_reboot
8 -rw- 4 Jun 29 2013 16:19:14 snmpnotilog.txt
9 -rw- 328 Apr 12 2017 19:13:08 hostkey_dsa
10 drw- - May 18 2017 20:17:30 aaa
11 drw- - Jun 29 2013 16:43:48 mplstpoam
12 -rw- 36 Jul 03 2013 12:01:04 $_patchstate_reboot
13 -rw- 3,684 Jul 03 2013 12:01:04 $_patch_history
14 -rw- 2,166 Jul 03 2013 12:00:54 2102310myl10d6000028.dat
15 -rw- 1,268 Apr 12 2017 19:33:14 rsahostkey.dat
16 -rw- 548 Apr 12 2017 19:33:16 rsaserverkey.dat
17 -rw- 826 Jan 08 2002 06:44:32 tt.txt
124,472 KB total (88,996 KB free)

124,480 KB total (87,904 KB free)


<Huawei>tftp -i LoopBack 1 10.1.0.85 put patch_vrp.pat //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Uploading the file to the remote TFTP server. Please wait...\
TFTP: Uploading the file successfully.
163980 bytes send in 4 seconds.
<Huawei>

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Downloading files from Remote TFTP to Flash at HUAWEI SWITCH

<Huawei>tftp -i Vlanif 3 10.1.0.85 get nmc_banner.txt //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Downloading the file from the remote TFTP server. Please wait...
100%
TFTP: Downloading the file successfully.
826 byte(s) received in 1 second(s).

<Huawei>dir
Directory of flash:/

Idx Attr Size(Byte) Date Time FileName


0 drw- - Sep 14 2015 19:28:59 dhcp
1 drw- - Sep 14 2015 19:28:37 user
2 -rw- 36 Sep 14 2015 19:29:22 $_patchstate_reboot
3 -rw- 3,684 Sep 14 2015 19:29:22 $_patch_history
4 drw- - Apr 25 2018 22:20:09 logfile
5 -rw- 4,477 May 17 2018 19:45:07 vrpcfg.zip
6 -rw- 72,029,468 Jul 20 2015 17:38:46 s5320ei-v200r007c00spc500.cc
7 drw- - Sep 14 2015 19:28:37 pmdata
8 -rw- 836 Nov 23 2016 17:00:23 rr.bak
9 -rw- 836 Nov 23 2016 17:00:23 rr.dat
10 -rw- 5,024 May 15 2018 11:59:30 private-data.txt
11 drw- - Nov 23 2016 15:36:02 localuser
12 -rw- 4 Nov 23 2016 15:32:30 snmpnotilog.txt
13 -rw- 61,921 Jul 20 2015 17:41:57 s5320ei-v200r007sph001.pat
14 -rw- 1,360,236 Nov 23 2016 17:00:30 help.web
15 -rw- 826 May 17 2018 19:54:08 nmc_banner.txt

352,888 KB total (267,832 KB free)


<Huawei>system-view
[Huawei]header login file flash:/nmc_banner.txt //For Welcome Warning Message//
[Huawei]quit
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Uploading files to Remote TFTP from Flash at HUAWEI Switch

<Huawei>dir
Directory of flash:/

Idx Attr Size(Byte) Date Time FileName


0 drw- - Sep 14 2015 19:28:59 dhcp
1 drw- - Sep 14 2015 19:28:37 user
2 -rw- 36 Sep 14 2015 19:29:22 $_patchstate_reboot
3 -rw- 3,684 Sep 14 2015 19:29:22 $_patch_history
4 drw- - Apr 25 2018 22:20:09 logfile
5 -rw- 4,477 May 17 2018 19:45:07 vrpcfg.zip
6 -rw- 72,029,468 Jul 20 2015 17:38:46 s5320ei-v200r007c00spc500.cc
7 drw- - Sep 14 2015 19:28:37 pmdata
8 -rw- 836 Nov 23 2016 17:00:23 rr.bak
9 -rw- 836 Nov 23 2016 17:00:23 rr.dat
10 -rw- 5,024 May 15 2018 11:59:30 private-data.txt
11 drw- - Nov 23 2016 15:36:02 localuser
12 -rw- 4 Nov 23 2016 15:32:30 snmpnotilog.txt
13 -rw- 61,921 Jul 20 2015 17:41:57 s5320ei-v200r007sph001.pat
14 -rw- 1,360,236 Nov 23 2016 17:00:30 help.web
15 -rw- 826 May 17 2018 19:54:08 nmc_banner.txt

352,888 KB total (267,832 KB free)

<Huawei>tftp -i Vlanif 3 10.1.0.85 put private-data.txt //Laptop or TFTP IP Address & File name//
Info: Transfer file in binary mode.
Uploading the file to the remote TFTP server. Please wait...
100%
TFTP: Uploading the file successfully.
5024 byte(s) sent in 1 second(s).
<Huawei>

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.
Download files from Flash using TFTP via Loopback IP when
reachable via Network for IOS XR(ASR9K Series)

RP/0/RSP0/CPU0:Router#
RP/0/RSP0/CPU0:Router(config)# tftp client vrf OM_FH source-interface Loopback0
RP/0/RSP0/CPU0:Router(config)#tftp client source-interface loopback 0
RP/0/RSP0/CPU0:Router(config)#tftp ipv4 server homedir harddisk:
RP/0/RSP0/CPU0:Router(config)#commit
Mon May 21 04:00:31.913 Dhaka
RP/0/RSP0/CPU0:Router(config)#end
RP/0/RSP0/CPU0:Router#copy harddisk: tftp:
Mon May 21 04:00:55.077 Dhaka
Source filename [/harddisk:]? ASR9K-iosxr-px-k9-6.2.3.tar //Required file to Upload at TFTP//
Address or name of remote host []?10.1.0.85 //Laptop or TFTP IP Address//
Destination filename [ASR9K-iosxr-px-k9-6.2.3.tar]?
Writing tftp://10.1.0.85/ASR9K-iosxr-px-k9-6.2.3.tar
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
1635184640 bytes copied in 5925 sec ( 275940)bytes/sec
RP/0/RSP0/CPU0:Router#

Chanchal Kumar Biswas


IP Transmission O&M
Fiber@Home Ltd.

You might also like