Archive for April, 2009

Install / Upgrade vbscripts for windows 32 & 64 bit

Tuesday, April 28th, 2009

A few of the software packages I use have a good enough silent installer to allow me to build a vbscript to install them. I’ve also tried to include an “upgrade” function which uninstalls the previous version of the software at the same time, using the win32_product class to find and uninstall it. The problem that occurs with this system is that 64 bit systems do not use the win32_Product class, and I haven’t found an equivalent wmi object to do this. Instead, I’ve resorted to including the uninstall command string the registry uses.  There are some problems with this, notably that the uninstall may not have a silent installer string available for it.

Apr 27 to May 1st

Tuesday, April 28th, 2009

The windows domain rename has been completed and we’re preparing the network to move from one I.P. range to a new one, which will give us more bandwidth, flexibility to deal with network monitoring requests and more room add laptops and other computing devices.

  • Monitoring deployment of ghostscript update
  • checking dhcp and dns scripts for black network switchover
  • installation of new hard drive for vmware server

April 20 to 24th

Wednesday, April 22nd, 2009

It appears our data migration was successful. I’ll be working on a lot of admin activities, and trying to sort out some problems with uninstall commands in my upgrade scripts for windows software.

  • yum update monitoring
  • making windows script work in 64 bit OS
  • windows ssl certificate checks

Dell Service Tag from Bios

Wednesday, April 22nd, 2009

I found a neat way to get bios/service tag info about a computer without using a dell utility.

Linux

dmidecode -q | grep -E ‘System Info|Serial’ | grep -n1 System | tail -n1 | awk ‘{print $4;}’

(mileage may vary depending on BIOS – better to try dmidecode -q | less to see the whole output if the above doesn’t work)

Windows XP:

wmic bios get serialnumber

UPDATE (Feb 4 2011): Alan (our linux sysadmin) found another tool which will give you hardware info on linux servers, including the serial number.  It is called lshw (you can use lshw -html or -xml to output into either format).  It is available for installation on ubuntu and debian.

April 13th to 17th

Wednesday, April 15th, 2009

I’m still working out some of the issues with the automated yum scripts – all the machines have now updated from centos 5.2 to 5.3 (Rocks Cluster software is based around centos).  Apparently not all the mirrors have synchronized the repositories they carry, so it’s taken a few days to get all the nodes to update.

  • Ghostscript and Gsview update and new install scripts
  • Windows Security Patches
  • Data migration on linux file server

yum-fastestmirror – excluding mirrors in 1.1.16

Wednesday, April 8th, 2009

In yum-fastestmirror-1.1.16-13.el5.centos, I discovered a bug involving the exclude option in fastestmirror.conf . If you exclude two mirrors that are adjacent in the mirror repository array used by fastestmirror.py to search for excluded mirrors, the second one will not be removed from the list of possible mirrors.

The reason this occurs is because the for loop which iterates through the array skips the next value after an entry is removed from the array. I was able to fix it by changing line 195 from:

for mirror in repomirrors[str(repo)]:

to

for mirror in repomirrors[str(repo)][:]:

Now it uses a copy of the array to search, and can delete the entry from the original array without effecting the next value in the for loop.

It appears that this bug has been resolved in yum-utils-1.1.18 and higher, by using the filter command to go through each mirror and test it against the exclude list. I’m learning all sorts of neat python tricks today!

April 6 to the 10th

Tuesday, April 7th, 2009

I’m going to be concentrating on the cluster update tests this week – testing out the package list I’d like when we next decide to upgrade the cluster OS. We’ve also added a new backup routine for some of the home directories on our linux file server, so I’ll be continuing to monitor that, as well as the security updates for the windows machines running adobe products.

  • New version of Maya
  • Cluster automatic update script testing
  • Active Directory ssl certificate research