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

Backup Cisco IOS Config

Last post 05-14-2008 4:52 PM by pvogelsang. 0 replies.
Page 1 of 1 (1 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: , , ,
Page 1 of 1 (1 items)