LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-27-2014, 09:49 AM   #1
konstan
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Rep: Reputation: 0
algorithm to get scsi id as page 0x83


What is the algorithm used to create page 0x83 SCSI id?

Code:
# scsi_id --whitelisted --page=0x83  --device=/dev/sdjj
3600a0980443175414a3f4443364d5638
#
that is used in the corresponding soft link /dev/disk/by-id/scsi-3600a0980443175414a3f4443364d5638 out of the disk type, vendor, model, serial etc. as in

Code:
# scsi_id -g -x /dev/sdjj
ID_SCSI=1
ID_VENDOR=NETAPP
ID_VENDOR_ENC=NETAPP\x20\x20
ID_MODEL=LUN_C-Mode
ID_MODEL_ENC=LUN\x20C-Mode\x20\x20\x20\x20\x20\x20
ID_REVISION=8200
ID_TYPE=disk
ID_SERIAL_RAW="3600a0980443175414a3f4443364d5638"
ID_SERIAL=3600a0980443175414a3f4443364d5638
ID_SERIAL_SHORT=600a0980443175414a3f4443364d5638
ID_WWN=0x600a098044317541
ID_WWN_VENDOR_EXTENSION=0x4a3f4443364d5638
ID_WWN_WITH_EXTENSION=0x600a0980443175414a3f4443364d5638
ID_SCSI_SERIAL=D1uAJ?DC6MV8
#
# scsi_id --whitelisted --page=0x80  --device=/dev/sdjj
SNETAPP  LUN C-Mode     D1uAJ?DC6MV8
#
I remember seeing a pseudo code somewhere on the web couple of month ago, but can no longer find it Thanks!
 
Old 03-02-2014, 02:57 PM   #2
konstan
LQ Newbie
 
Registered: Feb 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Looks like this is how it goes:

Code:
3600a098044316475463f444336434c6e serial (page 0x83 inquiry)
         44316475463f444336434c6e scsi serial (base64.b16encode('D1duF?DC6CLn').lower())
 600a098044316475 WWN
  00a098 OUI (NetApp)
3 scsi disk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem type is ext2fs, partition type 0x83 TONYSUCCAR Linux - Enterprise 2 08-13-2009 02:20 AM
PCLOS: Boot error: file system type is ext2fs; partition is 0x83, and error 13 dpeirce Linux - Distributions 3 09-29-2008 10:48 PM
token bucket algorithm vs Leaky bucket algorithm xeon123 Linux - Networking 2 03-26-2007 04:57 AM
LVM takeover of 0x83 Linux sclose Linux - Newbie 0 11-15-2004 05:28 PM
Hotplug SCSI scanner or How to write to /proc/scsi/scsi from within a shell script. samac Linux - Hardware 1 08-30-2004 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration