59 articles Linux

mpd with the alsa equalizer plugin

Getting MPD to work with the ALSA Equaliser plugin I found a few sites with ‘howtos’ for this, although none of them worked for me. First thing to do is ensure your MPD installation is working properly, and playing music through your chosen device. If you have any problems getting MPD to work, then go…

HP Smart array CLI commands

HP Smart array CLI commands (these should apply to any system with the CLI installed) Show configuration /opt/hp/hpssacli/bin/hpssacli ctrl all show config Controller status /opt/hp/hpssacli/bin/hpssacli ctrl all show status Show detailed controller information for all controllers /opt/hp/hpssacli/bin/hpssacli ctrl all show detail Show detailed controller information for controller in slot 0 /opt/hp/hpssacli/bin/hpssacli ctrl slot=0 show detail…

Graphing disk temperatures with the Eluna Graph System

I have been using the Eluna Graph System for several years, as I like it’s simplicity. As per this post, I graph my ESXi disk temperatures so that I can keep an eye on them. Content of create.sh: #!/bin/bash rrdtool create esxi_disks.rrd \ –start `date +%s` \ –step 300 \ DS:disk1:GAUGE:600:0:U \ DS:disk2:GAUGE:600:0:U \ DS:disk3:GAUGE:600:0:U…

Blocking bogons with iptables

ipsets is a fairly recent addition to the netfilter family. It is possible to define networks / addresses and then use them in iptables. ipset –create bogons nethash ipset –add bogons 10.0.0.0/8 ipset –add bogons 192.168.0.0/16 ipset –add bogons 0.0.0.0/8 ipset –add bogons 169.254.0.0/16 ipset –add bogons 172.16.0.0/12 ipset –add bogons 192.0.2.0/24 ipset –add bogons…