Centos 7 UEFI things

How to tell if you booted from a UEFI enabled machine dmesg | grep “EFI v”   When enabling net.ifnames=o Edit /etc/default/grub Ammend line GRUB_CMDLINE_LINUX=”rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us rhgb quiet net.ifnames=0″ Then run grub2-mkconfig  -o /boot/efi/EFI/centos/grub.cfg or grub2-mkconfig -o /boot/grub2/grub.cfg

Read More »

CryptoLock(Variant) repair script

Use this script to search for files that have .encrypted appended to their name and replace them with a version from shadow copy This powershell script will create the symlink given the ShadowCopy name you provide, it will then search the folder specified and replace all effected files removing the encrypted versions.   This script is […]

Read More »

HP Blade system commands (C7000)

Hard reset power to a blade(Undocumented?) This will reset the power to the blade instantly, effectively removing it from the chassis and re-inserting it reset server x   Original article – http://h20564.www2.hp.com/hpsc/doc/public/display?docId=mmr_kc-0115524   Factory Reset an iLO using Onboard administrator Where 6 = Blade bay # HPONCFG 6 << @ <RIBCL VERSION=”2.0″>   <LOGIN USER_LOGIN=”Dontcare” […]

Read More »

A quick and dirty script to backup Openstack config files

You will of course need to run ssh-copy-id root@hostname for each machine you want to connect to prior to running this script   #!/bin/bash # declare an array called array and define 3 vales osdirs=( “/etc/nova” “/etc/neutron” “/etc/cinder” “/etc/glance” “/etc/keystone” “/etc/httpd” ) servers=(“vm-os-ks01” “vm-os-glance01” “vm-os-dash01” “vm-os-net01” “vm-os-net02” “vm-os-cinder01” “vm-os-radosgw01” ) for s in “${servers[@]}” do […]

Read More »

Linux get server hardware information

Get the model number of a server, tested on HP DL380 and 180’s   [root@cephosd4 ~]# dmidecode | grep “System Information” -A20 System Information         Manufacturer: HP         Product Name: ProLiant DL180 Gen9         Version: Not Specified         Serial Number: xxxxxxx         UUID: xxx-3335-5541-xxx-313930303734         Wake-up Type: Power Switch         SKU Number: 778453-B21         Family: […]

Read More »

OpenBGPD on pfSense

Here is a working config from a multi site MPLS VPN connection managed by AAPT We terminated the connection in the data center with pfSense and OpenBGPD Default route for all remote sites is via the data center   AS 64512 fib-update yes listen on 10.252.0.18 router-id 10.252.0.18 network 0.0.0.0/0 network 192.168.30.0/24 neighbor 10.252.0.17 { […]

Read More »

hpacucli on Linux

Original article here – http://www.thegeekstuff.com/2014/07/hpacucli-examples/ Using hpacucli to manage RAID Create a single disk RAID0 (How i use Ceph on my HP DL180’s) hpacucli ctrl slot=2 create type=ld drives=1I:1:8 raid=0 Show a logical disk sudo hpacucli ctrl slot=0 ld 6 show Turn on the LED for a LD(Not a PD) sudo hpacucli ctrl slot=0 ld […]

Read More »