Scripting

Grab several screenshots from specified window in linux

This was a short bash script I wrote to help document some startup problems on a server. The script was grabbing screen dumps from iDRAC during boot on a RHEL6 server, but it can be used on other distributions as well since the console command xwd is common. #!/bin/bash # Description: # Grab screenshot of […]

Read More
Scripting

How to corrupt a disk partition using dd

I wanted to test corruption of a 41TB XFS filesystem and the dd command was the perfect tool for the job. I used a block size of 512 bytes and wrote 10 blocks of data from device /dev/urandom to the partition /dev/sdb1. The “Seek” option specifies how many blocks are skipped, counting 100 blocks from […]

Read More
Scripting

Migrate Zimbra mail filter rules between servers

This is a short HOWTO migrate Zimbra mail filter rules from one server to another or even copy the rules from one user and import them to another. These commands are useful to use when you migrate user accounts between servers since mail filters are not migrated using the Zimbra to Zimbra migration script, zmztozmig […]

Read More