Archive for May, 2009

Viral steps up to the plate

Friday, May 29th, 2009

Last night I went along to what has supposed to be a user group presentation type thing on Windows 7, Server 2008 R2 and why we should consider upgrading to them.

Unfortunately, the pe[rson|ople] who were supposed to present we unable to at the last moment, but thankfully Viral Tarpara stepped up to the plate and gave us his spin on these operating platforms, many thanks to Viral :oD

By his own admission, Viral is not a server person, and he did not have a pre-fabricated deck to present from, so the server side was a little light on detail. however his sections on Windows 7 client were very complete indeed.

While Windows 7 has clearly had a lot of work done on it (millions of lines of code removed I’m told…..no wonder it runs quicker !), I am still not yet convinced that I should move to it. most of the features seem to shave a click or two off here and there, which, while is progress, is not going to generate vast amounts of additional time in my working day.

My reason not to upgrade may also be something to do with the fact I am still only mid-way through the migration to Vista on the desktop here…..and I don’t fancy going through it all so soon again just yet.

For anyone who wanted more information on the application compatibility toolkit and shims, Chris Jacksons blog has a lot of useful information, and there is a very cool live demo video of Chris fixing an application at Teched 2008 in Barcelona (the video is on the second page, upper right hand corner).

Fashion TV’s Suzuki St. Pierre

Tuesday, May 26th, 2009

The Royal Vauxhall Tavern had a summer garden party on the grassy knoll on the bank holiday weekend. among the throng of people hanging out on the hill was star of Ugly Betty’s Fashion TV, Suzuki St. Pierre (real name Alec Mapa)

He was a genuinely nice guy and nothing like his TV persona at all. he even allowed me to take a couple of snaps with him.

dsc00132

The Long Long Weekend

Tuesday, May 26th, 2009

My friends Matt and Dave came up from Bournemouth and dropped in for a quick coffee on the bank holiday weekend. yay :o)

dsc00137

Was really nice to catch up with them and hear all about their sailing adventures.

water back under the bridge

Sunday, May 24th, 2009

All the water that was drained from St. James park lake/pond (note to self:: google lakes and ponds to determin the difference) has now been put back in after cleaning.

img_0041 img_0072

Can’t say I actually noticed the water level lowering or rising during the whole process, it was just kinda empty one morning on my way to work, and then full again a few weeks later (clearly there was also a shift in the weather as well, look at the difference in the sky).

img_0042 img_0073

All the wildlife has returned and seem to be happy with the spring clean that was forced upon them :oD

Rule Of Thumb

Saturday, May 23rd, 2009

We use email as part of the monitoring solutions at work. There are always a few dozen alerts issued during the working day (sometime considerably more if we have a problem…..or sometimes just a problem with the monitoring system itself :o)

To keep some sot of order on my inbox, I have created sets of rules that either move, delete or do some other action with msgs that are pushed onto me. During the working day this is all automatic and working fine.

However, out of hours presents a slight issue. we use Blackberry devices to stay in touch with our email boxes during the evenings so that we receive the email alerts from the monitoring system. A Blackberry enterprise server (BES) sits adjacent to the exchange server and watches the inbox of certain people. If a new message hits the inbox, the BES will push a copy of the email out to the blackberry mobile device. But here’s the problem, if my rules are left running active, the messages get sorted before they actually hit the inbox…….so the BES never sees them and I don’t get a copy sent to me :o(

The work around for this is pretty simple, I just deactive my rules when I leave the office at night. This does sometimes however result in my arriving to an inbox *full* with unsorted alert messages. To clear my inbox down, I have to manually run my rule sets aginst my inbox, and for the number of rules I have that’s a lot of clicking for first thing in the morning.

So I thought I would have a look at automating this task with the built in office visual basic. My first stumbling block here is pretty big. I am not a programmer/coder by any stretch of the imagination. All other office applications will allow you to get the bones of a macro down by recording your actions in the application. The vba editor then presents you with the code for the actions you just carried out, and you can flesh the code out a bit to make it more slightly more generic and vastly more useful.

Outlook does not have this recording feature :o( so, you have to start pretty much from a blank slate. The office installed help file are however incredibly useful and concicse and following them I was able lash the following together


Sub runrules()
Dim colRules As Outlook.Rules
Dim oRule As Outlook.Rule
Dim oInbox As Outlook.Folder
Set oInbox = Application.Session.GetDefaultFolder(olFolderInbox)
Set colRules = Application.Session.DefaultStore.GetRules
For Each oRule In colRules
oRule.Execute showprogress:=True
Next
End Sub

It’s pretty short, not terribly verbose and contains no error checking, but it does do the trick (it was more verbose while I was working it out, I had msgboxes popping at various stages informing me what certain objects and their values were)

I think I’m gonna share this with my boss as he has even more inbox mail rules than I do :oO

Score those brownie points !

Home NAS To The Rescue

Saturday, May 23rd, 2009

My 500gb lacie external mac mini storage unit decided it was no longer going to work :o(

The fault seemed to be with the bus interface of the casing, rather than the drive itself. The drive is a bulk standard ide drive which gets converted to a usb port connection on the outside of the case via an internal cross connector.

First off I tried connecting the device to a PC instead of the Mac to see if anything could be seen/salvaged at all (the Mac mini’s role is an mp3 file repository for the Sonos wireless hi-fi units around the home……no Mac mini = no music !! gaaaaaaahhhhhhh :o(

I opened the case and extracted the physical drive and connected it to a PC using a standard ide cable. The PC recognised the drive no problem, but clearly Windows does not understand the Mac OSX file system without some help.

Luckily, macdrive to the rescue. Once installed I could read all files on the mac volume and was able to copy them across to a more reliable drive.

Next step was to provide new storage. Almost losing 10 years worth of music collecting was quite a panic, so I wanted the new solution to provide some piece of mind. enter the Qnap TS209 Pro II nas server.

ts-209 pro ii

The device costs just under £230 from scan.co.uk without drives. Offically Qnap only support the device with 1tb drives fitted, but I have seen reports of people running them with 1.5TB drives (probably 2TB drives by now !). A pair of 1tb seagate drives cost £63 each so the whole thing came in for under £400.

The device is small enough to fit into the little cupboard next to my media unit and runs almost silent, even during write operations. The device is powered by a marvell cpu running at 500Mhz and configuration is managed by a well designed web interface.

Embedded applications include ftp server, web server, mysql database server and more, although I don’t need any of these as I just need somewhere to dump files. Having x2 drives the configuration options are either RAID 0 striping across the x2, which will improve read/write performance, but provides no resiliency, or RAID 1 mirroring which halves the total storage capacity but provides piece of mind.

The initial setup requires a direct ethernet connection from a PC/Mac directly into the units ethernet port. Once you have assigned the device a tcp/ip address you can connect it to the network and finish the setup.

You have the option to select either NTFS, FAT and EXT3 filesystems so you can use it with both PC and Mac/Linux/Unix systems. My only gripe with it would be the pre-configured shares defined on the system. There are shares such as Qdownload, Qweb, Qusb etc. etc. (you get the idea) that you cannot remove. You can however mark the shares as hidden so they don’t show up on the network so this is not a major show stopper.

Performance seems ok. The device has been handling simultaneous read/write requests from me, my flatmate, a visiting friend, a x3 sonos wi-fi players without any blips or stutters. All in all, money well spent and I sleep much better at night knowing my data is duplicated.

Not A .pst In Sight…..!

Friday, May 22nd, 2009

I recently started to work for a new company. I have to say I love my new roll, these guys are pretty cool in terms of technology and agility.

They are predominantly based on Microsoft technologies, but there is the odd *nix box or VM in there as well, and all the comms stuff is Cisco thankfully, so I can hit the ground running there :o)

So, my first task on joining…….”migrate us off the old exchange 2003 server onto the new exchange 2007 server”. Easy I though, can use the console to do that, should only take a couple of days. “Oh, the servers are in completely separate forests though, there is a trust between them if it helps ?……”

Ah, not so simple now then. From my knowledge of exchange server 2007 (which is limited at best, I don’t know anyone else using anything beyond version 2003) the gui is no longer an option to move mailboxes. I’m gonna have to learn the exchange power shell command line tool.

The tool in question is the ‘move-mailbox’ cmd applet and takes an absolute dump truck of arguments to make it work. Googling returned hundreds of hits for what seemed to be the exact scenario that I was facing. So here’s what I started with

Permissions required to move mailboxes across forests are listed on technet :

http://technet.microsoft.com/en-us/library/aa997599.aspx

down near the bottom. Essentially you need the following on the source and target locations

  • Exchange Server Admin
  • Exchange Recipient Admin
  • Local Admin

Having added myself to those groups (and pretty much all the other ones that looked like they had authority to do stuff) I started attempting to move mailboxes

The first step was to define the source and target credentials to be used. These can be allocated to variables using the ‘get-credential’ cmd applet. when you run the ‘get-credential’ cmd applet it presents you with a popup dialog box where you can enter username and password. You need the prefix the logon name with the domain name and make sure you are using a logon id with the permissions mentioned above, so

$SrcID = get-credential and $DstID = get-credential both result in

get-credential

Now I had $SrcID and $DstID prepared ready to use. Next I tried to move a mailbox

move-mailbox -targetdatabase “<servername>\<storage group name>\<mailbox database name>” -identity <src mailbox alias name> -ntaccount <target mailbox name> -globalcatalog <GC in target domain> -sourceforestglobalcatalog <GC in source domain> -sourceforestcredentials $SrcID -targetforestcredentials $DstID

I ran the above with the correct values and a new mailbox appeared on the target server that seemed to be an exact copy of the source mailbox albeit with a randomly generated alias name ?

Then another problem came to light. All users mailboxes were already setup on the new server and their active directory accounts were already associated with their Exchange 2003 mailboxes. And, some of the new Exchange 2007 mailboxes already seemed to have content in them so I could not just attempt to re-associate their user object with the copied mailbox :o(

I hoped that as the copied Exchange 2003 mailbox and the new Exchange 207 user mailbox were now both on the same server in the same forest and domain there would be some tool I could use to merge the mailboxes together into one…….but no such luck

Further research revealed an ‘-allowmerge’ parameter that sounded like it would do exactly what I wanted, merge the contents of x2 mailboxes together. So I retried the command with this additional parameter

move-mailbox -targetdatabase “<servername>\<storage group name>\<mailbox database name>” -identity <src mailbox alias name> -allowmerge -globalcatalog <GC in target domain> -sourceforestglobalcatalog <GC in source domain> -sourceforestcredentials $SrcID -targetforestcredentials $DstID

This however resulted in the same result. A new copy of the source 2003 mailbox on the target 2007 server that I could not merge with the original user mailbox. So I went back to Google and found that when attempting to merge mailboxes, the applet looks for certain matching criteria. This post

http://blogs.msdn.com/anthonw/archive/2007/07/05/moving-mailboxes-cross-organizations-in-exchange-2007.aspx

mentioned about matching SID’s across domains and using the admt tool to migrate users. It sounded complicated and I didn’t fancy breaking the active directory of my new employers quite this soon into the job. Hunting around a little more I found this blog entry from the exchange server team

http://msexchangeteam.com/archive/2006/11/02/430289.aspx

which states

“Check if we can match the source NT account in the target Forest (account match based on SMTP address, source objectSID and target sidHistory, and legacyExchangeDN). If match is found, this account will be email enabled.”

So….it looks like we can match the source and target mailboxes based on an smtp address…..so I added a dummy smtp address user@migration.projto the source and target mailbox and re-ran the above command and……hey presto, the content of the source mailbox was pushed into the existing user mailbox on the exchange 2007 server. Everything cames across, mail, contacts, calendar appointments….

The only outstanding issue I have is that the old mailserver had the x3 meeting rooms available as resource objects. As these objects no longer exist on the new mail server, everyone who had re-occurring apointments booked against those objects now has orphaned appointment they do not seem able to delete or cancel. I will look at purging these orphaned items when I get a chance to study it more thoroughly

So, the mail migration is now all but complete for all x45+ users with an excess of  80GB+ of mail content……..and not a single .pst file in sight :o)

Start Of Something New

Friday, May 22nd, 2009

So….. a friend of mine who is also a bit of a tech-head told me how he started a blog as somewhere to dump information on his findings in the field of IT and all things tech related.

It sounded like a cool idea, so I installed WordPress and copied suite. It will be handy to be able to jot down all those little gems you discover and then subsequently forget and spend days/weeks/months trying to re-discover again at a later date when there’s a load of pressure on ! :o/

Given that my job involes working with Microsoft, Cisco and Unix/Linux based systems and technologies, most posts are probably gonna be about the pitfalls I hit from day to day…..