Tuesday, June 27, 2017

Starting with...

I have an immediate need to become better at an existing tool set, Saltstack.  I am going to start by reading Learning SaltStack - Second Edition.  I will be adding various tidbits as a learn to the blog.


with what to start with...

There is so much I want to push through and start learning in more detail.

The list includes the following:
  • Red Hat Certified System Administrator Certification
  • AWS and AWS Certification
  • Ansible (even though I am currently using Saltstack)
  • Java/Scala/Akka
  • Various Apache Projects (Cassandra, Kafka, etc)
  • Agile Methodology
  • PowerShell/DSC
  • Windows Server Administration (my knowledge on the Windows side has always been limited)
  • Contributing to Open Source
  • Jenkins
  • Docker/Kubernetes
  • Learn More About (Mastery) -
    • Saltstack
    • Python
    • Git usage
    • Laravel/VueJs/Angular
    • etc

Too much to list.  Picking one to start with is the hardest part.   Learning new stuff for work always distracts from this too.   I have been doing more coding these days with Python/PHP, etc. 

But I just need to stop and pick one to focus on in my "free" time.  Stop being so lazy.   But which one should it be?...

Coming back to it

I have tried to start regular blogging multiple times in my life and have never stuck with it.

Life gets busy...   I get distracted by something else (Games, etc).   Laziness kicks in (Primarily this).  There is always a reason, none of them good.

This go around..  I am going to try to overcome it all.   In the hopes that blogging will push me to learn more and stop being so lazy.  We shall see how that goes.  Wish me luck.

Monday, August 1, 2016

Force Reboot/Shutdown Linux Box

I had a linux box that would just not shutdown/reboot and I didn't have physical access.   After some searching, I found the following blog and commands.


  • echo 1 > /proc/sys/kernel/sysrq 
  • echo b > /proc/sysrq-trigger


  • echo 1 > /proc/sys/kernel/sysrq 
  • echo o > /proc/sysrq-trigger

This worked perfectly for my needs

Saturday, July 16, 2016

Restore ESX Configuration

Yesterday on ESX 5.0 (Unfortunately, this customer doesn't have the option to upgrade), I was able to restore the backup using vSphere CLI.

The Process:
  1. Reinstall ESX. 
  2. Get an IP Address (We have a small DHCP pool for our management vlan) 
  3. Issue the following command: vicfg-cfgbackup.pl --server=ESXi_host_IP_address --username=root -l backup_file 
  4. ESX will reboot and come back up with the old configuration. I didn't have to touch VCenter.
And you are done.  It was rather easy and saved me a little bit of time.

Thursday, July 14, 2016

Backing up ESX Config

Recently, I looked into backing up ESX configuration because I needed to do a reinstall.   I was just looking for a way to speed up the re-install process.  We are using shared storage for the VMs so this isn't required.

What I found was two methods.   I will be using them both and report back with the results on the recovery process.

Backup Process 1:

#ssh to your host and run the following commands

# Sync config to store files
vim-cmd hostsvc/firmware/sync_config

# Create Backup
vim-cmd hostsvc/firmware/backup_config

# This will provide you with a download link you can use in your web browser

Backup Process 2:

# Install vSphere CLI

# Run the follow commands via cmd
cd C:\Program Files (x86)\VMware\VMware vSphere CLI\bin\
vicfg-cfgbackup.pl --server=<server IP> --username=root -s <Save backup file location and name>

Wednesday, July 13, 2016

Linux Startup Scripts Made Easy

A friend sent me the following link.  Its an awesome utility for creating startup scripts on any linux distro for applications that do not have scripts built into the package/installer.