CentOS to MS Hyper-V Volume Issues

After making an image of a physical linux box (Dell hardware running CentOS), I converted the IMG file to a VDH file and after booting had many issue. One of which was the following error which caused all databases on the respective volume to fail because the volume was in read-only mode. EXT3-fs error (device … Continue reading CentOS to MS Hyper-V Volume Issues

Enabling SNMP On CentOS / RHEL

Setting up SNMP (Simple Network Management Protocol) on a CentOS machine is a very quick and easy process and I often forget so here's a quickie on how. Install the SNMP daemon by running the following command: yum install net-snmp Once SNMP is installed you want to install the configuration utility. I always forget this. … Continue reading Enabling SNMP On CentOS / RHEL

Sending Syslog logs from Ubuntu to a remote syslog server

I don't know why I didn't have notes on this already. I've done it dozens of times. So here's the write up. I use Ubuntu and it uses the syslog facility/daemon called rsyslogd. Its configuration file is located here: /etc/rsyslog.d/50-default.conf This file tells the deamon where to log each type of message. For example the … Continue reading Sending Syslog logs from Ubuntu to a remote syslog server

MySQL Truncating or Dropping All Tables in a Database

I just had the need to truncate all the tables in of my databases. Basically I wanted the data gone but the schema to stay. Below is the linux shell command I used to truncate the tables. I've also included how to straight up drop the tables too- just keep in mind dropping tables dumps … Continue reading MySQL Truncating or Dropping All Tables in a Database

Get You External IP From Linux via the Command Line

I'm always needing to do this so here's two quick ways. Or if you prefer curl: The ifconfig.me site If you browse this website with your normal browser it will show how to get a lot of information from the command line, using curl, to get just the IP you can use: Now if windows was just … Continue reading Get You External IP From Linux via the Command Line

How do I get a Linux computer’s hardware info?

Easy! Use this command to see the cpu info:: cat /proc/cpuinfo Use this command to see the memory info: cat /proc/meminfo This gives a lot of hardware related info: dmesg Use this command to get PCI bus info: lspci I tested this on centOS. You can get the OS from this command: cat /proc/version Happy … Continue reading How do I get a Linux computer’s hardware info?