IOS-XR (XRv) and IOS-XE (CSR1000v) KVM Config Generation

As I’m mostly going to be using XRv and the CSR1000v to create my Service Provider Lab Environment to study for the CCNP Service Provider exams, I thought that I would throw together a quick script so that I can build lab environments quickly. If you’ve played with XRv or CSR1000v in KVM at all, you know that it’s a hassle to generate your topologies. I’ve made that way easier with the “Virtual Network Lab Config Generator”. Note that this doesn’t generate device configs, but rather the KVM configuration that you use to spin up and connect your virtual devices. The code is on It was written hastily, so it’s very rough. :)

Virtual Network Lab Config Generator

Here is a screen shot:

Screen Shot 2014-04-05 at 8.53.49 PM

When used, it can generate complex KVM configs in a matter of minutes, rather than an hour or more. Here is an example:

The above configuration was completely generated automatically. Super simple. :)

April 5, 2014

Posted In: CCNP SP Study Notes, Innovative, IOS-XE, IOS-XR, Miscellaneous Hacking, MySQL, PHP, training, Virtualization

Quick one-liner to change all databases tables to InnoDB in MySQL.

I’ve been attempting to get a better understanding of the operations of MySQL. For me, the best way to do that is hands on. I had a database, with a lot of tables, that I wanted to change the engine type to InnoDB. Obviously, being a lazy sys admin, I didn’t want to change them all by hand. So, I made a quick one-liner to do the job for me.


February 10, 2013

Posted In: Bash Tips, MySQL, System Administration