Mac – iMac 1TB Seagate Hard Drive Replacement Utility Check

The title of this post just rolls off the tongue.

I wrote a Ruby CLI utility that can batch check iMac serial numbers for their eligibility into the 1 TB Seagate HDD replacement program. The utility takes either an Excel sheet (xlsx, or xls), or a txt file as an argument. If you’re using an Excel sheet you’ll first need to:

  • Install the roo RubyGem:

sudo gem update --system
sudo gem install roo

  • Format your spreadsheet properly:
    • Serial numbers need to be in column A and start on row 2.
    • Anything can be in column B but it would be best if it’s something identifiable such as hostnames, or IP addresses.

If you’re using a txt file then you only need to make sure it contains one column of serial numbers. You can grab a copy of the utility from my Github page:

If you run into any problems or have any questions please let me know! I hope it helps.

Mac/Windows – Dynamic DNS

I once had to deal with Macs that weren’t properly updating their DNS A and PTR records. The effect of which was that some Macs were getting the wrong hostname and that was causing issues with the Active Directory plug-in. At the time DNS was located on a Windows Domain Controller, and DHCP was coming from a Cisco router. I fixed the problem by handing the DHCP responsibility to the DC and configuring it to update DNS A and PTR records on behalf of the clients. If you’re in a similar situation and can have a Windows server handle DHCP; the options needed to configure this are in the properties on the DHCP scope underneath the DNS tab:

  • Tick “Enable DNS dynamic updates according to the settings below:”
    • Always dynamically update DNS A and PTR records
  • Tick “Discard A and PTR records when lease is deleted”
  • Tick “Dynamically update DNS A and PTR records for DHCP clients that do not request updates (for example, clients running Windows NT 4.0)”

Once this is done you may want to consider purging the current DNS A and PTR records for the DHCP range so that you’re starting fresh.