Edit configuration file saved in router/switch flash? (IOS)

Hi guys,
I hope it is possible to edit configuration file if we have it in our switch/router flash memory?
Something like "nano" or "vim" on unix? Maybe you know any hidden commands to do this?

Cisco routers and switches store (at least) both the startup and running configurations in memory. You edit the running configuration using Cisco's built-in command line interface when you change from EXEC (enable) mode to config mode. There is no built-in Unix type editor. The commands available in config mode vary according to the platform and OS image you have loaded. There are literally thousands of pages of command references out there explaining them all.
When you complete your configuration tasks and drop back into EXEC level, you normally synchronize the running and startup configurations ("copy runnning-config startup-config" or simply "copy r s"),

Similar Messages

  • Send configuration file to Cisco router

    Where can I find a C programm that send configuration file to Cisco router from linux workstation?

    I wonder what kind of config changes you are making and whether that may have an impact on SSH. For example if you change the host name or change the domain name then the keys need to be regenerated.
    HTH
    Rick

  • "Edit configuration files"

    How can I edit configuration �ini� files? i.e. I want to be able to read/change/add/delete and finally save sections/keys and values of a configuration file? OR�
    is there another way to easily configure executable Vi�s with some parameters without having operator intervention?

    LabView 6.x comes with VIs to use config (ini) files: from the File I/O palette, goto the Configuration File VIs palette. Look at the examples that ship with LabView: On any LabView menu bar, goto Help >> Find Examples >> Search, then enter config in the box labeled Type a keyword to find.
    There are also VIs to use Windows registry: from the Advanced palette, goto the Windows Registry Access VIs.

  • Can I edit a file created in Swish with Flash

    Can I import a .swf, .swi or .sbk file into Flash CS3 and
    edit it and save as Flash. I'm so over Swish.... but I don't want
    to rework the file.
    If not, does anyone know if I can save the file to a Flash
    compatible file type within Swish and then open successfully in
    Flash to edit and work with going forward.
    Thanks.

    Only if it's exported in a compatible format, such as Keynote '09.
    (120643)

  • How to copy configuration files to and from the cisco ios routers that use SNMP

    Hello,
    I went on the page : https://supportforums.cisco.com/docs/DOC-1860
    You explain how to get a config file and send it to a tftp server or oppositely.
    I face this problem:
    id090365:~> snmpset -v2c -c communitystring hostipaddress .1.3.6.1.4.1.9.9.96.1.1.1.1.2.98 i 1
    Error in packet.
    Reason: noCreation (That table does not support row creation or that object can not ever be created)
    Failed object: SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.2.98
    Do you have any idea?
    Thanks,
    Olivier

    I hadn't seen any snmp guides using snmpv3 and scp as transport protocol. For those looking to implement, here is what worked for me.
    As with the other snmp config copy guides you will need to download the respective MIBS and load them in the snmp.conf file.
    This post will specifically cover the snmpset commands for a v3 setup.
    SNMP Environment:
    Name        : net-snmp
    Version     : 5.7.2
    Release     : 17.fc20
    snmp conf file in ~/.snmp/snmp.conf
       contains
    defSecurityName XXX <- replace with v3 username
    defContext ""
    defAuthType SHA
    defPrivType AES
    defSecurityLevel authPriv
    defAuthPassphrase ***** <-replace with authentication pass
    defPrivPassphrase *****  <-replace with encryption pass
    defVersion 3
    showMibErrors no
    mibs ALL
    I would verify basic snmpv3 functionality with a snmpwalk of something simple like sysUpTime. When that's good proceed to the CONFIG-COPY snmp commands.
    This is my bash script that does the entire copy asking only for a single argument of IP/Hostname of the device being backed up. The 2>/dev/null shown in the script or at the cli below redirects STDERR to null to avoid the MIB modules parsing errors.
    #!/usr/bin/bash
    DEVICE=$1
    RANNUM=42
    USER=******
    PASS=******
    SERVER=X.X.X.X
    DATE=$(date +"%m_%d_%y")
    snmpset $DEVICE ccCopyProtocol.$RANNUM i 4 ccCopySourceFileType.$RANNUM i 4 ccCopyDestFileType.$RANNUM i 1 ccCopyServerAddress.$RANNUM a "$SERVER" ccCopyFileName.$RANNUM s "$DEVICE.$DATE" ccCopyUserName.$RANNUM s $USER ccCopyUserPassword.$RANNUM s $PASS ccCopyEntryRowStatus.$RANNUM i 4 2>/dev/null
    Once run you can check the status of the copy with the following command.
    [root@localhost hlsb]# snmpwalk sbs-tech-switch ciscoConfigCopyMIB 2>/dev/null
    CISCO-CONFIG-COPY-MIB::ccCopyProtocol.42 = INTEGER: scp(4)
    CISCO-CONFIG-COPY-MIB::ccCopySourceFileType.42 = INTEGER: runningConfig(4)
    CISCO-CONFIG-COPY-MIB::ccCopyDestFileType.42 = INTEGER: networkFile(1)
    CISCO-CONFIG-COPY-MIB::ccCopyServerAddress.42 = IpAddress: 10.10.10.193
    CISCO-CONFIG-COPY-MIB::ccCopyFileName.42 = STRING: sbs-tech-switch.07_09_14
    CISCO-CONFIG-COPY-MIB::ccCopyUserName.42 = STRING: XXXX
    CISCO-CONFIG-COPY-MIB::ccCopyUserPassword.42 = STRING: XXXX
    CISCO-CONFIG-COPY-MIB::ccCopyNotificationOnCompletion.42 = INTEGER: false(2)
    CISCO-CONFIG-COPY-MIB::ccCopyState.42 = INTEGER: successful(3)
    CISCO-CONFIG-COPY-MIB::ccCopyTimeStarted.42 = Timeticks: (52270199) 6 days, 1:11:41.99
    CISCO-CONFIG-COPY-MIB::ccCopyTimeCompleted.42 = Timeticks: (52270339) 6 days, 1:11:43.39
    CISCO-CONFIG-COPY-MIB::ccCopyEntryRowStatus.42 = INTEGER: active(1)
    CISCO-CONFIG-COPY-MIB::ccCopyServerAddressType.42 = INTEGER: ipv4(1)
    CISCO-CONFIG-COPY-MIB::ccCopyServerAddressRev1.42 = STRING: "10.10.10.193"
    After the successful copy completes the entry will exist for five minutes allowing for no further requests to be made with that particular random number. To send another request prior to the five minute clearing of the table send a "destroy" snmpset to clear the entry.
    [root@localhost hlse]# snmpset sbs-tech-switch CISCO-CONFIG-COPY-MIB::ccCopyEntryRowStatus.42 i 6 2>/dev/null
    CISCO-CONFIG-COPY-MIB::ccCopyEntryRowStatus.42 = INTEGER: destroy(6)
    Hope this will save some time for those looking to implement a more secure snmp config copy setup.
    V/R
    Cody Hartley

  • Importing configuration from main to backup switch.

    Hello
    I need help, i backuped the configuration of me main switch to .txt file be "Dowloand\Backup Configuration" and i have problem with importing this file to new switch. Can someone write me what should i do if i want to import this file? The switch is Cisco SG300-28.
    Best reagrds 

    The easiest method is to copy the contents of the text file back into the Global Config mode of your switch.  I've copied the instructions with the required commands below.  More can be found at the link at the bottom including ways to setup a TFTP server to backup and restore configurations.
    RESTORE A CONFIGURATION
    Connect to the switch/router that needs the configuration.
    Open the config.txt file.
    Highlight the entire contents of the config.txt file.
    You can do this by dragging the cursor from before the first character to after the last character in the file while holding down the left mouse button. Alternatively, if you use Notepad, you can choose Edit > Select All from the menu.
    Copy the selected text to the Windows clipboard.
    You can either choose Edit > Copy from the text editor menu, or hold down the CTRL key and simultaneously press the Ckey in order to perform the copy.
    Switch to the HyperTerminal window, and issue the configure terminal command at the Router# prompt. Then press Enter.
    Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu.
    After the configuration has finished pasting and the router brings you back to the configuration prompt, issue the copy running-config startup-config command in order to write the configuration into memory.
    Issue the exit command in order to return to the Router# prompt.
    Reference:
    http://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-software-releases-122-mainline/46741-backup-config.html

  • Fail to sftp to Router/Switch for remote IOS/config upgrade

    I have ssh2 enabled on a cisco3750 & 7204 running IOS 12.2 & 12.4 respectively both with "ip scp server enable" configured, the idea being to sftp configs & IOS down to them. I can open a V2 ssh session to each device no problem. When I attempt to use an sftp client (Putty/SecureFX) to do the file transfer the router/switch appears to authenticate OK but then the session is disconnected. I have logging & ssh/scp debug enabled on each cisco box and attempt to open the sftp connection. In each case the authentication (using same credentials as for SSH2 session) is successful but then the connection just closes. Can anyone help?

    They don't make it real clear, but what you actually do is source from the router/switch. From the router/switch, you connect to a server that supports SCP and pull the IOS down or push the config to the server. You use the normal copy commands, but specify scp instead of tftp or ftp.
    Hope that helps.

  • Configuration Files for AEX: How to change between multiple configurations?

    I have both an Airport Extreme and and Airport Express at home. The Extreme is used for my wireless network at my house and the Airport Express is used for streaming Airtunes. I want to use my Airport Exress as a base station when traveling (to my parents' house, hotels, etc.) and for streaming when I get home. I don't want to have to reconfigure the AEX each time I change uses for it. I have configuration files saved for both uses, but don't know how to change between them. The older version of Airport Utility allowed you to change between configurations, but I can't figure out how to do this with Airport Utility 5.4.2. In the older version, I could select the Airport station in AP Utility, click under configurations, choose my preferred file, and restart. Unplug the AEX and when I plugged it back in, it would load the preferred configuration. How do I do this with the newest AP Utility?

    Oops, you're right, that article is a bit dated.
    Try this ...
    To create a new profile:
    o Open AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    o From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    o Click "+" to create a new profile; give it a name, and then, click OK.
    o Set options, such as network name, passwords, Internet connection method, etc.
    o When done setting the options, click Update.
    To switch profiles:
    o Open the AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    o From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    o Click on the desired profile, and then, click OK to apply the new profile and restart the AX.
    Just remember to switch to the desired configuration profile before removing power from the AX.

  • Enable syntax highlighting with configuration file in emacs

    When editing configuration files such as .procmailrc, .fetchmailrc, Emacs won't automatically highlight syntax for me.
    I can enable syntax highlighting in Vim by appending "syntax on"  to the .vimrc.
    I tried adding "global-font-lock-mode t" in the .emacs file, but it didn't solve my problem.
    What is the solution?

    igndenok wrote:
    Some of my config file have this (using conf-unix-mode)
    # this is .somerc
    # -*- conf-unix -*-
    Or using this in your .emacs
    (add-to-list 'auto-mode-alist '("\\.*rc$" . conf-unix-mode))
    I followed your advice, and it does have some syntax highlighting, but less than Vim does.
    For example, Vim will highlight all the names of colors in the .muttrc file, but Emacs doesn't.
    I guess Emacs is not as strong as Vim when it comes to editing configuration files.
    Last edited by yu3k (2011-09-14 10:06:47)

  • How do I eliminate backslash codes from configuration files?

    I am trying to make my LabVIEW software compatible with software written in Delphi (Pascal). To help accomplish this task, I want them to share the same ".ini" files. That way, you start one program up and you get the settings that you had the last time you ran the other program. But here's the problem...
    Using the configuration file VIs, LabVIEW saves paths as:
    [Section with path]
    PathKey=C/path/to/file
    But Delphi saves paths as:
    [Section with path]
    PathKey=C:\path\to\file
    I thought of a simple workaround - just convert paths to strings before writing the config file! But, alas, LabVIEW uses backslash codes when it writes strings to config files, i.e.:
    [Section with path]
    PathKey=C:\\pat
    h\\to\\file
    The LabVIEW configuration file VIs' code are viewable and can be edited, but I have not had luck figuring out exactly where the backslash codes ever originate. Does anyone know how to fix up the code for these VIs? Or can you think of another workaround?
    I already thought of writing a dll that would package the Delphi functions for working with .ini files. Then I could use a library function node to call the Delphi functions. Doing so would certainly eliminate my problem of conflicting formats. But jeez - doesn't that sound like entirely too much work???
    Thanks,
    Nick
    "You keep using that word. I do not think it means what you think it means." - Inigo Montoya

    There is an option in the VI for writing strings to configuration VIs which allows you to write the exact strings (no more double \). It`s called "Write original string" I think (I`ve translated this directly from my german version of LabVIEW. I use this quite a lot to allow a "normal" PC user to edit configuration files by hand if neccessary.
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

  • Can I import an MP4 or FLV to Flash and make it an editable .fla file?

    Can I import an MP4 or FLV to Flash and make it an editable .fla file?

    Thanks for helping me.
    It's a vector animation that was made in flash and exported into a swf I believe and then posted on a website and on youtube. I have the mp4 ad the flv that I have converted from the online file using an online tool. I would like to use it as a base for my own video and just switch out some of the frames and characters/backgrounds - is that possible in Premier?

  • Externally edited Photoshop files are huge when saved back into Aperture 3

    I start with an 8MB JPEG photo. I externally edit it in Photoshop Elements 6, and hit "Save". The edited image is saved back into Aperture, but it's now 34MB PSD. Ouch! My hard disk is big but this is over the top. The intent of me moving to Aperture from iPhoto had been to reduce file sizes (masters and versions), not to hugely increase them.
    If I use "Save As" and convert it to a JPEG, the saved edited photo vanishes--it isn't in Aperture. I can't find it. If it is saved in some unknown location it is taking up hard disk space uselessly.
    Can you help me do this better? I would be most grateful.
    Message was edited by: shep222

    shep222 wrote:>...even if I do zero Photoshop editing I still get this >3 times increase in file size.
    Yup. That is how big such files are when not compressed and image data has not been discarded.
    It's an Aperture vs. iPhoto thing: When I did Photoshop External Editing in iPhoto (before I switched to Aperture) the original JPEG stays a JPEG when exported to Photoshop. The file size problem does not occur in iPhoto.
    That is correct, and is why few if any pros use iPhoto. iPhoto is by definition +low end,+ dumping image files into lossy JPEG by default. A RAW file imported into iPhoto is saved in JPEG unless the user takes special action to export it as TIFF or PSD.
    Aperture won't allow it--it seems to insist on converting to PSD for external editing.
    Also correct. Aperture is a professional app, and intentionally and repeatedly discarding image data would not be professional workflow.
    My JPEG's are top-notch low-compression ones, using the least compression settings in my Olympus micro-4/3 camera (super fine, large image, with 1/2.7 compression). JPEG artefacts have not been an issue even after extensive Photoshop editing.
    Agreed, top quality JPEGs can be very useful even though image information has been discarded. Back when RAW DSLR capture was unusably slow I shot many full-page magazine ads using JPEG Fine. But once the (fast) Nikon D2x came out I have always captured RAW and would no way ever again consider far inferior JPEG-only capture.
    Perhaps Aperture is not for me, if we can't overcome this issue.
    Perhaps. However IMO a far better approach is to shoot RAW and embrace a professional lossless workflow using Aperture. Mass storage is cheap and the benefits of RAW capture are very significant.
    Already my Aperture Library is 70GB and I have barely started with it.
    The issue of huge Library is due to using a Managed-Masters Library. Switch to RAW capture and a Referenced-Masters Library with the Library on an internal drive and the Masters referenced on external drives and the Library will no longer grow ridiculously large. IMO discarding image data via JPEG compression just to save hard drive space is inappropriate in 2011.
    HTH
    -Allen Wicks

  • RV220W - DHCPv6 Prefix Delegation - Edit the configuration file?

    I am trying to configure this router to obtain an IPv6 address from my ISP who offers a dual stack IPv4/IPv6 DHCPv6 Prefix Delegation service.
    I did a WAN packet capture to see the type of DHCPv6 packets the router sends to the ISP in order to obtain an IPv6 address and I saw that the router is sending DHCPv6 solicitation packets of type IA_NA i.e. for Identity Association for Non-temporary Address. However, most ISPs that offer a dual stack IP4/IPv6 service, they use DHCPv6 Prefix Delegation in which case the router is expected to send DHCPv6 solicitation packets of type IA_PD i.e. for Identity Association for Prefix Delegation.
    I then downloaded its configuration file and saw the following:
    dhcpv6c = {}
    dhcpv6c[1] = {}
    dhcpv6c[1]["renewTime"] = "3600"
    dhcpv6c[1]["statelessMode"] = "1"
    dhcpv6c[1]["prefixDelegation"] = "0"
    dhcpv6c[1]["preferredAddress"] = ""
    dhcpv6c[1]["LogicalIfName"] = "WAN1"
    dhcpv6c[1]["requestPreferredAddress"] = "0"
    dhcpv6c[1]["requestDNSSearchList"] = "0"
    dhcpv6c[1]["requestPreferredPrefix"] = "0"
    dhcpv6c[1]["preferredAddressPrefixLength"] = "0"
    dhcpv6c[1]["requestDNS"] = "1"
    dhcpv6c[1]["sendRapidCommit"] = "0"
    dhcpv6c[1]["isEnabled"] = "1"
    dhcpv6c[1]["preferredPrefix"] = ""
    dhcpv6c[1]["_ROWID_"] = "1"
    dhcpv6c[1]["preferredPrefixPrefixLength"] = "0"
    So, the option for the DHCPv6 client to perform a prefixDelegation request is disabled. Does that mean that if I set this flag to "1" it is going to work? Well, I edited the configuration file and changed this flag but the router refuses to load it! It complains about the file being changed. How does it know that? Is it computing some type of checksum? Does anyone know how can I manually edit this flag and update the router's configuration?

    I can't help you because our ISP doesn't support native ipv6.  I suggest you call Cisco Small Business technical support.  All you need is your serial number and your Cisco username to get support.  Tori is awesome to work with.

  • Files in Router's Flash

    Hello Everyone,
    I am having Cisco2951 router. There are lot of files in the routers flash which is consuming memory. If I delete these files is it going to affect my routers performance?
    The show flash output is attached herewith.
    Thanks

    Hi Inderpreet
    Lots of the files in your router are for "Cisco Configuration Professional  Express"
    http://www.cisco.com/c/en/us/td/docs/net_mgmt/cisco_configuration_professional_express/v2_7/guides/adminguide/CCPExpress_Admin_Guide/Uninstalling_ccp_express_adminview.html
    In case you are not using this tool to manager your router config, you can definitely go ahead and delete the files pertaining to folder "ccpexp". Below link will help you in removing the ccpexp from your router flash:
    https://supportforums.cisco.com/discussion/11689251/disable-or-wipe-cisco-configuration-professional-express
    Apart from that under the GUI folder, the files belong to CME GUI , incase you are using GUI to manage your CME. Then there are few files for 8831, in case you are using your router to provide firmware to the 8831 phones. These you can choose to delete if the phones are not fetching the firmware from the router.
    Regards
    Aditya Gupta

  • Problems saving values in the configuration file

    Hello,
    I'm upgrading one of my projects from VS2005 (with .NET 2.0) to VS2013 (with .NET 4.5). I have a setup project in my solution, but this is no longer supported and I have to change to InstallShield
    deployment project. With the old setup project my app runs fine, but now with InstallShield I have a problem. I install the application in this folder: C:\Program Files (x86)\CompanyName\AppName. I use .config file to read and write some parameters.
    Reading parameters goes well, but when I write new values in the .config file a get one error. When I used the old setup project, at writing time the system created new .config file in C:\Users\me\AppData\Local\VirtualStore\Program Files (x86)\CompanyName\AppName
    (this is named isolated storage, isn't it? :S).
    These are all changes I made in the solution:
    When I opened the solution with VS 2013 the migration process went well (some warnings and messages) except setup project (of course).
    I upgrade all projects to .NET Framework 4.5 (Project properties -> Application -> Target framework).
    I have intalled InstallShielld Limited Edition and added and configured the new deployment project.
    I think that these are all changes. And this is the source code where I get the exception:
    public void SetXParamValue(string value)
    try
    Configuration conf = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath);
    conf.AppSettings.Settings["XParam"].Value = value;
    conf.Save();
    catch (Exception e)
    MessageBox.Show("Error setting X param.");
    And this is the exception:
    Exception messsage:
    An error occurred loading a configuration file: Access to the path 'C:\Program Files (x86)\CompanyName\AppName\oy25i1se.tmp' is denied. (C:\Program Files (x86)\CompanyName\AppName\ExeFile 1.0.192b.exe.config)
    Stack trace:
    at System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
    at System.Configuration.Configuration.SaveAsImpl(String filename, ConfigurationSaveMode saveMode, Boolean forceSaveAll)
    at System.Configuration.Configuration.Save()
    at VisualizadorCabecera.FormPrincipal.EstablecerIdioma(CultureInfo idioma)
    Inner exception messsage:
    Access to the path 'C:\Program Files (x86)\CompanyName\AppName\oy25i1se.tmp' is denied.
    Stack trace:
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean
    checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
    at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
    at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
    at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension)
    at System.Configuration.Internal.WriteFileContext..ctor(String filename, String templateFilename)
    at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext, Boolean assertPermissions)
    at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext, Boolean assertPermissions)
    at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext)
    at System.Configuration.ClientConfigurationHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext)
    at System.Configuration.UpdateConfigHost.OpenStreamForWrite(String streamName, String templateStreamName, Object& writeContext)
    at System.Configuration.MgmtConfigurationRecord.SaveAs(String filename, ConfigurationSaveMode saveMode, Boolean forceUpdateAll)
    Any suggestions? I have to configure something else?
    Thank you,
    Jon.

    > "With the old setup project my app runs fine"
    Actually, I disagree.  Your configuration file is sitting alongside your application, in a directory that
    should be protected from changes by "regular" users and it's
    only running because Windows is intercepting your attempt to write under C:\Program Files* and rerouting those attempts to a "Virtual Store" location.  By the sounds of it, something your new installer is doing is [quite rightly]
    stopping this from happening (IIRC, virtualisation can be turned off for a program and, IMHO,
    should be).  
    You need to move the configuration file to a location that the user can write to (somewhere under C:\Users\username), even if you have to copy it the very first time it's needed. 
    Regards, Phill W.

Maybe you are looking for