Disable Firewalld in CentOS 7

Simple instructions on how to stop, disable and the check the status of firewall   1) Stop the firewalld service # systemctl stop firewalld   2) Disable the firewalld service from starting # systemctl disable firewalld   3) Check the status of the firewalld service # systemctl status firewalld  

Move MySQL Directory in WHM \ cPanel

We originally installed an image from the cPanel website. The /root parition holds the system information and the /data  houses the users  web and mail data. Unfortunatley the /root partition is NOT installed as an LVM which makes it difficult to expand. What I did notice is that the users MySQL data is actually stored in the /root Read More…

Useful Exim Commands

Here are some useful CLI commands when dealing with mail queues on EXIM:   List amount of messages in the queue /usr/sbin/exim -bpc   List all messages in the queue /usr/sbin/exim -bp   Get a summary of the current mail queue /usr/sbin/exim -bp | exiqsumm Here is an example output Count  Volume  Oldest  Newest  Domain Read More…

Install Unbound on FreeBSD 10

Below are instructions on how to install Unbound on FreeBSD Firstly install Unbound from the ports tree:   # cd /usr/ports # make search name=unbound Port:   unbound-1.5.7 Path:   /usr/ports/dns/unbound Info:   Validating, recursive, and caching DNS resolver Maint:  [email protected] B-deps: autoconf-2.69 autoconf-wrapper-20131203 automake-1.15_1 automake-wrapper-20131203 expat-2.1.0_3 indexinfo-0.2.4 ldns-1.6.17_5 libtool-2.4.6 m4-1.4.17_1,1 perl5-5.20.3_8 R-deps: expat-2.1.0_3 ldns-1.6.17_5 Read More…

PowerCLI Script to Get Number of CPUs, RAM and Provisioned HDD Size

The following script looks at particular folder (finance) on a vCenter Server then for each VM gets the number of CPUs, memory in GB and calculates the combined size of all HDDs. This is then exported to a csv file.   Connect-VIServer -Server {hostname} -User {username} -Password {password} Get-Folder 'Finance' | Get-VM | Sort Name -descending| Select-Object Read More…

Telnet Using Source IP Address On a Cisco

I ran into a spot of bother trying to get to a remote router due to incorrect access list.  To save me a long drive I came across the following command so I could telnet using the source IP address rather than just the interface. # telnet {ip} /source-interface {interface} /route:{sourceIP} eg # telnet 192.168.61.152 Read More…