Author Topic: Script to pull config from switches  (Read 1391 times)

dlots

  • Senior Engineer
  • ****
  • Join Date: Jan 2015
  • Posts: 3980
  • Rep: 13
    • View Profile
  • Certifications: Lots
Re: Script to pull config from switches
« Reply #15 on: October 10, 2017, 12:41:17 PM »
Yay!
I am glad it's working for you :-D

Otanx

  • advipservicesk9
  • ****
  • Join Date: Jan 2015
  • Posts: 1668
  • Country: us
  • Rep: 8
    • View Profile
  • Certifications: CCNP
Re: Script to pull config from switches
« Reply #16 on: October 13, 2017, 09:42:00 AM »
You have it done now, but is there any reason not to use RANCID, or Oxidized? Then you get the benefit of configuration history as well.

-Otanx

Nerm (OP)

  • Backbone Router
  • ***
  • Join Date: Jan 2015
  • Posts: 390
  • Country: us
  • Rep: 2
    • View Profile
Re: Script to pull config from switches
« Reply #17 on: December 19, 2017, 09:55:08 AM »
Sorry for taking so long to reply. I have been swamped of late and am just now able to breathe a little.

Where I work you have to jump through massive amounts of red tape to get permission to install a Linux distro in the environment. So I was trying to avoid the red tape and accomplish this on an existing Windows box. Plus I had trouble finding an already written script or application that could do what I needed when generic telnet was the only remote access method.

wintermute000

  • Senior Engineer
  • ****
  • Join Date: Jan 2015
  • Posts: 2421
  • Rep: 26
    • View Profile
  • Certifications: Alphabets
Re: Script to pull config from switches
« Reply #18 on: December 19, 2017, 09:35:20 PM »
Its sad that this kind of crap still exists in this day and age (been there seen it before....). So what runs the majority of web servers and vast majority of AWS workloads and forms the backend of every large hyperscaler or SaaS provider or Cloud provider out there is not good enough, but closed source been shafting you for 20 years of licensing MS is the only way forward. Alrighty then


I'll one up you: large quasi-government entity completely reliant upon linux (scientific etc.), but can't connect to mainstream internet repos so they run their own internal repos for everything.... takes them a week just to get apt-get install or yum install going. Otherwise you just get a minimal install  Because their linux guys are even worse at linux than level 1 MS support techs at MS. And you're the external network guy so you're not supposed to or allowed to touch any of that stuff.
« Last Edit: December 19, 2017, 09:37:59 PM by wintermute000 »

deanwebb

  • Permit any any all log
  • Administrator
  • Volume Licensing
  • *****
  • Join Date: Jan 2015
  • Posts: 7680
  • Country: us
  • Rep: 19
  • *I* am the one who NACs.
    • View Profile
  • Certifications: FSCA: ForeScout Certified Administrator, CCNP Security, Tufin CSE, TippingPoint ASE
Re: Script to pull config from switches
« Reply #19 on: December 20, 2017, 09:05:04 AM »
Number one reason IT managers have a phear of Linux:

IT IS USED BY HACKERS. If you use Linux, you will become a hacker in that very instant. That is bad for security. DUH!

:yeahright:
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!

deanwebb

  • Permit any any all log
  • Administrator
  • Volume Licensing
  • *****
  • Join Date: Jan 2015
  • Posts: 7680
  • Country: us
  • Rep: 19
  • *I* am the one who NACs.
    • View Profile
  • Certifications: FSCA: ForeScout Certified Administrator, CCNP Security, Tufin CSE, TippingPoint ASE
Re: Script to pull config from switches
« Reply #20 on: December 20, 2017, 09:10:05 AM »
On a more serious note, there are distros of Linux, Mint for example, that are very secure from an individual install perspective. This makes them difficult to manage on an enterprise level out of the box.

So the answer is to either get the tools that allow for enterprise management set up and configured OR seek out a distro that is geared for enterprise management... and which is also doing its due diligence with security.

Linux can and should be used by every network engineer to start messing around with scripting and other stuff - it is an incredibly powerful tool to have and does not lock one in to a proprietary solution. I should write a whitepaper on that... or at least a Peerlyst article...
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!

deanwebb

  • Permit any any all log
  • Administrator
  • Volume Licensing
  • *****
  • Join Date: Jan 2015
  • Posts: 7680
  • Country: us
  • Rep: 19
  • *I* am the one who NACs.
    • View Profile
  • Certifications: FSCA: ForeScout Certified Administrator, CCNP Security, Tufin CSE, TippingPoint ASE
Re: Script to pull config from switches
« Reply #21 on: December 20, 2017, 09:49:49 AM »
There. I done it.

https://www.peerlyst.com/posts/it-network-managers-give-the-gift-of-linux-to-your-engineers-dean-webb

Feel free to get someone, maybe even yourself, to forward the link on to your manager. I even worked in the below image, to show managers how happy their directs will be when they get that Linux box:

:greatoffer:
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!

Nerm (OP)

  • Backbone Router
  • ***
  • Join Date: Jan 2015
  • Posts: 390
  • Country: us
  • Rep: 2
    • View Profile
Re: Script to pull config from switches
« Reply #22 on: December 20, 2017, 08:30:07 PM »
 :applause:
:snail:

ristau5741

  • Administrator
  • OC-1920
  • *****
  • Join Date: Jan 2015
  • Posts: 12156
  • Country: us
  • Rep: 15
    • View Profile
  • Certifications: Instanity
Re: Script to pull config from switches
« Reply #23 on: December 21, 2017, 01:33:57 PM »
We wish you a happy Linux and a sudo New Year.

(there is a holiday song in there somewhere....)
:professorcat:

Good, Fast, or Cheap, you can only select 2 of the 3.