Welcome to Netcordia Connection Sign in | Join | Help
in Search

Backup Cisco IOS Config

Last post 09-25-2008 2:05 PM by lbdwag. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-14-2008 4:52 PM

    Backup Cisco IOS Config

    This script saves the running-config to startup-config and then copies the running-config to a user-specified TFTP server.

     

    Script:
          Backup IOS Config

    Script-Description:
          This script saves the running-config to startup-config and then
          copies the running-config to a user-specified TFTP server.
          Marty Adkins, Chesapeake NetCraftsmen, LLC  7-Nov-2006

    Script-Filter:
          $Vendor eq "Cisco" and $sysDescr like /IOS/

    Script-Variables:
          $TFTPserver string            "helium"

    #########################################################################
    Action:
          Backup Config

    Action-Description:
          Notice the method of sending three <Enter> blank lines using
          the Perl5 syntax of \r for a Return.  This prevents the CCS
          script engine from aborting the job due to not finding the
          expected CLI prompt.

    Action-Commands:
          write memory
          copy running-config tftp:\/\/$TFTPserver\/\r\r\r

    #######################################################################
     

    Patrick Voglesang
    VP Operations, Netcordia, Inc.
    (T) +1 410 266 6161 x309 (M) +1 724 272 1042 (F) +1 410 573 9779
    (E) pvogelsang@netcordia.com www.netcordia.com

    Filed under: , , ,
  • 09-25-2008 2:05 PM In reply to

    Re: Backup Cisco IOS Config

    you can also write them to the local flash cards on the bigger Cisco switches by using filters: Action: Backup 4507 Configs Action-Description: Writes the running config to startup then copies it to the CF slot and TFTP server. Action-Filter: $Model eq "cat4507" Action-Commands: write memory copy running-config slot0:\/\r\r\r ##### Action: Backup 6509 Configs Action-Description: Writes the running config to startup then copies it to the CF slot and TFTP server. Action-Filter: $Model eq "cat6509" Action-Commands: write memory copy running-config disk1:\/\r\r\r
Page 1 of 1 (2 items)