How to retrieve SCSI Harddisk Firmware Serial Number

How to retrieve SCSI Harddisk Firmware Serial Number using the IOCTL Control Codes in DeviceIoControl Windows API..
Any Code..?
Thanks
-Tanveer

Hi,
It is my code for you.
          char *arcmsr_device_path_name;
          struct uscsi_cmd     ucmd;
          union scsi_cdb          cdb;
          struct scsi_inquiry     inq;
struct scsi_inquiry     *sd_inq;
     int               fd;
          if ((fd = open("/devices/pci@0,0/pci8086,2543@2/pci8086,1460@1f/pci8086,335@3/pci17d3,1120@e/sd@0,0:a,raw", (O_RDONLY|O_NDELAY), 0)) < 0)
               //mutex_unlock(&mhd_pln_mx);
               //Free(pln_ctlr_name);
               //return;
               perror("watchdog:open sd file fail");
               exit(1);
          (void) memset(&ucmd, 0, sizeof (ucmd));
          (void) memset(&cdb, 0, sizeof (cdb));
          (void) memset(&inq, 0, sizeof (inq));
          cdb.scc_cmd = SCMD_INQUIRY;
          cdb.g0_count0 = sizeof (inq);
          ucmd.uscsi_cdb = (caddr_t)&cdb;
          ucmd.uscsi_cdblen = CDB_GROUP0;
          ucmd.uscsi_bufaddr = (caddr_t)&inq;
          ucmd.uscsi_buflen = sizeof (inq);
          ucmd.uscsi_flags = USCSI_READ | USCSI_ISOLATE | USCSI_DIAGNOSE;
          ucmd.uscsi_timeout = 30;
printf("fd:0x%x \n",fd);
          printf("uscsi cmd ControlCode:0x%x \n",USCSICMD);
printf("arg3 ucmd addr:0x%x \n",&ucmd);
          if (ioctl(fd, USCSICMD, &ucmd)== SYSERR)
               perror("watchdog:USCSICMD ioctl fail");
          else
printf("arcmsr watchdog:USCSICMD ioctl ok \n");
sd_inq=(struct scsi_inquiry *)ucmd.uscsi_bufaddr;
printf("arcmsr watchdog:scsi disk inquiry vid=%s \n",(char *)sd_inq->inq_vid);
               printf("arcmsr watchdog:scsi disk inquiry pid=%s \n",(char *)sd_inq->inq_pid);
printf("arcmsr watchdog:scsi disk inquiry inq_revision=%s \n",(char *)sd_inq->inq_revision);
}

Similar Messages

  • Hi team! how to retrieve the IMEI and serial number of lost Iphone

    I lost my iphone few hours back. And when I tried to call my number or find it using Find my Iphone, I realized that my phone is offline. I dont have my IMEI number handy. Is there a way to get my IMEI number and block my Iphone? Pls help

    Unless you can locate it via Find My iPhone on another iOS device or http://icloud.com then you won't be able to try and find it and or lock/remotely wipe it - it can't be done via the serial number nor IMEI number. With iOS 7 it should be harder to remove from your account.
    If the phone was registered to your account then you should be able to get the serial number from your support profile : https://supportprofile.apple.com/
    Or if you still have the packaging or have a backup of your on your computer's iTunes then you can get them from there : http://support.apple.com/kb/HT4061
    You've contacted your carrier ? You should also change your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.

  • HT4061 How to retrieve my stolen iPad serial number using my a apple ID?

    I wish I could find a way to identify my iPad serial number. It was stolen from me a month ago, I could trace it to the street name but the police so far has done nothing. I was told I could trace using the serial number unfortunately it was stolen right after I got it so I don't have the box neither. I need this iPad for my studies. I can't afford buying a new one.

    You cannot trace your iPad via its serial number. If you set up your iPad and authorized "Find My iPad" in Settings, you could go to icloud.com, enter your Apple ID, then attempt to find your iPad.
    However, if the the thief isn't connected to a WiFi network, or has reset the iPad, or you didn't authorize "Find My iPad", you're out of luck. It can't be found.
    As for your police, that's not an issue that we can help you with. Some police departments will help. Some won't.

  • I need to install photoshop cs4 extended from a disk to a new computer because my old computer had a hard drive crash. There is no serial number on the back of the case.  How can I obtain a usable serial number?

    I have to install Photoshop CS4 extended on a new computer from a disk because my old computer had a hard drive crash.  There is no serial number on the back of the case.  How can I obtain a usable serial number?

    Find your serial number quickly
    You can activate software without following up and registering it... at least that was the case in the past.  The serial number is normally located on the disc case or a box inside the main box.  If you did not purchase the disc from Adobe then it is possible you would have dealt with a redemption code, in which case it would have been up to you to keep a record of the serial number, especially if you did not follow up and register the software.

  • My computer was stolen, how can I track down a serial number?

    Hi All-
    I'm in need of some assistance.  My Mac was stolen during an apartment burglary.  It was a gift from a family member who doesn't have any type of receipt.  I apparently didn't register my Mac either, my iPad and iPod yes, my stolen laptop of course not.  My insurance company is requesting the serial number or some sort of proof of ownership.  Any ideas how I can track down the serial number? 
    Any suggestions would be appreciated!
    Thank you!

    Have the family member who made the gift contact the place of purchase if possible. Most business records of computer sales have info like serial numbers

  • How to change the status of Serial number

    Hi Experts,
    Would you please help in solving this problem.
    How to change the status of Serial number?
    I have material stock in a storage location: recieved from Intercompany through outbound delivery, when PGIed material document is created when I am checking the serial numbers of the recieved ones status of the serial numbers are ESTO, I want that into AVLB.
    How can we do that?
    Regards
    Sri

    Hi,
    Go to IQ02 on Header tool bar you will find edit(2nd option on header tool bar) => edit manually=> Click from Customer=> and then to Stock you will find the expected results...
    Generally Serial number Status use to change along with the movement of material linked with that serial number... So if you are changing serial number with manual trasaction then please remove all the details from IQ02 like plant storage location Batch and master batch so that i will not provide you error while doing next transactions.
    Regards,
    Ninad Kshirsagar

  • HT200276 HOW WILL I GET THE LOST SERIAL NUMBER OF FINAL CUT STUDIO

    HOW WILL I GET THE LOST SERIAL NUMBER OF FINAL CUT STUDIO ???

    It's on the back of the installation booklet. If you've lost that, and have some proof of purchase, it can probably be sorted out by contacting Apple.
    Russ

  • How do I get the activation serial number for

    I've downloaded Photoshop CS6 Extended trial version. How do I get the activation serial number for this software

    You will need to buy the software.

  • HT1366 I thought my product was already registered with your service.  My laptop was stolen, how else may I provide my serial number if I do not have my computer any longer.

    I thought my product was already registered with your service. My laptop was stolen, how else may I provide my serial number if I do not have my computer any longer.

    If you registered it in https://supportprofile.apple.com/ you can log in there with your Apple ID and find its serial number.

  • How do I install Photoshop when serial number is called invalid even though I have registered it?

    How do I install Photoshop when serial number is called invalid even though I have registered it?

    https://helpx.adobe.com/x-productkb/global/my-serial-number-doesnt-work.html

  • How can you find your IPAD serial number in your itunes account if you have lost your IPAD

    How can you find your IPAD serial number through your itunes account if you have lost your IPAD

    If you registered it to your account then it should be on your support profile : https://supportprofile.apple.com/
    Or if you have a backup of it on your computer's iTunes then go into Edit > Preferences (iTunes > Preferences on a Mac), and on the Devices tab hover your mouse pointer over the iPad's backup :

  • How do I find out my serial number on my mac computer for this app

    How do I find out my serial number on my computer for this app and eventhough I had the app for awhile how do I register it?

    Find your serial number quickly

  • How do i find out my serial number if my macbook pro was stolen

    how do i find out my serial number if my macbook pro was stolen?

    If you registered it, go to http://supportprofile.apple.com and sign in with your Apple ID. It should also be on the box it came in if you still have it.

  • How do you add an additional serial number to TestStand logfile name?

    I have two boards that are tested as a pair and I would like to have the log name show both serial numbers for tracking purposes. The logfile name is currently set up to show the serial number of the mainboard.  I put the second serial number into a StationGlobal after it is scanned it in. How can I add the second serial number to the logfile name?
    Thanks
    Tracey

    Hi vocollect,
    I have found a Community Example that demonstrates how to modify the report name in Report Options. The pictures may not show exactly what you see If you are using TestStand 2012, but the steps are essentially the same. I hope this helps!
    How to Add User Information to a Report Name: https://decibel.ni.com/content/docs/DOC-21744
    Regards,
    Jason D
    Applications Engineer
    National Instruments

  • How to check the InDesign cs6 serial number on my office iMac? I am no the one who download it.

    Hi,
    How to check the InDesign cs6 serial number on my office iMac? I am no the one who download it.
    My InDesign cs6 keeps crashing, so my boss ask me to reinstall back. But the problem is, how do I check the serial number? Someone else has already installed it, and we cant track who.
    Please help.
    Regards,
    Cita

    >Someone else has already installed it, and we cant track who
    Not very good office/employee management... but if you DID know who, and you had his/her Adobe ID, you could go to https://www.adobe.com/account.html for a list of activated programs

Maybe you are looking for