I wrote C that displays info about my hardware on ubuntu. Now I wonder how I can make it more flexible such as querying the hardware directly instead of the file the os updates. So I think I can look what write to /proc/scsi/scsi and do the same so that this code can work also on unices who could have other method than a /proc/scsi/scsi and so that I can learn how to display hardware information.
I'm attempting to remotely determine the physical location of two disks in an Oracle SPARC T4-1 server prior to performing a Solaris install. Because the disks use World Wide Names (WWNs), the Oracle documentation recommends using the OBP command "probe-scsi-all", and associating the SASDeviceName (WWN) with the PhyNum value to determine which slot each disk is in.