Ramblings From The Litter Tray of Life

Archive for July, 2008

How to set an SNTP server by command line

Posted by graycat on 22 July 2008

Ok, I know this one won’t interest most people but it’s something I’ve had to do twice this month so I thought I’d throw it out there.

First you might be asking yourself “why is it important to set a time server? The clock looks about right to me!”

Well, my well meaning friend, the authentication protocol that windows uses within domains (kerberos) uses time as part of it’s calculations and it’s a bit picky about how far out you get. I’ve seen one server that just would not let a senior admin logon no matter what he did …. until he spotted the clock was right but the date was out by a month! Once that was corrected, he was off and running!

Normally within a domain you will be assigning IP addresses using DHCP and you can add the time server in there as one of the options. However, if you get into the situation where you need to check it is synchronising with the right box you can use this command:

Net time /querysntp

This will then spit out where it’s getting its time from. If nothing is being syncronised with then it will also report this too.

To add a server you’ve need theĀ  /setsntp: switch so something like this would do the job:

Net time /setsntp: timeserver.mydomain.com

If you run the querysntp again, it should report the current SNTP server you’ve just set.

A bit of advice though – it doesn’t matter if you set the clock 45 minutes out of whack with the rest of the world …. as long as all you’re machines are set like that!

Posted in IT | Tagged: , , , , | 2 Comments »

Installing my first VMWare Server (Part 1)

Posted by graycat on 19 July 2008

Well the day is now upon us when it is time to install my first VMWare server. So here’s an account as I go through the process. I’ll update it as I go along and try to keep the swearing to a minimum.

[wavy flashback fade out]

It’s a hell of a week. My last day off seems so long ago. Probably because it is and I’ve worked through my last weekend or two … or is it more? Can’t remember.

As I said, this would be a really bad time to give up smoking if I smoked. The week started ok on Monday and then dived like a concrete glider on Tuesday. Things got so bad we were about 30 mins away from calling in Microsoft but managed to work it out in the end (more on this in another post or two). The up shot is I’ve got to build our new VMWare host and rapidly! No prep time and having to chase for the software licences, just bite the bullet, grab the bull by the horns and go for it!

Friday afternoon was spent unpacking our shiney new HP ML380 server and accompanying MSA70 external drive array. Unpacking it was no problem, getting it into the rack was more interesting.

Yes, we’ve got 4U free.

No, they’re not together. Great.

I’ve always wanted to move some kit in that rack anyway so might as well do it now!

The installation of the hardware went fine with it all fitting into place nicely. The only issue was the KVM wasn’t showing the new server but as it was gone 6pm already on Friday in a week I’m already pushing 70hrs+, I think I’ll leave it for the morning.

[relocated to that evening and the Graycat Mansion]

Curled up on the black leather sofa, drinking a glass of wine and browsing online install guides on my black MacBook I’m nothing if not colour coordinated and the epitome of casual suave-iness (new word by the way).

After a relaxing evening of reading and socialising with the housemates who turn out haven’t been abducted by aliens and are infact alive and well, it’s time for a serious cat nap ready for the morning’s fun and games.

[Wavy flashback fade out as sleep takes hold]

To be continued ……

Posted in IT | Tagged: , , | Leave a Comment »