1.24.2012

Solaris 10: Server Hardware Path to Physical location

Wrote a little script to determine the physical locations of devices in a SUN server based on the hardware path;   to assist in a datacenter move project I got involved with at work. It's a hack job for sure; the case statements are a little brute force in nature and probably could be cleaned up significantly. The functions for each server type probably would be better in their own files but never needed to get that in depth with it.

The script seems to work reasonable well in Solaris 10 for the servers we are using at work (mainly T and M series and some older E6900).  This wiki was super helpful in getting the script off the ground; and contains a lot of hardware path information if anyone wants to extend the script to run against other server types. Check it out, any input would be appreciated.

Google Doc Link


No comments: