Rescue configuration with exec command in Nokia router

Rescue configuration with exec command in Nokia router

Information Rescue is the daily work of network engineers. When a node fails, a new node needs to be replaced, then the old configuration needs to be reloaded. Instead of typing each command, Nokia router has allowed batch command execution via exec tool. Let’s learn how to Rescue configuration with exec command in Nokia router.

Step 1: Backup configuration and push new configuration into router

Before doing anything, it is best to save the old configuration data. Use FTP (filezilla, WinSCP…) to complete the backup of the old configuration file and put the new configuration file on the device.

Let’s check the bof address configuration in router:

A:AGG# show bof 
===============================================================================
BOF (Memory)
===============================================================================
    primary-image    cf3:/TiMOS-SR-21.10.R3
    primary-config   cf3:/config.cfg
    address          1.1.1.1/24 active
    autonegotiate
    duplex           full
    speed            100
    wait             3
    persist          off
    no li-local-save
    no li-separate
    no fips-140-2
    console-speed    115200
===============================================================================

If bof don’t have address, you can config new one with command bellow:

bof address 1.1.1.1/24 "active"
bof save

Connect RJ45 cable to mngt port in router, setup your PC address 1.1.1.2/24 and try to ping 1.1.1.1.

Set up IP in your PC

After finish setup IP, let’s FTP to get/push config files:

Example use filezilla for FTP.

Push new_config.cfg to the router and take out config.cfg for backup.

Push new_config.cfg to the router and take out config.cfg for backup.

NOTE:

  • The name of the new config file (new_config.cfg) can be changed depending on you, when using the command remember to type the correct path to that file.
  • The extension of the configuration file is required to be .cfg
  • Remove all extra lines that are not related to the configuration or else it will not be verified in step 3.
  • The command has # in front of it, which means that the comment will not affect the script, so it’s okay.
Remove all extra lines that are not related to the configuration or else it will not be verified in step 3

Before Step 2, make sure that the router device has been cleared of the old configuration before adding the new configuration. Read more: How to delete all configurations in nokia 7750 SR / 7705 SAR router (load default config)

Step 2: Declare rollback rescue

Declare rollback rescue before loading new configuration

configure system rollback rescue-location cf3:/rescue
admin rollback save rescue

Step 3: Check the new config file and execute the configuration load

exec -syntax cf3:/new_config.cfg
...
Verified 3,638 lines in 1.4 seconds from file cf3:\new_config.cfg
Verified configuration in Nokia 7705 SAR-X

If Verified appears and there is no error, let’s use the exec command

exec cf3:/new_config.cfg
Executed appears and there is no error when rescue configuration

Step 4 (Option): Fix the error configuration and run again

After checking “exec -syntax” if there is an error, check which lines are error in new_config.cfg, correct the configuration and save in a new file new_config_1.cfg, and push the new file back into the router via FTP.

exec -syntax cf3:/new_config_1.cfg

#if Verified use this:
exec cf3:/new_config_1.cfg

#if error, check again and again...

Well, finally it’s work…, You have to admin save to save new config!

Step 5 (Option): Rollback save rescue

If the newly added configuration is incorrect or you simply don’t like it, you can rollback the saved configuration in step 2.

admin rollback revert rescue now

If you want to load new configuration again, follow the same steps as before. If you have any problems, don’t hesitate to ask questions in the comments section below. Good luck!

3 bình luận về “Rescue configuration with exec command in Nokia router

  1. Jonathan cho biết:

    Hi,
    Thanks for you reply, I must configure some port of the SAR-Hm to connect by FTP ?. Connect RJ45 port 1/2/6, FileZilla no connect. My PC 1.1.1.2 /24

    ===============================================================================
    BOF (Memory)
    ===============================================================================
    primary-image cf3:\TiMOS-SR-19.5.R1
    primary-config cf3:\config.cfg
    secondary-image cf3:\TiMOS-SR-21.7.R2
    address 1.1.1.1/24 active
    autonegotiate
    duplex full
    speed 100
    wait 3
    persist on
    console-speed 115200

    Ports on Slot 1
    ===============================================================================
    Port Admin Link Port Cfg Oper LAG/ Port Port Port C/QS/S/XFP/
    Id State State MTU MTU Bndl Mode Encp Type MDIMDX
    ——————————————————————————-
    1/1/1 Down No Ghost 1500 1500 – netw cell radio
    1/1/2 Down No Ghost 1500 1500 – netw cell radio
    1/2/1 Up No Down 1514 1514 – accs null faste
    1/2/2 Up No Down 1514 1514 – accs null faste
    1/2/3 Up No Down 1514 1514 – accs null faste
    1/2/4 Up No Down 1514 1514 – accs null faste
    1/2/5 Up No Down 1514 1514 – accs null faste
    1/2/6 Up Yes Up 1518 1518 – hybr dotq faste MDI
    1/3/1 Down No Down – accs raw serial
    1/3/2 Down No Down – accs raw serial
    1/4/1 Down No Down – accs wlan vap
    1/5/1 Up Yes Up – accs dotq vport
    1/5/2 Up Yes Up – accs dotq vport

Để lại một bình luận