BPX Tftp Save and Restore

Embed Size (px)

Citation preview

  • 7/29/2019 BPX Tftp Save and Restore

    1/9

    How to Save and Restore a Configuration on aBPX/IGX from a TFTP Workstation without CWM

    Document ID: 29061

    Introduction

    PrerequisitesRequirements

    Components Used

    Conventions

    Getting Ready to Save and Restore Your Configurations

    Creating a Backup Directory and Files

    Creating and Configuring a TFTP Start File

    Verifying the Save and Restore Feature is Enabled, Clearing the RAM Buffer, and

    Configuring TFTP Sessions

    Saving Your Configurations

    Saving Configurations on a Single Node

    Saving Configurations on Multiple NodesLoading and Running Your Configuration

    Loading the Configuration on a Single Node

    Loading the Configurations on Multiple Nodes

    Running Your Loaded Configuration on a Single Node

    Running Your Loaded Configurations on Multiple Nodes

    Related Information

    Introduction

    This document describes how to use the Trivial File Transfer Protocol (TFTP) Configuration Save and

    Restore feature on a BPX/IGX without using Cisco WAN Manager (CWM).

    Switch software releases earlier than 9.3.30 use a proprietary protocol for communication between the nodes

    and CWM only (see Saving and Restoring Configurations on IPX, IGX, and BPX Nodes. Switch software

    release 9.3.30 and later contain the TFTP Configuration Save and Restore feature, employs standard TFTP for

    saving and restoring switch configurations and can be used with any workstation rather than just with CWM.

    With LAN connectivity, TFTP Configuration Save and Restore is approximately nine times faster than

    Proprietary Save/Restore for a single node operation. With IP Relay connectivity, TFTP Configuration Save

    and Restore is approximately the same as the Proprietary Save/Restore.

    Prerequisites

    Requirements

    Readers of this document should be knowledgeable of the IGX/BPX.

    Components Used

    The information in this document is based on the software and hardware versions below.

    All BPX/IGX hardware and revisions.

  • 7/29/2019 BPX Tftp Save and Restore

    2/9

    All software running in the network should be 9.3.30 or later.

    Workstation with both TFTP server and client software installed.

    Conventions

    For more information on document conventions, see the Cisco Technical Tips Conventions.

    Getting Ready to Save and Restore Your ConfigurationsThis section describes how to set up the initial configuration before you use the TFTP Configuration Save and

    Restore feature.

    Creating a Backup Directory and Files

    On the TFTP server, create one directory and three files. Complete the following steps:

    Use the backupid_Cfgdir format to create a directory. For example, in the

    /usr/users/svplus/test_Cfgdir directory, testis the backupid.

    1.

    In the directory you created in Step 1, use touch, vi or emacs to create the following empty files,where nodename is the node name of your switch:

    D1.nodename.cfg

    D1.nodename.000

    D1.nodename.001

    Note: You must create the three unique files for every node you want to back up. These files will be

    used to store the node configurations. Because the switch database is in a binary format, these files are

    not in a text formatyou can not view them with a text editor.

    2.

    Use the chmod 777 *.* command to give these three files you created in Step 2 world read and write

    permission.

    3.

    Creating and Configuring a TFTP Start File

    The TFTP Configuration Save and Restore facility includes a TFTP start file interface for initiating a

    configuration save and restore request.

    Complete the following steps to create a TFTP start file and to configure the IGX/BPX so it knows the

    address of the machine that will send/receive the TFTP files:

    You must create the appropriate text file for the desired operation; create the following:

    dnld.savecnfUsed for the save operation.

    dnld.loadcnfUsed for the restore operation.

    Note: Place the file you created in Step 1 into the directory you created in the Creating a Backup

    Directory and Files section.

    The format for these two files is the following:

    TFTP_REQUEST

    IP: The IP address of the TFTP server.

    PathName: The path where the file is saved.

    1.

  • 7/29/2019 BPX Tftp Save and Restore

    3/9

    Note: For PathName, do not add the directory you just created.

    NodeName: nodename | *. Use an asterisk ( * ) in nodename, if you want to save all node

    configurations.

    BackUpID: The backupidyou created in Creating a Backup Directory and Files.

    The following example illustrates the correct format:

    Correct Format for Text Files

    unixserver%more dnld.savecnf

    TFTP_REQUEST

    IP:172.16.156.80

    PathName:/usr/users/svplus

    NodeName:bpx5

    BackUpID:test

    unixserver%more dnld.loadcnf

    TFTP_REQUEST

    IP:172.16.156.80

    PathName:/usr/users/svplus

    NodeName:bpx5

    BackUpID:test

    On the IGX/BPX, use the cnffwswinit ipaddress command, where ipaddress is the IP address of

    the UNIX workstation, to configure the address of the machine that will send the TFTP start file to the

    node.

    Note: You can use the ifconfig a command at your UNIX workstation prompt to obtain the IP

    address of the UNIX workstation.

    2.

    Verifying the Save and Restore Feature is Enabled, Clearing the RAMBuffer, and Configuring TFTP Sessions

    You must verify that the Configuration Save/Restore feature is enabled, verify that the RAM buffer is clear,

    and configure TFTP sessions before saving your configuration. Complete the following steps:

    On the switch, use the cnfswfunc command to verify that the Configuration Save/Restore feature is

    enabled.

    Note: The Configuration Save/Restore feature is an option that is not enabled unless you have

    purchased it. Contact your account team if you would like to purchase this option.

    The following example illustrates a Configuration Save/Restore feature is enabled.

    Using the cnfswfunc Command

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 20nn 09:51 GMT

    Index Status Function

    1 Enabled Configuration Save/Restore

    2 Enabled ForeSight

    3 Disabled Multiple VTs (1 session enabled)

    4 Disabled Virtual Trunks

    5 Enabled ABR standard with VSVD

    6 Disabled Priority Bumping

    1.

  • 7/29/2019 BPX Tftp Save and Restore

    4/9

    7 Disabled Virtual Ports

    This Command: cnfswfunc

    Use the dspcnfcommand to verify that the RAM buffer is clear. If the RAM buffer is not clear,

    proceed to Step 3; if the RAM buffer is clear proceed to Step 4.

    The following example illustrates that the RAM buffer is clear.

    Using the dspcnfCommand

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 09:49 GMT

    Node Backup ID Revision Date/Time (GMT) Status

    bpx5 Clear

    bpx7 Clear

    Last Command: dspcnf

    2.

    If the RAM buffer is blocked by firmware, use the getfwrev cardtype 0.0 command to clear the

    buffer.

    3.

    If you want to save multiple nodes at the same time, use the cnfsysparm 26 command to ensure the

    total number of simultaneous sessions can meet your requirement.

    The default number of simultaneous sessions is 4, but the feature allows for up to 15 TFTP

    Configuration Save/Restore operations.

    The following example illustrates that the number of nodes configured for simultaneous TFTP

    Configuration Save and Restore is four (the default).

    Using the cnfsysparm 26 Command

    b86207b TN Cisco BPX 8620 9.3.36 Nov. 7 2002 12:29 GMT

    SystemWide Parameters

    23 Enable Connection Deroute Delay feature............................ No24 Interval Statistics polling rate for ATM VCs....................... 5

    25 Interval Statistics polling rate for ports on IPX/IGX 8400 nodes... 5

    26 Num of Nodes doing Simultaneous TFTP Cnfg Save/Restore............. 4

    This Command: cnfsysparm 26

    Note: For large networks with IP Relay connectivity, the TFTP traffic should be divided evenly

    across as many gateways as possible. Use the cnfnodeparm 57 nodenumberofgatewaynode

    command to specify the gateway node.

    4.

    Saving Your ConfigurationsYou can save and restore your configuration with the TFTP Configuration Save and Restore feature using a

    TFTP workstation without CWM. This section describes saving your configuration. Use one of the following

    methods to save your configuration:

    Saving Configurations on a Single Node

    Saving Configurations on Multiple Nodes

    Saving Configurations on a Single Node

    Complete the following steps to save a configuration on a single node:

  • 7/29/2019 BPX Tftp Save and Restore

    5/9

    Initiate the save config command sequence from the TFTP workstation.

    The following example illustrates saving a configuration on a single node:

    Saving the Configuration on a Single Node

    unixserver% tftp 172.16.156.15

    bin tr

    put dnld.savecnf

    quit

    unixserver%

    1.

    Use the dspcnfcommand on the single node to save the configuration.

    In the following example you can see that the configuration is being saved:

    Using the dspcnfCommand to View Saving a Single Node Configuration

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 10:02 GMT

    Node Backup ID Revision Date/Time (GMT) Status

    bpx5 test 9.3.36 10/18/02 18:19:53 Saving on 172.16.156.80

  • 7/29/2019 BPX Tftp Save and Restore

    6/9

    Using the dsplog Command to Verify a Single Node Configuration Save in the Switch Log

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 10:02 GMT

    Most recent log entries (most recent at top)

    Class Description Date Time

    Info Configuration upload to 172.16.156.80 complete 10/20/02 17:43:36

    Info Configuration captured 10/20/02 17:43:09

    Last Command: dsplog

    Saving Configurations on Multiple Nodes

    Complete the following steps to save configurations on multiple nodes:

    Ensure that you have formatted the NodeName with an asterisk ( * ) as described in the section above.1.

    Ensure that you have created the three files as described in the Creating a Backup Directory and Files

    section for all nodes in the network on which you want to perform this procedure.

    2.

    Follow the procedure described in the Saving Configurations on a Single Node section for all nodes

    for which you want to save configurations.

    3.

    Loading and Running Your Configuration

    This section describes how to restore your configuration. Restoring your configuration is a two step process:

    Loading the configurations on the IGX/BPX; use one of the following procedures:

    Loading the Configuration on a Single Node

    Running the Configurations on Multiple Nodes

    1.

    Running the configurations on the IGX/BPX; use one of the following procedures:

    Running Your Loaded Configuration on a Single Node

    Running Your Loaded Configurations on Multiple Nodes

    2.

    Caution: Nodes are fully rebuild during the restoration procedurethe node will be completely down

    and not pass any traffic.

    Loading the Configuration on a Single Node

    Complete the following steps to restore the configuration on a single node:

    On the TFTP workstation, go to the directory where the files are saved.1.

    Use one of the following methods to create the dnld.loadcnffile:

    If the dnld.savecnf file used in the Creating and Configuring a TFTP Start File section is still

    in its original form, copy the dnld.savecnffile to the dnld.loadcnf file.

    The following example shows the correct copy procedure:

    Copying the dnld.savecnf File

    unixserver% cp dnld.savecnf dnld.loadcnf

    Create a new dnld.loadcnffile using the procedure in the Creating and Configuring a TFTP

    Start File section.

    2.

    Use the tftp command to transfer the file to the switch.3.

  • 7/29/2019 BPX Tftp Save and Restore

    7/9

    The following example shows the proper procedure for the file transfer:

    Transferring the File to the Switch

    unixserver% tftp 172.16.156.15

  • 7/29/2019 BPX Tftp Save and Restore

    8/9

    Running Your Loaded Configuration on a Single Node

    When you have verified that the configurations are completely loaded, you are ready to run the restored

    configurations. Complete the following steps to run your restored configuration:

    Use the runcnfbackupid nodename command to restore the original configuration, where

    backupidis the backupid you created in Step 1 of the Creating a Backup Directory and Files

    section, and nodename is the name of the node on which you want to run the configuration.

    The following example shows the proper procedure for running the configuration on a single node.

    Using the runcnfCommand to Run the Configuration on a Single Node

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 17:58 GMT

    Node Backup ID Revision Date/Time (GMT) Status

    bpx5 test 9.3.36 10/20/02 17:43:07 Waiting to restore configuration

    bpx7 Clear

    Last Command: runcnf test bpx5

    Here is where the node rebuilds.

    1.

    After the node completes rebuilding, log back in and use the dspcnfcommand to verify that your

    configuration is restored.

    The following example shows the proper procedure for verifying that your configuration is restored:

    Output Screen After Login to Switch

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 20nn 17:58 GMT

    Node Backup ID Revision Date/Time (GMT) Status

    bpx5 test 9.3.36 10/20/02 17:43:07 Configuration restore completee

    bpx7 Clear

    Last Command: dspcnf

    2.

    Running Your Loaded Configurations on Multiple Nodes

    When you have verified that the configurations are completely loaded, you are ready to run the restored

    configurations. Complete the following steps to run your restored configurations :

    Use the runcnfbackupid nodename command to restore the original configuration on all nodes in

    the network, where backupidis the backupid you created in Step 1 of the Creating a Backup

    Directory and Files section, and where nodename is *.

    The following example shows the results of using the runcnfcommand to restore the original

    configuration on all nodes in the network:

    Using the runcnfCommand to Run the Configuration on Multiple Nodes

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 17:58 GMT

    Node Backup ID Revision Date/Time (GMT) Status

    bpx5 test 9.3.36 10/20/02 17:43:07 Waiting to restore configuration

    bpx7 test 9.3.36 10/20/02 17:43:07 Waiting to restore configuration

    Last Command: runcnf test *

    1.

  • 7/29/2019 BPX Tftp Save and Restore

    9/9

    Here is where the node rebuilds.

    After the node completes rebuilding, log back in and use the dspcnfcommand to verify that your

    configuration is restored.

    Using the dspcnfCommand to Verify a Complete Configuration Restoration

    bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 17:58 GMT

    Node Backup ID Revision Date/Time (GMT) Status

    bpx5 test 9.3.36 10/20/02 17:43:07 Configuration restore completebpx7 test 9.3.36 10/20/02 17:43:07 Configuration restore complete

    Last Command: dspcnf

    You have completed saving and restoring a configuration on a BPX/IGX from a TFTP workstation

    without CWM.

    2.

    Related Information

    How to Save and Restore Configurations on BPX/IGX WAN Switches Using the CLI without

    CWM

    Cisco WAN Switching Solutions Cisco Documentation

    Guide to New Names and Colors for WAN Switching Products

    Downloads WAN Switching Software

    Technical Support Cisco Systems

    Contacts & Feedback | Help | Site Map

    2009 2010 Cisco Systems, Inc. All rights reserved. Terms & Conditions | Privacy Statement | Cookie Policy | Trademarks of

    Cisco Systems, Inc.

    Updated: Apr 30, 2009 Document ID: 29061