Copy Cisco config via Serial Line

Synopsis

This paper describes how to transfer config files between a UNIX system and a Cisco device via a Serial Line using the cu command. See the CU(1) manual page for more detailed description of the command and parameters.

This example will use /dev/cuad0 as the serial line's DSF.

Description

  1. Connect to the serial line and login to the Cisco device:

    # cu -l /dev/cuad0
  2. To transfer from the Cisco device to the UNIX system:

    1. Change to privileged mode:

      # enable
    2. Disable paging:

      # term len 0
    3. Turn on verbose messages in CU:

      # ~s verbose=true
    4. Initiate the copy (cisco.conf can be whatever name you want to give the file):

      # ~< cisco.conf
    5. Dump the config:

      # wr term
    6. Once the line counter has stopped ticking over, hit CTRL+C twice to break back to IOS. Once done you need to reset the pager:

      # term def len
  3. To transfer from the UNIX system to the Cisco device:

    1. Change to privileged mode:

      # enable
    2. Change to configuration mode:

      # conf t
    3. Initiate the copy (cisco.conf is the config file you wish to run):

      # ~> cisco.conf
Copyright 2001 - 2010 rjw@