Posts By: jonny

Offline PluralSight Videos

I wanted to watch a PluralSight course while on a flight without internet access. This might well be against the PluralSight terms and conditions so I don’t recommend doing this. I used a recent version of youtube-dl and used a recent version of python via conda: conda create -n python37 python=3.7 anaconda conda env listconda… Read more »

Installing Vault with Zookeeper

Hashicorp Vault supports several backends for secret storage. I was creating a test Vault to play with PKI certificate generation and started with installing Zookeeper After download the Vault binary and extracting it to /usr/local/sbin/vault, I created a config file at /etc/vault/config.hcl vi /etc/vault/config.hcl storage “zookeeper” { address = “127.0.0.1:2181” path = “vault/” }listener “tcp”… Read more »

Terraform with VMWare

I didn’t find much in the way of examples online for using Terraform against VMWare. So here is the .tf config that worked for me: provider “vsphere” { user = “jonny@dev” password = “CHANGEME!” vsphere_server = “192.168.1.2” allow_unverified_ssl = true }data “vsphere_datacenter” “dc” { name = “ESX Lab” }data “vsphere_datastore” “datastore” { name = “netapp002-svm001-vmaggr01-datastore001″… Read more »

Apply Export Policy on NetApp 9.1

There have been some changes to the NetApp menu and it took me a few minutes to find the location to apply export policies to a volume. It is currently (version 9.1) found under the ‘Junction Paths’ menu tab for the SVM. The ‘Export Policies’ are defined under the specific SVM:

Minecraft Spigot Server on CentOS 7

I’m just recording some notes here on the steps I took to run a Minecraft (Spigot) server on a CentOS 7 server. Install Pre-requisites yum install git python-twisted-core python-psutil python-urwid python-twisted-web screen Get Java You could try using OpenJDK with yum install java-1.8.0-openjdk Or visit the Oracle website agree to the license agreement and download the jdk-8u131-linux-x64.rpm file. Copy that file to your… Read more »

Hostname Completion

Shell

Courtesy of Pete in work. To enable hostname auto completion in Bash, do the following: dig pop @dns.server.tld axfr | awk ‘$4 ~ /\yA\y/ && gsub(/.$/,””,$1) {print $1}’ > ~/.hosts If you would prefer to filter out hosts e.g. dev and swi, change awk to: awk ‘$4 ~ /\yA\y/ && ! /dev/ && ! /swi/… Read more »

Changing Dell iDRAC Password with racadm

Shell

The default user and password combination for a Dell iDRAC interface is root / calvin It can be manually reset when logging in to the web interface but when doing many machines at once and many actions at the same time the racadm tool is handy. To change the password use: racadm -r 192.168.1.23 -u… Read more »

Querying Zookeeper from Python

Install the prerequisites. Below works for Debian-based distros such as Ubuntu/Mint: apt-get install libzookeeper-mt-dev Install python libraries: pip install zkpython pykeeper Example code below shows making a connection, getting the names of some child nodes and pulling info from each of those child nodes: import pykeeper import json client = pykeeper.ZooKeeper(‘192.168.1.2:2181’) client.connect() coords = client.get_children(‘/druid/coordinator/_COORDINATOR’)… Read more »

Install check_mk on Ubuntu 18.04

Ubuntu 18.04 includes check-mk in the repository version but it is an older version 1.2.8 (at the time of writing). Download check mk raw (get the latest stable URL from the website) : wget https://mathias-kettner.de/support/1.5.0p7/check-mk-raw-1.5.0p7_0.bionic_amd64.deb Try installing it: dpkg -i dpkg -i check-mk-raw-*.deb You may get dependency issues which can be resolved with: apt-get install… Read more »

iDRAC 9 Set Physical Disk to Non-RAID

In the update from iDRAC 8 to iDRAC 9 it has been infuriating searching the ‘Storage’ menu only to discover that the storage is managed under ‘Configuration > Storage Configuration’  I’m convinced the user experience could be better! At the very least a link through for configuration.