Compare file counts per directory in PowerShell

May 31st, 2010

dir|?{$_.psiscontainer}| %{"{1,20} {0,4} {2,4}" -F (get-childitem -rec $_).count,$_.name,(get-childitem -rec ("Z:\somedir\" + $_.name)).count }

Lotus Notes (Domino) to Exchange 2010

May 14th, 2010

we more or less successfully migrated lotus notes (domino) to exchange 2010.
what you need:

  • exchange 2007 server
  • lotus notes client + account to access all mailboxes to be migrated installed on exchange 2007 server
  • exchange 2010 server
  • Microsoft Migration Lotus Notes Transport Tool

(this was all done in a virtual environment (hyper-v) and lotus notes was on linux server)

First of all you cannot migrate directly from notes to exchange 2010. The mailboxes need to be migrated to 2007 first. Once a mailbox is migrated, you can run the migration tool multiple times and it will nicely check for dups. Just make sure your users don't delete/move mails, as they will be re-created by the migration process.
Also make sure you have enough space on the exchange 2007 server, because the mailbox size is almost double (compared to lotus notes) and notes transport tool writes some hugh log files.
Our mailboxes ranged from 6mb to 8gb.
Migration is cpu intense and log files need some preprocessing before one can grep (mail me if you need to the tool - essentially I concatenate lines based on the beginning and make sure to handle utf16).
Once the mailboxes are moved from 2007 to 2010, the migration tool cannot migrate items anymore.
We migrated 99% of the emails with some errors (e.g. messed up sent times (=3 year old email end up with sent date of now), sender names wrongly mangled, calendar items timeshifted,...).
We couldn't find out what we should change in the source, so we ended up letting the users manually check and migrate the user via copy&paste.
We also successfully managed to migrate an "archive" database, by copying and mounting it on the server and changing the template.
The move from exchange 2007 to 2010 was completely painless - each mailbox was migrated within 1-2 hours.
Depending on the lotus notes permissions read/unread item status was ignored (I think write access is required to migrate the read/unread item status).
The users were mapped manually in the Transporter Tool (all the Active Directory accounts already existed). I let the Transporter Tool create the exchange mailboxes (I had some issues otherwise).
Contacts were migrated by each user using CSV - they tried multiple formats/options and if alot of fields were used in Lotus there were always some fields missing.

Why we migrated (incomplete and mostly my personal view): Outlook as client, web access, iPhone sync, failover via database availability groups, better spam filtering (we're down to 1 spam per week compared to 10 per day), outlook anywhere (=sync of outlook via https)

ORF 1/2 HD (DVB-S2) in Windows 7 Media Center *working*

February 22nd, 2010

I finally got a setup working!

Hardware: Core i7 920, ATI 4300, TechniSat Skystar HD2 PCI + TechniSat CI-Slot SkyStar HD2, XBox 360

The Media Center PC is setup using Windows 7, DVBLink. The drivers for the TechniSat cards need to be installed manually, then continue with DVBLink (make sure you follow the setup).
DVBLink found ORF 1/2 HD straight away. Channels are selected in DVBLink and configured into MC7.
The XBox 360 is added as an extender. HD live tv is working nicely, recorded videos have short stutters every 15-30sec (I already tried to disable automatic pulldown in ATI Catalyst... I'm not 100% sure if it helped). XBox is connected via 100mbit cable. Makesure it is in the same IP subnet.
Using divx 7 helped me to get mkv (matroska) files streaming to the XBox, divx avis work OOB.
Music and pictures are stored on another machine. I had to re-add the folders on the XBox again (including username/password) - even though it is already listed and working on MC7.
To watch HD videos on the XBox I was prompted to download the "optional media update". I received the error 80072f76. After the 6th try I was finally able to get it...
About the noise: I have to admit that the fan is pretty noisy... when watching tv one won't probably notice it. I even think it's louder than a projecter - but this is really subjective.
The XBox nicely starts the media center pc if it sleeps. Media Center on XBox can be configured to startup automatically.
The startup time of the XBox somehow lowers the WAF - don't think about using the controller as a replacement for the remote. The controller has all functions but not very intuitive.
Channel switching time is not super fast, but acceptable.

I hope somebody will find this helpful, since it took me some months to get a working setup.

Update using the controller for Media Center is actually a bad idea as the controller goes to sleep after while and takes quite long to wake up. I now use a Harmony 515 to control it - I added a "Windows Media Center PC" although it's not in the room (just to get the proper commands). I still had to customize the activity to turn on the XBox 360.

Replace symlinks with source

February 16th, 2010


find . -type l -exec stat {} --format=%N \; | /root/move_symlink.pl | sh
find . -type f -exec chmod 644 {} \;
find . -type f -exec chown apache:apache {} \;

move_symlink.pl

#!/usr/bin/perl
while(<>) {
/^.(.*?)' -> .(.*)'$/;
print "mv '$2' '$1'\n";
}

nagios, speedfan und sfsnmp

February 7th, 2010

tried to get speedfan, sfsnmp and nagios to work together. no success :(

ping working, http not?!

January 23rd, 2010

problem: ping to a host on the other side of a vpn works, http not.

environment:TMG on both sides, both have multiple external IPs and source side has them distributed over multiple network cards.

solution: Although I disabled web proxying and the network relation between the two vpn sites is routing, TMG still tries to access the target web server using one of it's external IPs. I tested pinging a host on the other side using various source IPs from the source TMG, I figured that only certain IPs work.
I finally configured all IPs onto one nic and it started to work.

Disable host check/ping in nagios

January 6th, 2010

problem I want to validate services of a host, though the host is not pingable (e.g. public www server)

solution For the host definition make sure no 'check_command check-host-alive' line is there (including lines inherited from templates). For nagios 3.2 / gentoo I changed my template for the host to 'generic-host' and added 'max_check_attempts 10' and 'contact_groups admins'.

HD Channels in Austria/Germany via Sat (ORF, ARD, ZDF)

December 17th, 2009

ORF1, ORF2

Satellit:ASTRA 1

Position: 19,2° Ost

Transponder: 
7
Downlink Frequenz: 
11303
Symbolrate: 22000

Fehlerschutz (FEC): 2/3

Polarisation: horizontal

Modulation: 8PSK

Übertragung:  DVB-S2


ORF 1
APID: 1921
SID: 4911
VPID: 1920
PCRPID: 1920

ORF2
APID: 2921
SID: 4912
VPID:2920
PCRPID:2920

ARD, ZDF

ARD HD / Das Erste HD und ZDF HD
ASTRA 1 (19.2 Grad Ost)
Transponder 11
Frequenz: 11362 Horizontal
Symbolrate: 22000
FEC: 2/3
Video-PID / VPID / PPID: 6010 (ARD HD) / 6110 (ZDF HD)
Audio-PID / APID: 6022 (ARD HD) / 6122 (ZDF HD)
Bildauflösung: 1280 x 720 Pixel (720p)
DVB-S2
MPEG-4
8PSK

ORF 1/2 HD in Windows 7 Media Center

December 13th, 2009

problem: I want to watch ORF 1 and 2 in HD in Windows 7 Media Center

First try using AVerTV: I bought 2 AVerTV Satellite Trinity cards that state: HDTV support and a connector for Common Interface (CI).

What did work? Media Center successfully found both cards and SAT tuning found some channels. Channel switching was reasonably fast.
Issues: First of-all HDTV support is true, BUT only for channels that broadcast HDTV via DVB-S (which happens to be the case in Australia and New Zealand). ORF1/2 HD is transmitted via DVB-S2.
About the common interface: this is a seperate disaster. I order cards in New Zealand at ascent and tried to arrange shipment via TNT, since ascent didn't want to ship to Austria. I had a lot of troubles with TNT actually accepting the transport order and when I finally managed to ship it, Ascent didn't want to sell anymore to me. Right now the package seems to be at TNT New Zealand, but they are unable to find it and return it to Ascent.

Second try using TechnoTrend Now I got in contact with the manufacturer first to make sure the cards actually work with Windows 7 Media Center AND they replied: "fully supported". So I order 2 TechnoTrend TT-budget S2-3200 at dvbshop. Shipment was faster than expected.

What works? The card is successfully recognized by Windows 7 Media Center. Channel scan found alot of channels including HDTV DVB-S2. ARTE HD, ZDF HD, Astra HD... but not ORF HD - even using manual transponder scan didn't help. Viewing of DVB-S2 channels almost works... Astra HD looks fine.

problems: ZDF and ARTE have graphic artifacts (fast moving objects are not drawn correctly). TechnoTrends support claims that this is my graphic card - it's not onboard, but an ATI card.
Common Interface support works for the first time I view channel, as soon as I switch the channel and come back it states: "channel scrambled".

Next steps Install Vista + TV Pack

Updating Intel SSD (X18-M in my case) using USB Flash Drive

September 27th, 2009

problem: updating an Intel SSD (e.g. X18-M) using an USB Flash Drive

solution: download the HP USB Disk Storage Format Tool and the latest update from intel.
Now make your flash drive bootable with the HP tool and select the content of the Intel update (e.g. mount it using Daemon Tools or similar) as boot content. Then copy the rest of the content of the Intel update to the flash drive (iSSDFUT.exe,...).
Finally change (if not already in that mode) the SATA mode to AHCI in the BIOS. Now boot the flash drive. Run

iSSDFUT.exe

After reboot change the SATA mode back to the original one.

notes: I installed the HP tool on Windows 7. After starting the HP tool using "Run as Administrator" everything worked fine.

During investigation I often forgot to change the SATA mode back to IRRT (in my case). Interestingly Windows 7 still booted, but prompted me to perform system recovery - which of course failed :) . After changing the SATA mode back to IRRT everything worked fine again.