Author Archives: Randy

JunOS (MX) Cheat Sheet

BGP Commands BGP Summary (IPv4 and IPv6): show bgp summary BGP Received routes (shows routes BEFORE filtering? Always check local routing table): show route receive-protocol bgp <neighbor> BGP Sent routes: show route advertising-protocol bgp <neighbor> Shut/unshut a BGP peer <set|delete> protocols bgp <group> neighbor <neighbor> shutdown Reload inbound routes clear bgp neighbor soft-inbound <neighbor|all> Reload […]

Starting a temporary MySQL instance for table/DB recovery

In this example we assume a restored backup of mysql’s datadir exists at /mnt/restore/mysql. mysqld –port=3307 –socket=/mnt/restore/mysql/tmp.sock –datadir=/mnt/restore/mysql –pid-file=/mnt/restore/mysql/ –user=mysql If the backups are ‘dirty’ and innoDB corruption won’t let it start, you can try –innodb-force-recovery=N if needed (start with N = 1 and go up to 4 as neccesary). If the instance was part […]

Categories: Uncategorized. Comments Off on Starting a temporary MySQL instance for table/DB recovery

XenServer recovery – XAPI won’t start

If running XenServer on a RAID array with writeback (controller cache) enabled and no battery backup, don’t lose power. If you do, you will discover the state.db is corrupt and XAPI fails to start. Everything is down, Dom0 lost it’s network config, you’re screwed. Maybe. This tutorial assumes you’ve got a metadata backup, all your […]

Magento2 – Upgrade using Composer

This is the preferred, Composer method for upgrading Magento 2.X.X between minor versions. Replace X.X with the minor version numbers of the target version. The last line is optional, use it only if you’re in the middle of a migration and need to continue to be able to sync data with a 1.x site. If […]

Categories: Code and Technical. Comments Off on Magento2 – Upgrade using Composer

Windows Vista through Windows 10 Boot Repair

After cloning a larger HDD to a smaller SSD, you will most likely face a blinking cursor or other boot issues.   The following steps should get you back on track from a rescue command prompt: bootrec.exe /fixmbr bootsect.exe /nt60 all /force bootrec.exe /rebuildbcd If you are getting integrity check errors on winload.exe, you can try […]

Categories: Uncategorized. Comments Off on Windows Vista through Windows 10 Boot Repair

GL-MT300A tricks – WIFI Client Bridge

In a search to replace several NetGear WNCE2001 devices which had over time, proven themselves to be so unreliable they would literally kill entire wireless AND wired networks by randomly hijacking DHCP. I tried many devices — some either couldn’t bridge at all, others ‘worked’ but had such terrible range or connection quality they were […]

Enable megasas2.sys Critical Mass Storage Driver

This reg key will enable the ability to boot from MegaRAID storage devices using the megasys2.sys driver. Useful to run before hand when upgrading or otherwise changing hardware to something with a LSI 9260, 9271 or similar card. This reg key REQUIRES that you already have the correct megasas2.sys driver installed one way or another. […]

OpenVPN Slow Downloads on Windows clients

Recently I upgraded my remote office connection to 100Mbps (cable) and spent almost a month dealing with slow downloads over an openVPN client connection. Uploads were fine (maxing out the pipe) but downloads were 12-20 Mbps at best and fluctuating like crazy. TCP client mode actually performed better than UDP so I knew something was […]

Munin plugin for Motorola Surfboard 6141

I cooked up a Munin plugin for my Surfboard 6141 which monitors ALL available data from the status page. If you’re having intermittant signal issues and want to keep detailed data for cable technicians, this is for you! Check it out on Github: