Use sed to append a file to another


To append file2 to a specific line in file1, here is command: sed -i "<line>r file2" file1 Example:

Advertisements

Update puppet tags


This script allow you to apply the specified puppet tags to the listed hosts. It will do a dry run against the first host, if you are happy with the results then you can kick off the changes to all hosts. The script can be downloaded from here.

Monitor V7000 active alerts in Xymon


Continue with my previous post on installing the Xymon, you can write your own monitor scripts. I wrote a script named v7000alerts to check whether there are active alerts in my IBM StorWize V7000. 1) Download the script v7000alerts to /home/xymon/server/ext, and run 'chmod a+x v7000alerts' and 'chown xymon:xymon v7000alerts'. 2) Add the following into /home/xymon/server/etc/tasks.cfg … Continue reading Monitor V7000 active alerts in Xymon