Showing posts with label cisco. Show all posts
Showing posts with label cisco. Show all posts
Monday, August 15, 2016
Backup Cisco Configs Using Putty
Backup Cisco Configs Using Putty
You can easily capture the configuration file from any network devices like Cisco Routers, Switches etc.. with putty. Follow below steps..
1. Launch putty and connect to your Cisco router/switch
2. Enter the user exec mode (router> enable)
3. Enter the terminal length 0 command (router# terminal length 0) in order to force the router to return the entire response at once, rather than one screen at a time. This allows you to capture the configuration without extraneous ??more?? prompts generated when the router responds one screen at a time.
4. Right-click on the menu bar of the Putty screen and select Change Settings
5. Go to Session and click on Logging, select Log all session output
6. Click on Browse and choose the location and name of the file (I like to place my config file on my desktop C:Documents and SettingsAdministratorDesktopconfig.txt)
7. Click apply.
8. Now enter the show run command (router# show run), then log out and see the output in config.txt on your desktop (or the location you chose).
This is a pretty simple thing to do and can be a real life saver if you happen to lose the config on a device. It sure is a lot easier to copy and paste it back in instead of recreating it from scratch. Cisco equipment is great but I have seen instances where the running config wasnt saved to the memory and after a restart it reset back to an old startup config or back to brand new (worst case).
You now have the power!
1. Launch putty and connect to your Cisco router/switch
2. Enter the user exec mode (router> enable)
3. Enter the terminal length 0 command (router# terminal length 0) in order to force the router to return the entire response at once, rather than one screen at a time. This allows you to capture the configuration without extraneous ??more?? prompts generated when the router responds one screen at a time.
4. Right-click on the menu bar of the Putty screen and select Change Settings
5. Go to Session and click on Logging, select Log all session output
6. Click on Browse and choose the location and name of the file (I like to place my config file on my desktop C:Documents and SettingsAdministratorDesktopconfig.txt)
7. Click apply.
8. Now enter the show run command (router# show run), then log out and see the output in config.txt on your desktop (or the location you chose).
This is a pretty simple thing to do and can be a real life saver if you happen to lose the config on a device. It sure is a lot easier to copy and paste it back in instead of recreating it from scratch. Cisco equipment is great but I have seen instances where the running config wasnt saved to the memory and after a restart it reset back to an old startup config or back to brand new (worst case).
You now have the power!
Sunday, August 14, 2016
Backup Cisco WLC Configuration Without Cisco Prime
Backup Cisco WLC Configuration Without Cisco Prime
This article is part of a new mini-series here on my blog as I work toward obtaining my Cisco Wireless 640-722 CCNA certification.
The official way Cisco wants you to do this is to buy and implement Cisco Prime.
One way you can get around this is to use SolarWinds CatTools to send commands to your devices.
Using this I configured a job to connect to the WLC via SSH and push a backup of the config to my TFTP server. Heres how:
>transfer upload mode tftp
>transfer upload datatype config
>transfer upload filename WLC-Config-Backup_%DateISO%.txt
>transfer upload path .
>transfer upload serverip 192.168.1.5
>transfer upload start
Once you select "Y" to begin the backup youll see in the text a warning that file encryption is disabled. Solarwinds CatTools can answer this Y or Yes if needed. After this the config will push to your TFTP directory.
The variable in the command %DateISO% will automaticaly fill out the date of the file for you. As of now the freeware version is limited to 5 devices and 5 activities only.
If you need more it can scale up from there.
Thursday, August 11, 2016
Capture Cisco confgs with Putty
Capture Cisco confgs with Putty
You can easily capture the configuration file from any network devices like Cisco Routers, Switches etc.. with Putty. Download Putty
Follow below steps..
1. Launch Putty and connect to your Cisco router/switch/ASA
2. Enter the user exec mode (router> enable)
3. Enter the terminal length 0 command (router# terminal length 0) in order to force the router to return the entire response at once, rather than one screen at a time.
NOTE: If this is an ASA the command is a bit different (ASA#terminal pager 0)
This allows you to capture the configuration without extraneous ??more?? prompts generated when the router responds one screen at a time.
4. Right-click on the menu bar of the putty screen and select change Settings
5. Go to Session and click on Logging, select Log all session output
6. Click on Browse and choose the location and name of the file (I like to place my config file on my desktop C:Documents and SettingsAdministratorDesktopASAconfig.txt or SW1config.txt)
7. Click apply
8. Now enter the show run command (router# show running-config), Logout and see the output in config.txt on your desktop (or the location you chose).
Thats all there is to it. I highly recommend that each time you make a config change you do a quick backup like this. Theres nothing easier to do to come back from a failure than to have a recent config just waiting to be pasted in to get your device back online as quickly as possible.
Wednesday, August 10, 2016
Archive Cisco Switch and Router Configs Using TFTP and Configuration Archive
Archive Cisco Switch and Router Configs Using TFTP and Configuration Archive
The worst time to realize you dont have a current backup of your switch or router is when that device is having issues or worst case dies and it is actually needed. For a great comprehensive list of Cisco IOS commands I recommend THIS BOOK. Its for Amazon Kindle.
Administrators have the ability to run a manual backup of the configs or you can set it to do this automatically or every time you do a "write memory" to save a config change.
Given how easy this is to setup theres no reason for you not to have this on your switches.
Lets dive into how easy this is to setup.
First youll need a good TFTP server program. Personally I like the free Solarwinds TFTP Server. This like is for the Windows version. You can run it on a server or a workstation if needed. The price is right, setup is simple, and youll have this going in a couple of minutes.
Next its time to setup the switch or router to do the automatic backups for you.
Lets look at a couple of way to set this up.
The first way is to just backup each time you do a "write memory". This is my favorite setup as it does not generate unnecessary network traffic and I know that the files on my TFTP server are the latest config as long as they were saved.
R1(config)#archive R1(config-archive)#path tftp://192.168.1.10/R1-config R1(config-archive)#write-memory R1(config-archive)#exit |
Now one of the details I add after the IP address and forward slash is the name of the device so when it creates the automatic backup file I know which device it came from based on the devices host name.
Another way to set this up is to do backups daily for you automatically without the need to a manual update. This setup will archive every day or if you do a "write memory" command on the switch.
R1(config)#archive R1(config-archive)#path tftp://192.168.1.10/R1-config R1(config-archive)#write-memory R1(config-archive)#time-period 1440 |
Now these two methods ensure your switch configs are backed up either as you do a change and save it or automatically each day.
Finally the great thing about these auto backups is you can also restore them using the same functions. One thing to note is that this command does not merge the settings with what is currently running, it fully replaces it so use caution.
Thursday, August 4, 2016Cisco AnyConnect Failed to Initialize Connection SubsystemCisco AnyConnect Failed to Initialize Connection SubsystemI run Windows 8.1 and run Cisco AnyConnect Secure Mobility Client version 3.1.03103 to access a VPN. After getting the error I updated to the latest AnyConnect Client version 4.0.00061 and got the same result. Last night I install all of the updates from patch Tuesday (over 1.1G worth including Office 2013 patches). Today, after I hit connect, it stopped working out of the blue with the error: Failed to initialize connection subsystem I suspect a recent Windows update must be the cuplrit. Heres the steps you will find all over the web to fix it. THIS DOESNT WORK! To fix just uninstall the KB3023607 published for install yesterday! 1. Close the Cisco AnyConnect Window and the taskbar mini-icon 2. Right click vpnui.exe in the Cisco AnyConnect Secure Mobility Client folder. (I have it in C:Program Files (x86)CiscoCisco AnyConnect Secure Mobility Client 3. Click on the Run compatibility troubleshooter button 4. Choose Try recommended settings. 5. The wizard suggests Windows 8 compatibility. 6. Click Test Program. This will open the program. 7. Close Cisco has escalated this issue to Microsoft for investigation from what I can find. This issue was introduced by KB# 3023607: Secure Channel cumulative update changes TLS protocol renegotiation and fallback behavior (https://support.microsoft.com/kb/3023607) and included with Microsoft Security Bulletin MS15-009 Critical Security Update for Internet Explorer (3034682) This issue is rumored to affect Windows 7 with IE 11 as well. I have not experienced this myself as I no longer run Windows 7 on any of my machines.
Labels:
anyconnect,
cisco,
connection,
failed,
initialize,
subsystem,
to
Wednesday, August 3, 2016Convert Cisco 1700 2700 Series APs to Autonomous ModeConvert Cisco 1700 2700 Series APs to Autonomous ModeFor smaller environments its not always cost effective to buy a WLC so the need arises to put the APs into autonomous mode. Since the 1700/2700 series APs ship in lightweight mode, heres how to change them over to autonomous mode: 1. Log in to www.cisco.com 2. Click on "Support" at the top of the page. 3. Click the "Downloads" button. 4. Select "Wireless" from the left side. 5. Select "Access Points". 6. Select "Cisco 1700 Series Access Points". 7. Select Cisco Aironet 1702i Access Points". 8. Click "Autonomous AP IOS Software". As of this writing the latest version is 15.3.3-JBB1(ED) 9. Connect to the AP using a console cable. 10. Power on the AP. If you have a POE switch then that way is best. If not use a power injector or power cord for the AP. 11. Start a TFTP server on your laptop or PC and set the LAN interface to 10.0.0.1 255.25.255.0 12. Open a serial connection to the AP. Once the boot up finishes log in. Remember the default password is Cisco. 13. Enter the following commands in this order:
14. Once the upload, extraction, and installation is complete (3 to 5 minutes) the AP will restart. 15. Once the restart is completed log in and do a show version command. 16. Verify the AP now provides access to the full suite of IOS commands. 17. Configure as needed. If you get any errors from the AP while it is still in lightweight mode during this process I find it easiest to just put these commands into a text file and then paste them into Putty vs trying to type them in with the lines scrolling. I hope this helps you get your APs setup faster and dont have to deal with a complicated process. Good luck.
Subscribe to:
Posts (Atom)
|