Thursday, October 11, 2007

Print Info from Meridian Mail

Part of my Job is adminstering a Meridian Mail Voicemail system. Occasionally I have to print information that I'm searching for.

Using Procomm Plus, It's possible to print this infromation.

  1. Create a Generic / Text Only Printer. Do this (on Windows XP)by: 
    1. Select Add a Printer
    2. Hit next on the Wizard, Select "Local Printer Attached to this computer", Deselect "Automatically detect and install my Plug and Play Printer" and hit Next 
    3. In the "Use the Following Port:" dialog, from the drop down box, select FILE: (Print to File) and press Next.
    4. In the next screen, From the Manufacturer select Generic and in the Model box select Generic / Text Only and hit Next.
    5. Hit Next on the rest of the dialog boxes, and you should be done. You might want to change the Default printer question to No
  2. In Procomm, select the Generic Text Only Printer in the Printer Setup dialog
  3. In Notepad, type out the path of the file you want to save it to, and put copy it to the clipboard.
  4. Select Print from Procomm
  5. A box will pop up asking for the filename. Paste the filename you prepared in step 3 into this box. You have to do this VERY quickly.
  6. Leave it alone until Meridian Mail stops saying Working.

Yankee Swap Rules

I wrote these rules down because a few years ago, my office began to play Yankee Swap instead of Secret Santa. (Sometimes called White Elephant, or Dirty Santa). Growing up in Boyscouts, we used to play Yankee Swap for our annual Christmas party. It always went well with a bunch of 12 year olds, so Imagine my surprise when it went horrible wrong for my office party.

The reason was immediately apparent, the people running the game were using some harebrained rules. (If someone takes your gift, you can take someone else's, and then they can take someone else's, etc, etc, etc.) The game would take forever, everyone was quite bored, since every turn consisted of everyone stealing the same present over and over. It got so bad they started making spot rules up. (Time limits, gifts can only be stolen once (This was the rule they were missing at the beginning, but by this point everyone was bored))

So I set out to find the rule set we used in Boyscouts. It works great for large groups (which was the primary downfall of the failed office party, we had 60 people) as well as small groups.

Finding Stale Mailboxes in Meridian Mail

Sometimes when you have a large enterprise, and a old installation you lose track of mailboxes. Other times, people just stop using them, and leave, and never tell you they're gone.

Here's a quick way to print out a list of mailboxes that the system has marked "Stale"

Open up Meridian Mail and login.

  1. Select System Status and Maintenance
  2. Select System Event and Error Reports (SEERS)
  3. Select SEER Retrieval
  4. In SEER Class, put in 91, this is the only info you need to enter, unless you have more than one report. (Small Systems may have multiple reports)
  5. Either select show report, or Print it.
That's all there is too it. It will actually show you how many days it's been since someone logged into the mailbox.

Tuesday, September 11, 2007

Logrotate with Syslog-NG

I wanted to archive my logs that are created with Syslog-NG. But I also wanted to delete them after a while.

Syslog-NG does a great job of rotating the logs. There is even a script on the Syslog-NG FAQ that will compress the logs.  My script has now been copied up there. (wohoo)

But we have a pretty small Syslog server, and generating 10gigs of logs day fill it up pretty quick.

Here's the script I wrote...

It's pretty simple to follow:
Find all files in the log directory that are not dated today, and that are not .gz, and archive them using gzip. We chose to use Gzip because of the time it takes compared to b2zip. Yes, we can get more space from
B2zip, but we usually have to uncompress the file, and B2zip can take 20 minutes to do this.

Then, find all files that have not been modified in 14 days, and delete them.

Then, find all directories that are empty, and remove them.

There is a small logic problem with this script. If you change the modification time of the archive, say by unzipping it, and then rezipping it, it will take an addition 14 days to delete.

[root@server cron.daily]# more syslog-ng-logrotate

# Current policy is:
# Find all non-Archived files that aren't from today, and archive them
# Archive Logs are deleted after 14 days
#Changes. Change -mtime +14 to the number of days to keep
# Archive old logs
/usr/bin/find /var/log/HOSTS ! -name "*.gz" -type f ! -path "*`/bin/date +%Y/%m/%d`*" -exec /usr/bin/gzip {} \;

# Delete old archives
find /var/log/HOSTS/ -daystart -mtime +14 -type f -exec rm {} \;

# Delete empty directories
find /var/log/HOSTS/ -depth -type d -empty -exec rmdir {} \;

Friday, May 18, 2007

Peanut Butter Chocolate Bars

I got this recipe from my mom.

Mix together:

  • 1 1/2 sticks melted butter
  • 2 1/2 cups graham cracker crumbs
  • 1 1/2 cups confectioner's sugar
  • 1 1/2 cups peanut butter

Spread in ungreased 9x13 pan. Press firmly.

Melt 12 oz. chocolate chips. Spread over peanut butter mixture. Chill. Cut into squares and serve.