Вы находитесь на странице: 1из 9

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

Document ID: 29061


Introduction Prerequisites Requirements 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 Nodes Loading 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.

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 Configurations


This 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: 1. Use the backupid_Cfgdir format to create a directory. For example, in the /usr/users/svplus/test_Cfgdir directory, test is the backupid. 2. 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. 3. Use the chmod 777 *.* command to give these three files you created in Step 2 world read and write permission.

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: 1. 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.

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 backupid you 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

2. 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.

Verifying the Save and Restore Feature is Enabled, Clearing the RAM Buffer, 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: 1. 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 Index Status 1 2 3 4 5 6 Enabled Enabled Disabled Disabled Enabled Disabled Cisco Function BPX 8620 9.3.36 Nov. 3 20nn 09:51 GMT

Configuration Save/Restore ForeSight Multiple VTs (1 session enabled) Virtual Trunks ABR standard with VSVD Priority Bumping

Disabled

Virtual Ports

This Command: cnfswfunc

2. Use the dspcnf command 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 dspcnf Command
bpx5 Node bpx5 bpx7 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 09:49 GMT Backup ID Revision Date/Time (GMT) Status Clear Clear

Last Command: dspcnf

3. If the RAM buffer is blocked by firmware, use the getfwrev cardtype 0.0 command to clear the buffer. 4. 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 SystemWide Parameters Nov. 7 2002 12:29 GMT

23 24 25 26

Enable Connection Deroute Delay feature............................ Interval Statistics polling rate for ATM VCs....................... Interval Statistics polling rate for ports on IPX/IGX 8400 nodes... Num of Nodes doing Simultaneous TFTP Cnfg Save/Restore.............

No 5 5 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.

Saving Your Configurations


You 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:

1. 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 < this is the IP address of bpx5 tftp> bin < Enables binary mode tranfer tftp> tr < Optional, but this command helps to see that the transfer is working Packet tracing on. tftp> put dnld.savecnf < The command to transfer the file created above to the IGX/BPX sent WRQ <file=dnld.savecnf, mode=octet> received ACK <block=0> sent DATA <block=1, 88 bytes> received ACK <block=1> Sent 88 bytes in 0.0 seconds tftp> quit unixserver%

2. Use the dspcnf command on the single node to save the configuration. In the following example you can see that the configuration is being saved: Using the dspcnf Command 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 < being saved!! bpx7 clear

Last Command: dspcnf

In the following example, you can see that the configuration is savedindicated by the word complete in the command output: Using the dspcnf Command to View a Complete Save of 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 Save on 172.16.156.80 complete <complete!! bpx7 clear

Last Command: dspcnf

3. Use the dsplog command to verify that the single node configuration is saved by viewing the switch log. In the following example, you can see that the configuration is saved as indicated by the switch log:

Using the dsplog Command to Verify a Single Node Configuration Save in the Switch Log
bpx5 TN Cisco BPX 8620 9.3.36 Most recent log entries (most recent at top) Class Description Info Configuration upload to 172.16.156.80 complete Info Configuration captured Last Command: dsplog Nov. 3 2002 10:02 GMT

Date Time 10/20/02 17:43:36 10/20/02 17:43:09

Saving Configurations on Multiple Nodes


Complete the following steps to save configurations on multiple nodes: 1. Ensure that you have formatted the NodeName with an asterisk ( * ) as described in the section above. 2. 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. 3. Follow the procedure described in the Saving Configurations on a Single Node section for all nodes for which you want to save configurations.

Loading and Running Your Configuration


This section describes how to restore your configuration. Restoring your configuration is a two step process: 1. 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 2. 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 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: 1. On the TFTP workstation, go to the directory where the files are saved. 2. Use one of the following methods to create the dnld.loadcnf file: 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.savecnf file 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.loadcnf file using the procedure in the Creating and Configuring a TFTP Start File section. 3. Use the tftp command to transfer the file to the switch.

The following example shows the proper procedure for the file transfer: Transferring the File to the Switch
unixserver% tftp 172.16.156.15 < switch bpx5's ip address tftp> bin tftp> tr Packet tracing on. tftp> put dnld.loadcnf sent WRQ <file=dnld.loadcnf, mode=octet> received ACK <block=0> sent DATA <block=1, 88 bytes> received ACK <block=1> Sent 88 bytes in 0.1 seconds tftp> quit

4. Use the dspcnf command on the switch side to verify that the loading is in progress. The following example shows that the loading you performed in Step 3 is in progress: Using the dspcnf Command to Verify Loading in Progress
bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 10:30 GMT Node Backup ID Revision Date/Time (GMT) Status bpx5 test 9.3.36 10/20/02 15:31:42 Loading from 172.16.156.80 <in progress! bpx7 Clear

Last Command: dspcnf

5. Use the dspcnf command again to verify that the loading is complete. The following example shows that the loading you performed in Step 3 is complete: Using the dspcnf Command to Verify Loading is Complete
bpx5 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 10:30 GMT Node Backup ID Revision Date/Time (GMT) Status bpx5 test 9.3.36 10/20/02 15:31:42 Load from 172.16.156.80 complete <complete! bpx7 Clear

Last Command: dspcnf

Loading the Configurations on Multiple Nodes


Complete the following steps to restore the configurations on multiple nodes: 1. Ensure that you have formatted the NodeName with an asterisk ( * ) as described in the section above. 2. 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. 3. Follow the procedure described in the Loading the Configuration on a Single Node section above for all nodes for which you want to restore configurations.

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: 1. Use the runcnf backupid nodename command to restore the original configuration, where backupid is 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 runcnf Command to Run the Configuration on a Single Node
bpx5 Node bpx5 bpx7 TN Cisco BPX 8620 9.3.36 Nov. 3 2002 17:58 GMT Backup ID Revision Date/Time (GMT) Status test 9.3.36 10/20/02 17:43:07 Waiting to restore configuration Clear

Last Command: runcnf test bpx5

Here is where the node rebuilds. 2. After the node completes rebuilding, log back in and use the dspcnf command 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 Node bpx5 bpx7 TN Cisco BPX 8620 9.3.36 Nov. 3 20nn 17:58 GMT Backup ID Revision Date/Time (GMT) Status test 9.3.36 10/20/02 17:43:07 Configuration restore completee Clear

Last Command: dspcnf

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 : 1. Use the runcnf backupid nodename command to restore the original configuration on all nodes in the network, where backupid is 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 runcnf command to restore the original configuration on all nodes in the network: Using the runcnf Command to Run the Configuration on Multiple Nodes
bpx5 Node bpx5 bpx7 TN Cisco Backup ID Revision test 9.3.36 test 9.3.36 BPX 8620 9.3.36 Nov. 3 2002 17:58 GMT Date/Time (GMT) Status 10/20/02 17:43:07 Waiting to restore configuration 10/20/02 17:43:07 Waiting to restore configuration

Last Command: runcnf test *

Here is where the node rebuilds. 2. After the node completes rebuilding, log back in and use the dspcnf command to verify that your configuration is restored. Using the dspcnf Command to Verify a Complete Configuration Restoration
bpx5 Node bpx5 bpx7 TN Cisco Backup ID Revision test 9.3.36 test 9.3.36 BPX 8620 9.3.36 Nov. 3 2002 17:58 GMT Date/Time (GMT) Status 10/20/02 17:43:07 Configuration restore complete 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.

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

Вам также может понравиться