Author Archive

Installing MySQL on Centos 7 server using Ansible.

November 20, 2016
By
Installing MySQL on Centos 7 server using Ansible.

This is the content of the inventory file on my Ansible server. The remote server is called test1 under the group web-server. # cat hosts test1 The playbook is called mysql-repo.yml. This will install the MySQL Community Repo, you need this to install MySQL. CentOS7 is shipped with MariaDB but since I...
Read more »

Tags:
Posted in Software | No Comments »

Installing and learning Ansible

November 18, 2016
By
Installing and learning Ansible

I am learning Ansible and am documenting my progress. I built two Centos 7 test servers, the main one is called Ansible and the remote server is test1. To install Ansible first add the EPEL Repository for Centos 7 rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm Now you can install it. yum install Ansible Check for version installed....
Read more »

Posted in Software | No Comments »

Harden Windows Server

June 10, 2016
By

These are some steps you can take harden a Windows Server. Disable SSL 2.0, SSL 3.0, TLS 1.0, TLS 1.1 and RC4 cipher. Disabling SSL 3.0 will address the Poodle vulnerability, in addition to that you should also disable SSL 2.0, TLS 1.0 and TLS 1.1. POODLE Vulnerability CVE-2014-3566 The SSL 3.0 protocol was...
Read more »

Tags:
Posted in Technology | No Comments »

Mount Windows CIFS share on Linux server using kerberos keytab

May 4, 2016
By

Use kerberos ticket to mount CIFS shares on a Linux server. You do not need to know the password for the account, nor have the password stored in a file. Create the keytab file for the account my-account, this step must be completed by a Domain Admin on a domain controller C:\>ktpass -princ my-account...
Read more »

Tags: , ,
Posted in Technology | No Comments »

Change the IP address of a Windows servers with VMware PowerClI script

April 27, 2016
By

VMware vSphere PowerCLI script to change the IP addresses of Windows servers. $TranscriptFile = “.\change-ip-2.txt” #Stop-Transcript Start-Transcript -Path $TranscriptFile $windowsID = “administrator” $windowsPassword = “MyPassword” Function Set-WinVMIP ($VM, $IP, $SNM, $gateway){ $nics = Get-VMGuestNetworkInterface -VM $VM -GuestUser $windowsID -GuestPassword $windowsPassword | ?{$_.ip -ne $null} Write-Host “Changing IP for $VM to $IP” -BackgroundColor DarkBlue Set-VMGuestNetworkInterface...
Read more »

Tags:
Posted in Technology | No Comments »

Find VMware Guests with Raw Physical Disks

February 27, 2016
By

VMware vSphere PowerCLI script to find all guests that have RDMs or raw physical disks. $Servers=”vcenter1″ Connect-VIServer $Servers $vms = get-cluster | get-vm Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | out-gridview -PassThru | Export-Csv -Path .\vm-with-rdm.csv
Read more »

Tags:
Posted in Technology | No Comments »

VMware PowerCLI script to list snapshots older than specific days

September 27, 2015
By

A VMware vSphere PowerCLI script to find and email a list of all VMware guests that have snapshot older than 3 days. # List all VM with snapshots # Run as scheduled task with a user with rights to view all VMs Add-PSSnapin VMware.VimAutomation.Core $Age = 3 $strOutFile = “c:\snapshot-result.htm” del $strOutFile # HTML/CSS...
Read more »

Posted in Technology | No Comments »

Configure VMware Datastore Multipath Policy by Disk Type

May 27, 2015
By

Here is a VMware vSphere PowerClI script that will find all datastores that are of the model Hitachi – Open-V, set the multipath policy to RoundRobin if it is anything else. $clustername = ‘clustersomething’ $datastore = get-datastore # Find datastores by HITACHI, model OPEN-V and multipath not RoundRobin and Change to RoundRobin $disks =...
Read more »

Tags:
Posted in Technology | No Comments »

Scan for new disk without rebooting Linux server

March 6, 2015
By

After you add a new disk on a Red Hat Linux server you can scan for the new disk without rebooting. List the number of scsi host controllers ls /sys/class/scsi_host host0 host1 host2 Run this command to to scan each host0, host1 and host2 echo “- – -” /sysc/class/scsi_host/host0 Alternatively you can do all...
Read more »

Tags: ,
Posted in Technology | No Comments »

Configuring SNMPv3 client on Red Hat Linux

January 28, 2014
By

To configure snmp client version 3 on a Red Hat server you will need to install the packages net-snmp-utils and net-snmp. yum install net-snmp-utils net-snmp Make sure the snmpd service is stopped before you can configure it. service snmpd stop Create a new SNMPv3 user called “andrew”. The authentication password is “auth-pass” using MD5...
Read more »

Tags: ,
Posted in Software | No Comments »