rsyslogd auto-configuration

To have rsyslogd automatically create directories and files with whatever you send at it, just put this in your rsyslog.conf file (or a .conf file in /etc/rsyslog.d): # provide UDP syslog reception $ModLoad imudp $UDPServerRun 514 $template DynFile,"/var/log/syslogs/%fromhost-ip%-%fromhost%/%$YEAR%-%$MONTH%-%syslogfacility-text%" # log everything from remote servers to one file per host+month+facility if $inputname == 'imudp' or $inputname == 'imtcp' then ?DynFile # stop logging from remote servers if $inputname == 'imudp' or $inputname == 'imtcp' then ~ All directories and files are created under /var/log/syslogs, one directory per ip-hostname pair, and one file per facility per month....

June 15, 2014

Ubuntu 12.04 on HP Microserver N40L

Just some thoughts and things I’ve done. The hardware is the following: the Microserver itself, 2x 4GB DDR3, one 16GB USB flash drive, some 2TB SATA hard drives, Logitech S-150 USB speakers, and a GT520 HDMI+DVI graphic card. Installation on USB flash drive. There’s an USB port on the motherboard, so I plugged a 16GB USB flash drive and installed Ubuntu to it. The filesystem is ext4 because I trust it a lot more than btrfs and because it seems it’s quite good on a flash drive (source , it’s old, I know)....

July 4, 2012

vSphere NIC teaming, Cisco router and HP Procurve switches

So, like me, you want to have redundancy for your virtual machine network. For my lab setup, I use a refurbished Cisco router 3825 with two gigabit interfaces, two Procurve 2810-24G and a small server with 4 gigabit interfaces for the ESXi. You just have to: team the NICs on the ESXi (use src-mac + beacon probing), use port-channel on the Cisco router and src-mac too, configure the switches exactly the same way as if there wasn’t any redundancy, add a link between the two switches and configure it to transmit the VLANs you need, don’t forget to add STP on the switches and put a high priority (low number) on the link between the switches....

April 27, 2012

SysRescueCD 2.1.0 : boot PXE

C’est plus simple qu’avant ! Si comme moi, vous avez vos données tftp dans /tftpboot , vos fichiers web dans /var/www, et que l’adresse IP de votre serveur tftp/web est 192.168.0.1, alors … une suite de commandes sera plus compréhensible :) mount sysresccd-2.1.0.iso /mnt/tmp mkdir /tftpboot/sysresccd-2.1.0 cp -r /mnt/tmp/isolinux/* /tftpboot/sysresccd-2.1.0/ cp /mnt/tmp/sysrcd.* /var/www mkdir /tftpboot/sysrescccd-2.1.0/pxelinux.cfg mv /tftpboot/sysresccd-2.1.0/*.msg /tftpboot/sysresccd-2.1.0/pxelinux.cfg/ mv /tftpboot/sysresccd-2.1.0/isolinux.cfg /tftpboot/sysresccd-2.1.0/pxelinux.cfg cd /tftpboot/sysresccd-2.1.0/pxelinux.cfg ln -s isolinux.cfg default sed -i -e 's;\(APPEND /*\)$;\1 setkmap=be netboot=http://192....

April 8, 2011