How do I automatically save running config onto startup config?

When I configure onto a router, the configurations are stored in running configuration and it requires for me to run "wr" command to store running configurations onto startup configuration.  Thus, this enables the configurations to be retained even after router restart.
Is there any mechanism, wherein any configuration that I do on the router, should by default be written onto startup configuration, without me explicitly invoking the "wr" command every time.

Hi,
As mentioned, there are several ways to do a periodic backup. You have commands that range from two lines to several lines. I use the following to do a write mem every 6 hours daily.
kron occurrence daily1 at 00:00 recurring
 policy-list save-config
kron occurrence daily2 at 06:00 recurring
 policy-list save-config
kron occurrence daily3 at 12:00 recurring
 policy-list save-config
kron occurrence daily4  at 18:00 recurring
 policy-list save-config
kron policy-list save-config
 cli write memory
If you want to do a write mem every one hour, You can use the following commands
event manager applet WR_Conf
 event timer cron name WR_Conf cron-entry " 25 * * * *"
 action 1.0 cli command "enable"
 action 1.1 cli command "wr"
 action 1.2 syslog msg "Config has been saved by EEM script"
Thanks,

Similar Messages

  • How do I automatically save the config of an ASA every day?

    Is it possible to automatically save the config files of an ASA to a central server on the network? We have a unix machine with syslog and snmp running.
    Thx,
    Marc

    You can pull the config via SNMP WRITE which can be dangerous. There are commercial/open source tools that will go out grab the config. Search keyword cisco at sorceforge for some of the open source tools. For commercial tools, take a look at www.solarwinds.com.
    Hope it helps.

  • FlexConfig - How to execute "TFTP" command to save running config via Flex

    Hi
    I want to save the running config from all our firewall via flexconfig.
    The problem is the carriage return after the command "copy running tftp://ip-address"
    I have to confirm the tftp server and the file manually
    I have no idea - how to do this via flexconfig -
    I found a flexconfig script to load a image to the asa called : ASA_copy_image
    Any Idea how to modify this script ?
    THX for help

    You can try Flexconfig with
    copy /noconfirm running tftp://ip-address
    I hope it helps.
    PK

  • Save running-config out WAN port?

    Hi all.  As I look at the thread headings fo rthe other posts I'm struck by how simple my request must seem I hope this is an easy one! 
    Using 891W routers, I would like to be able to save the running-config out the WAN port (gig0).  The most common scenario is that I am SSH'd into a router, but the LAN doesn't have a TFTP server nor is it ideal to put one in there.  So I want to save the routers config to myself here somehow
    The site that has the rotuer I want to save from is connected via L2L IPSec VPN to head office, and through that tunnel I can ping, RDP, whatever.  However, I cannot save the running-config even to a machine on that LAN that has a TFTP server.  It just seems TFTP is blocked by default from sending anything out on the WAN port.  I've enabled all traffic between these two routers in the ZBFW, but still it doesn't work.  I think blocking TFTP from sending out the WAN port might be hard-coded into the IOS or something.
    Anybody have thoughts on this?  Thank you. 

    Hi Julio,
    Self zones in use are only the OUT-SELF.  No SELF-OUT.  The L2L VPN works now.  The ZBFW setup to allow the VPN to work is one ACL within a 2nd class map inside the OUTSIDE-INSIDE policy map allowing all traffic from one LAN network to the other and this is set on both routers (inversing the network IDs of course).  Also to allow the VPN tunnel itself to form, there is an ACL in a 2nd class map on within the OUT-SELF policy map, which allows traffic between the two rouer WAN port IP's (allowing port 500, non500, and all esp). 
    But what confuses me is this.  If I edit that ACL governing the two VPN endpoints, so that instead of just port 500 and such I also say to permit ip any any, I can for example SSH from one router CLI to the other router CLI, whereas without adding this entry to the ACL, I cannot so I know failry surely that this perit ip any any opens any traffic between the two routers. 
    But this is likely where my lack of understanding of VPN comes in.  I imagine I am not actually sending TFTP files through the VPN then...in effect I'm trying to send a TFTP file from one router, to the LAN side of the other router.  Perhaps not possible? 
    I'm actally confusing myself here the more I type.  I'll leave this post for now, read Alain's and will reply there. 

  • Cisco View / Save running config

    Our helpdesk folks use Cisco view to enable/disable ports.  Yesterday one of our switches lost power and the running config was not saved.  Is there I can force Cisco View to save the config so this doesn't happen?
    If not, does anyone know of a work around I can implement?

    Actually there are a few more options with this as well.
    I would set it up to store them either locally in its own directory maybe called configs and put them on flash:
    or you can send them off to a remote spot with tftp or ftp.
    Also you need to figure out how many of these archived file you want to keep, 14 is the default.
    you could do this...
    config t
    cd slot0:
    mkdir configs
    That will make a directory on flash in slot 0
    next
    config t
    archive
    path slot0:/configs/$h   ------the $h will use the host name for the file name
    write-memory
    time-period 1440
    maximum 5   ---------this will make it so only 5 configs are saved in archive
    Please rate helpful posts
    Mike

  • How to supress automatic save ..

    Hi,
    Ours is a Siebel 8.0. We have a requirement to implement a UI workflow for our users to
    (1) dis-allow or suppress automatic save of a record (say, Opportunity or Activity) when user creates a new record or updates an existing one
    (2) when user steps off the applet after an attempted creation or update, prompt him/her to hit a SAVE (or similar) button to initiate the record save (CREATE or UPDATE).
    I'm sure this is a common requirement from many companies where they are used to the SAVE functionality.
    Any thoughts on how to go about this one, will be greatly appreciated.
    Thanks in advance.
    Albert

    Hi Albert,
    Here are the steps you might want to take to resolve this issue, remember the solution is bassed on scricpting.
    1. Create a "Save" button on applet
    2. On Applets PreInvokeMethod event write the following code to set the profile attribute for the method invoked by button
         if (MethodName == "SaveRec")
              TheApplication().SetProfileAttr("SaveRec","Y");
              return(CancelOperation);
    3. On BC'c PreWriteRecord event write the following code
    if (TheApplication().GetProfileAttr("SaveRec")!= "Y")
              TheApplication().RaiseErrorText("Please click on Save Rec Button to save your changes");
              return(CancelOperation);
    else
         return (ContinueOperation);
    4. Now on BC's WriteRecord event write the following code to reset the profile attribute
    TheApplication().SetProfileAttr("SaveRec","N");
    5. Compile your changes and test throughly.
    Hope this helps.
    Regards
    Chetan Sethi

  • HT2500 how do i automatically save all emails after i have read them

    How do I set up Mail to automatically save all emails that I have read?

    Unless Mail has changed in Mountain Lion, which I don't use, you shouldn't have to do anything. They should just remain where they were. Are they disappearing after being read?
    Maybe there's some Preference in 10.8 Mail I don't know about. In my 10.6 Mail, I would Open>Mail>Preferences>Accounts>Mailbox Behaviors. Should be at that location in ML Mail>Preferences or somewhere in Preferences.
    Btw, you're in the Snow Leopard (10.6) forum.

  • How can I automatically save as a jpg layer groups?(layer group jpg)

    Has created a 10 layer groups in Photoshop (there are multiple layers in the group layer.)
    10 Photoshop layer groups
    I try to save the JPG file to 10.
    How can I batch or automatically save?

    Just so you are aware, jpg does not support layers. However there is a script actually two scripts that can take the layers and create individual files.
    File>Scripts>Layer Comp to Files
    File>Scripts>Export Layers to Files
    The former requires you to use layer comps which is a way of creating sets of layers to create a comp. The latter is just as it says.
    But as I said anything saved as a jpg will be a single layer with no transparency.
    Psd and tiff are the only two that should be used for multiple layers and transparency. There are other formats that support transparency, but is not the scope of this thread. At least for now.

  • How do I automatically save array data to a spreadsheet?

    I am setting up a 24 hour test where I would like the gathered array data to automatically save to a spreadsheet every 4 hours. Is there a way to set this up with the Write to Spreadsheet file.vi?
    Solved!
    Go to Solution.

    Sure, you just need a timer that will  tell you when the 4 hours are up.  Take a look at the attached timer, I picked it up on these forums a while ago but I cant remeber who to give credit to for it*.  Just use this timer to trigger a case structure holding the write to spreadsheet function.
    *It is from Bloomy controls
    Message Edited by jmcbee on 03-17-2009 09:39 AM
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    Interval Timer.vi ‏21 KB
    Delta Time.vi ‏22 KB

  • How can I automate 'Save as PDF' in Safari?

    I routinely research stuff, then save it in PDF (it seems to be a better format that html pages).
    Is there a way I can automate this, rather than the lengthy CMD+Print>PDF>Save As PDF routine?

    You can also script the user interface with an AppleScript. The following AppleScript will save the current Safari (Version 3.1.2) page to the default location (if you want to specify another location, just remove the last keystroke return statement):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- save the current Safari page as PDF
    tell application "Safari"
    activate
    tell application "System Events"
    keystroke "p" using {command down} -- activate print menu item
    delay 0.5
    tell sheet 1
    repeat 2 times -- tab to the PDF button
    keystroke tab using {shift down}
    delay 0.25
    end repeat
    keystroke space -- press the button
    delay 0.25
    repeat 2 times -- move to the save item
    keystroke (ASCII character 31) -- down arrow
    delay 0.25
    end repeat
    keystroke return -- activate the menu item
    delay 0.25
    keystroke return -- press the save button
    end tell
    end tell
    end tell
    </pre>

  • How to disable automatic launch of WIE in startup configurat​ion with no options to do so?

    Thinkpad T400 2764CTO running Windows 7 Home Premium 64
    PC only 2 weeks old, very little on it, but getting slower and slower. Finally found the configuration for the startup menu and disabled several things I knew I didn't want at startup. One problem that I can't seem to figure out, is how to disable Windows Internet Explorer from being launched at startup? I have tried disabling every Microsoft option, and it still launches. Is there a specific Lenovo option [that does not obviously have anything to to with WIE] in the startup menu that, if disabled, will stop the WIE browser from being launched? How do I know which options are not safe to disable when attempting to slim down startup configuration for faster/more reliable performance?
    Thanks,
    Ann

    Either I *completely* misread your instructions; that fix is major overkill for what I was trying to do; that fix does not apply to my problem; that fix is only for XP or Vista and not W7; or my PC is already so messed up (despite clean hardware diagnostics, no viruses, no malware, and it is only 2 weeks old), that it performed unexpected and unwanted actions when trying to use the Windows features on/off program control panel options.
    Opened Control Panel, went to Programs, and finally found the option on the left for turning Windows features on and off. Unchecked the box for IE8, which required a restart. The restart time was 4-5 times longer than usual, even when launching superfluous programs from the startup menu, since it had to "reconfigure Windows." After restarting, WIE did not automatically launch, and its toolbar icon was gone too. Tried to turn it back on like you said, which also required a restart, which didn't make sense to me, since I expected the browser to launch again following another extra long restart once the box was re-selected. Although, surprisingly, it didn't, so for a moment thought it had somehow worked. Then I realized that my WIE icon was still missing from the toolbar, so there was no way to launch it even if I wanted to. Went back into the Control panel and checked every Windows feature box possible; another extra-long restart; still no toolbar icon for WIE. Had to go into the computer files to find WIE so that I could create a desktop shortcut icon so I could manually launch the browser from that. However, when I clicked on the shortcut, it went into a browser setup mode, as if it was being set up for the first time. Finished setup and tried to go to a webpage, but kept getting a connection error.
    Diagnosed it, and it said that the Local Area Connection had no valid IP address. Waited on hold with Mediacom for a hour before being disconnected, trying to find out what the IP address was and where to re-enter it, since unchecking the IE8 box in the Windows features part of the Control Panel, doesn't just temporarily disable the function, but apparently actually deletes the toolbar icon, as well as the IP address. Took several more attempts over several hours to get ahold of Mediacom reset the signal to get the IP address back and get back online. So that really does not seem like a viable solution for trying to save time and resources by removing something from the startup menu, if it just quadruples startup time, deletes WIE toolbar icon and IP address permanently, requires creating a desktop shortcut, and then requires several more hours on phone with ISP for signal reset to get the IP address back. Would have been much faster and done less apparent damage than just going ahead and letting it launch at startup and then just closing it. *sigh*
    I know that just having an icon in the toolbar does not mean that that particular program will launch at startup, as I have several others that have toolbar icons that I have been able to uncheck in the startup menu, so I can use the toolbar icons to launch each program manually. There just doesn't seem to be any program active in the startup menu that would be launching the browser, and still concerned about unchecking something necessary in startup that could screw it up even more.
    Is there any way to get my toolbar WIE icon back without a full system restore, so that I have less shortcut clutter on my desktop?

  • How to automatically save an image...

    how can i automatically save an image coming through an URL like the one below.
    http://localhost:88/product/images/thumbnail/12345678t.jpg

    actually, we have a tool which creates thumbnail, medium and lot of other images on the fly.
    We wanted to change the process so that we can save the images to a physical directory and cache the images instead of creating them on the fly

  • Cisco LMS netconfig job not saving running config to startup

    Hi,
    I'm running LMS3.2 and RME 4.3.1. I deployed a netconfig job to our network which consisted of approximately 800 devices.
    The report said that the job completed successfully however some of the devices didn't save thier running config to startup. Has anyone experienced this before?
    Is it possible to add a command or issue another netconfig job just to save the running config, so I can identify if the job fails on some devices? Using the tick box in the netconfig job doesn't seem to alert you if its not successful.
    Thanks,

    I have seen in the past where someone is running a netconfig job with the cmd to "wr mem" as a line in the netconfig job. 
    Sven is correct, there is an option; radio button/check box to save the running config to startup after the job is completed.
    if your job is strictly meant to "wr mem/write the config" then run a show command in config mode (non-enable) mode and select the option to save running config after job is completed.

  • Simple question - ACE Context Running Config

    How do I erase the running config of a context ? wr erase only gets rid of the the start up. I can go through it with no commands but was hoping there is a better way.

    If you could reload per context erasing the startup config would work. Unfortunately you can only reload the whole ace blade.
    Fastest way to get rid of a config within a context is to delete the context in the admin context and then re-create it.
    changeto Admin
    conf t
    no context
    context
    If you had checkpoints already created those are gone as well once you issue the "no context " command.
    To make it easier in the future i would suggest you create an empty checkpoint at the very beginning or at the point of your configuration where you want to start to experiment with the settings.
    conf t
    checkpoint create
    or
    checkpoint create
    To get the settings back u issue.
    conf t
    checkpoint rollback
    The checkpoints are per context btw.
    Hope that helps.
    Roble

  • Help! Dreamweaver keeps automatically 'putting' my template onto the server every time I save it.

    For some reason Dreamweaver keeps automatically 'putting' my template onto the server every time I save it, overwriting the template that was originally on there and I don't know why. It never used to do this and all my other sites work fine and don't have this problem... I don't want it to keep overwriting the files I have on the server... does anyone know how to stop it from doing this please? I would greatly appreciate any help anyone can give.
    If it helps, I'm using CS4.
    Thanks,
    Catherine.

    Thank you!
    For this particular website I only have one template. The website is up and running online, but I'm still working on it, trying to improve it and I'd like to preview before I upload it to the server and alter the other pages. I did have a backup of the template on the server as you said, but because I was experimenting with something in the local copy, the design changed quite a lot, and suddenly it was 'put' automatically (which was something it had never done before) resulting in a loss of the original template. Fortunately I ignored the prompt asking me to update the pages from this template, so the overall design of my live website has remained in tact. I pressed F12 as I always do and instead of taking me to my default browser for live preview, it 'put' the template onto the server. This is what I'd like to avoid doing again.
    Thank you for your response! I really appreciate your help.
    Catherine.

Maybe you are looking for