Recommended Posts

Hi guys,

 

I was wondering and curious, how you guys do when you take backups of your devices? Automated or manually?

 

I am tasked to find a solution to take automated backups of our network devices and I can't decided what to do as there are some ways to do this. Rancid which I have heard ALOT of and I think it is one of the best ways to take backups as it send mails as soon as you change configuration it will notify you with the change. BUT since I have no Linux experience and the guides I have seen is difficult to follow, so I somehow have to look for another solution.

 

Cisco switches and routers have something called "archive" which sends the configuraion to a tftp, scp, ftp, etc and this is good as well, but it doesn't work with ASA. :/ ... I have tried this and it works perfect with Windows (tftp64 server) but again since we have an ssh server and want to store these there, I faced some problems, don't really know why.

 

I have done the following but none of them works when I try to send it to a tftp server in Linux. If you have done it or can assists I'd be thankful and your help will be very appreciated.

xxx-r1(config)#archive
xxx-r1(config-archive)#path tftp://10.1.1.1/$h
xxx-r1(config-archive)#exit
xxx-r1(config)#exit


xxx-r1(config)#archive
xxx-r1(config-archive)#path tftp://10.1.1.1/backup/$h
xxx-r1(config-archive)#exit
xxx-r1(config)#exit

Note: /backup/ = is the folder I have created in the tftpboot directory.

touch /tftpboot/backup

chmod 777 /tftpboot/backup AND chmod 666 /tftpboot/backup didn't really work for me. :(
 

Link to comment
https://www.neowin.net/forum/topic/1219515-network-configuration-backup/
Share on other sites

rancid is better choice, then doing it on each device.

Here is a really easy to follow guide

https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/

I could prob setup a vm for you.. Where you would just have to edit a couple of things like your email server and addresses and your login creds and devices.

Not FREE - but pretty reasonable pricing starting at $750

http://www.solarwinds.com/kiwi-cattools.aspx

Any monkey could set it up ;)

BTW: "BUT since I have no Linux experience"

But you list Ubuntu, Debian and Backtrack right under your avatar -- btw backtrack is depreciated.. kali is the new version http://www.kali.org/

  On 26/06/2014 at 18:49, BudMan said:

rancid is better choice, then doing it on each device.

Here is a really easy to follow guide

https://www.edge-cloud.net/2013/05/rancidtrac-on-ubuntu-12-04-lts/

I could prob setup a vm for you.. Where you would just have to edit a couple of things like your email server and addresses and your login creds and devices.

Not FREE - but pretty reasonable pricing starting at $750

http://www.solarwinds.com/kiwi-cattools.aspx

Any monkey could set it up ;)

BTW: "BUT since I have no Linux experience"

But you list Ubuntu, Debian and Backtrack right under your avatar -- btw backtrack is depreciated.. kali is the new version http://www.kali.org/

LOL! This monkey couldn't do it. Yes, I do have worked with them and I find it VERY hard to understand and work with. Debian, Ubuntu and BT has a GUI and can't be used not a text based like Rancid. I used BT almost daily at my previous job, but not here. Here we use Nesus instead. :p .. I use both Debian and Ubuntu at home and never had problem with since I don't do advanced stuff, only nomal user stuff.

 

That would  be great if you could assist me with Rancid.

 

CatTools is not an option as it is expensive and since there are free options, I don't think my boss would like to pay for it. The other day I made him buy PRTG. lol

So I was walking through the guide - and looks good, but something must of changed between the 12 and version of trac he was using when the guide was written for

The rancid part is working great. even got it working with my home sg300, which not really supported out the box because its not a true cisco ios.. quick google found this https://github.com/chrpinedo/rancid-cisco-sb

But I had to add

[components]

tracopt.versioncontrol.svn.* = enabled

to the trac ini.

So looking good - had to deploy my clean linux vm, and doing this while real work keeps bugging me ;) and remotely to my home network - and still under couple hours from nothing to running system. Would of been real quick if didn't have to look up how to add my sg300 line - spent time troubleshooting why I was getting timeouts in the rancid logs when I know for a fact the login was working. Once I started manually running through the commands rancid does did I figure out why the problem and had to google for how to add the sg line to rancid.

You should really take a shot at the guide I linked too - just walked through it and other than the [components] part I posted above its still right on for a ubuntu 14.04 install.

But sure if you want I could create a working vm for you with info of what to edit to have it talk to your boxes.

post-14624-0-36382000-1403817596.png

Again - walk through that guide its really spot on, you really don't have to understand anything about linux to copy and paste, etc.

Thanks BudMan. I just finished with a new VM and now I am going to walk through the guide you linked and if I have some question, believe me I am going to bug you. lol

 

Edit: Already stuck at "Device login credentials via cloginrc"

That file doesn't exists and they didn't mention how to create it.

yeah dude just do

 

vi .cloginrc

 

I use vim i just prefer it but nano is also good :)

 

this might help with commands :) takes a bit of getting used to

 

http://www.tldp.org/LDP/intro-linux/html/sect_06_02.html

Just noticed you even list the touch command in your OP, and chmod.. And you don't know how to create a file? Well now that I reread that - touch backup would create a file called backup, not a dir. But you use /backup/$h which would say backup is a dir to me and would need to be created with mkdir not touch.

If you want I can clean up my VM I created yesterday and get it to you. It vanilla, bare min install of ubuntu server 14.04 - rancid and trac running on it. I didn't bother to setup email - but could do that before I make it a rancid appliance.. Wonder if others would have use of that - never really figured as much since there are so many guides on setup of rancid and it really only takes a couple of seconds to get it going. And you don't really need a web interface to look at the configs if your just wanting to have backups. You can view them right in the rancid dir.

post-14624-0-69973800-1403868938.png

The nice thing with using something like trac is the easy clean way to view what actually changed.. Here I just admin downed a port not using - turned off snmp and set the port to protected.. And that is clear as day when looking at diffs between revisions.

post-14624-0-44438400-1403869327.png

Ah, I thought that it should be there and I don't need to create it myself. Since it had .cloginrc I thought I can't create it with touch (i don't even know what that means). Anyway, I am going to work with it now and see if I can go anywhere, otherwise I will post again. :D

 

I'd like to try it myself, but I get stuck I am going to ask you to send me yours. I like the GUI so I want it too.

Nah, this is pissing me off more and more.

BudMan, how about doing some TV instead of doing it in your own VM of course if you have time and willing to do so. :)

Yeah we could do that - lets setup a time.. My wife is gone all weekend (girls weekend), but I am going to the track tmrw! My son knows the owner of horse in the 8th race at Arlington tmrw.. Going to go watch it run.. Stopping for beers on way home tonight, but sure we can find a time.

Prob got an hour left here, no much going on -- send me a pm with the details if now is good.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I'm running OS 26 on all my devices; it's nice. The windows on iPad is a great move.
    • That newest first/top comments first issue has been around for years. Only ever encountered it on videos that were slightly edgy, so to speak.
    • That was a great presentation. Loved everything about the Aero Glass design upgrade, and how they're even making it easy for devs to create stunning app icons that fit in with the design with a new Icon Composer app. Very well executed Apple 👏🏽 Unfortunately though, they only took a mere baby step with iPadOS bringing aincient resizable windows to iPadOS, still no way to run full-fledged macOS apps on it. So, it's still a no go for me, and I simply can't settle for ANY mono device again having experienced the Surface Pro line...
    • Windows 11 finally gets redesigned Start menu and more in builds 26200.5641 and 26120.4250 by Taras Buria Apple is not the only company with big software announcements today. Microsoft is dropping two preview builds for Windows 11 users, which introduce major changes to the Start menu. Those in the Dev Channel can download build 26200.5641 (KB5060824) and try the much-improved Start menu and other changes. Windows Insiders in the Beta Channel receive build 26120.4250 with the same changelog. The new Start menu features several changes that make it easier to launch your favorite app. It no longer uses a two-page view, focusing on a single scrollable view instead. At the top, you have your pins, then the Recommended section (you can now turn it off completely), and a list of all apps presented as a grid or categories. Also, the Start menu is now more adaptive, which means users with bigger displays will have a larger Start menu to display more apps (up to eight columns of pinned apps, six recommendations, and four category columns). Finally, it has a new button that lets you expand or collapse the Phone Link pane. By the way, you can check out this article if you want to take a look at other Start menu variants that Microsoft considered when working on the new Start menu. Other changes in build 26200.5641 include the ability to select what widgets appear on the lock screen and the so-called Screen Curtain for Narrator. The latter blacks out the display, keeping the content of the screen available only to those using the Narrator. You can turn on or off the Screen curtain by pressing Caps Lock + Ctrl + C. Also, Narrator now has a new welcome experience that guides users through its features and recent changes. The Settings page is getting two sections fused into one: Searching in Windows and Search Permissions are now just Search in the Privacy & Security section. The gamepad keyboard now has improved navigation and improved focus handling for child keys, flyout menus, word suggestions, language switching, settings, etc. It also works on the lock screen when you have to enter your PIN. Here are other fixes that Microsoft is rolling out gradually to Windows Insiders: [General] This build should fix an underlying issue in the previous flight which was causing input to not work for some Insiders, including when typing into Search, and with the Chinese pinyin IME candidate window, clipboard history, and the emoji panel. [Recall (Preview)] The following fixes are rolling out for Recall on Copilot+ PCs: Fixed an issue causing Recall to crash for some Insiders in the last couple flights. [Taskbar] Fixed an issue where in some cases taskbar icons might appear small even though the setting to show smaller taskbar buttons was configured as “never”. [File Explorer] Fixed an issue where restoring a File Explorer search result from Recall would open File Explorer but not show your search string. [Windowing] Fixed an issue where ALT + Tabbing out of a full screen game could lead to other windows freezing (like Windows Terminal). [Login and lock] Fixed an issue causing the lock screen to crash for some Insiders in the previous flight. [Graphics] Fixed an issue causing some displays to be unexpectedly green after the latest flights. [Settings] Fixed an underlying issue which could lead to the Settings window hanging and no longer responding to input or resizing unless you closed and reopened it. Fixed an issue in System > Display, where if UAC was set to Always Notify and you tried to click the button to do color calibration for your display and cancelled, it would crash Settings. Fixed an issue in System > Display, where a chevron might display for Brightness even if there were no additional settings to display. Fixed an issue where if you changed to a custom mouse cursor in Accessibility > Mouse pointer and touch, it could make Settings crash. There is also a single fix that is rolling out to everyone right here, right now: [General] We fixed the issue where you might see severe discoloration when connecting your PC to some older Dolby Vision displays. Here are the known bugs in both Dev and Beta Channels: After you do a PC reset under Settings > System > Recovery, your build version may incorrectly show as Build 26100 instead of Build 26120. This will not prevent you from getting future Beta Channel updates, which will resolve this issue. [NEW] Some Windows Insiders may experience a rollback trying to install this update with a 0x80070005 in Windows Update. We’re working on a fix for the next flight. [Start menu] The following are known issues for Windows Insiders with the new Start menu: [NEW] Using touch to navigate the new Start menu may not work reliably. For example, it currently does not support the swipe-up gesture. [NEW] Drag and drop capabilities are limited from “All” to “Pinned.” [NEW] In some cases, duplicate entries may appear in folders on the Start menu. [Xbox Controllers] Some Insiders are experiencing an issue where using their Xbox Controller via Bluetooth is causing their PC to bugcheck. Here is how to resolve the issue. Open Device Manager by searching for it via the search box on your taskbar. Once Device Manager is open, click on “View” and then “Devices by Driver”. Find the driver named “oemXXX.inf (XboxGameControllerDriver.inf)” where the “XXX” will be a specific number on your PC. Right-click on that driver and click “Uninstall”. [Click to Do (Preview)] The following known issues will be fixed in future updates to Windows Insiders: Windows Insiders on AMD or Intel-powered Copilot+ PCs may experience long wait times on the first attempt to perform intelligent text actions in Click to Do after a new build or model update. [Improved Windows Search] [REMINDER] For improved Windows Search on Copilot+ PCs, it is recommended that you plug in your Copilot+ PC for the initial search indexing to get completed. You can check your search indexing status under Settings > Privacy & security > Searching Windows. [File Explorer] The following are known issues for AI actions in File Explorer: Narrator scan mode may not work properly in the action result canvas window for the Summarize AI action for Microsoft 365 files when reading bulleted lists. As a workaround, you can use Caps + Right key to navigate. [Widgets] Until we complete support for pinning in the new widgets board experience, pinning reverts you back to the previous experience Note that the Dev build has two more known issues: The option to reset your PC under Settings > System > Recovery will not work on this build. We’re investigating an issue causing a small number of Insiders to experience repeated bugchecks with KERNEL_SECURITY_CHECK_FAILURE after upgrading to most current Dev Channel builds. You can find the official announcement for the Dev build here and for the Beta build here.
  • Recent Achievements

    • Rookie
      CHUNWEI went up a rank
      Rookie
    • Enthusiast
      the420kid went up a rank
      Enthusiast
    • Conversation Starter
      NeoToad777 earned a badge
      Conversation Starter
    • Week One Done
      VicByrd earned a badge
      Week One Done
    • Reacting Well
      NeoToad777 earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      486
    2. 2
      +FloatingFatMan
      267
    3. 3
      ATLien_0
      261
    4. 4
      Edouard
      201
    5. 5
      snowy owl
      178
  • Tell a friend

    Love Neowin? Tell a friend!