Wednesday, October 9, 2013

How to get LUN ID which is in HEX form to decimal value

WWW.UNIXBABUFORUM.INhow to find the LUN ID which is in the Hex form as below to normal decimal value? 
# lsattr -El hdisk96 | grep lun 
lun_id 0x4000000000000 Logical Unit Number ID False 
lun_reset_spt yes SCSI LUN reset True
WWW.UNIXBABUFORUM.INHexadecimal number system is from 0-9 and A-F, the above lunid in decimal is also 4. Refer the below hex to decimal conversion table. 

Decimal Hex Decimal Hex Decimal Hex 
1 1 11 B 30 1E 
2 2 12 C 40 28 
3 3 13 D 50 32 
4 4 14 E 60 3C 
5 5 15 F 70 46 
6 6 16 10 80 50 
7 7 17 11 90 5A 
8 8 18 12 100 64 
9 9 19 13 500 1F4 
10 A 20 14 1000 3E8 
WWW.UNIXBABUFORUM.IN you have a DSx000 array and you want to provide the SAN team with the LU ID and vice versa. 
Rather than using the output from the lsattr command, you can use the following command and it will display the ID which matches on both sides. 
fget_config -Av

0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM