To append file2 to a specific line in file1, here is command: sed -i "<line>r file2" file1 Example:
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.
Sometimes it is easy to use the passwordless SSH authentication against the remotes hosts. I wrote a script that can push your public key to remote hosts in a batch. The script can be downloaded from here
Similar to the IBM StorWize V7000 SAN Xymon monitoring script, I wrote another script to monitor the IBM BladeCenter system status. The script can be downloaded from here.
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
Continue with my previous svcmon web gui post, I added a small feature to allow users to retrieve the history data in the past X days. Now it looks this: The source codes have been updated and can be downloaded from here:
If you have ever used svcmon that you should find that it is not convenient to check the report. Basically, you have to go to the folder to view the graph one by one. What if you want to view the history graphs of same vidsk or mdisk? It should be easy to present on … Continue reading svcmon web gui