Hi,
I want to get the Hard Disk serial number of SCSI HDD on Solaris. On linux this
is done using following structs and API:
struct hd_driveid hd;
int ide;
ide=open("/dev/hda",O_RDONLY);
(void)ioctl(ide,HDIO_GET_IDENTITY,&hd);
(void)printf("Serial number - %s\n",hd.serial_no);
Is there any similar method exists in Solaris to get HDD serial number.
Thanks
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code