HP AM866A Brocade Troubleshooting and Diagnostics Guide v6.1.0 (53-1000853-01, - Page 123

Hexidecimal, Appendix

Page 123 highlights

Hexidecimal Appendix B Hexidecimal, or simply hex, is a numeral system with a base of 16, usually written using unique symbols 0-9 and A-F, or a-f. Its primary purpose is to represent the binary code that computers interpret and represent in a format easier for humans to read. It acts as a form of shorthand, in which one hexidecimal digit stands in place of four binary bits. For example, the decimal numeral 79, whose binary representation is 01001111, is 4F (or 4f) in hexidecimal (4 = 0100, F = 1111). Hexidecimal numbers can have either an 0x prefix or an h suffix. 0xFFFFFA is the same address as, FFFFFAh This type of address is called a hex triplet. Fibre Channel uses hexidecimal notation in hex triplets to specify well-known addresses and port IDs. Example of conversion from hexidecimal triplet to decimal triplet. hexidecimal triplet: Ox616000 Notice the PID in the nsshow output is in hexidecimal. Switch:admin> nsshow { Type Pid COS PortName NodeName TTL(sec) N 610600; 2,3;10:00:00:00:c9:29:b3:84;20:00:00:00:c9:29:b3:84; na FC4s: FCP NodeSymb: [36] "Emulex LP9002 FV3.90A7 DV5-5.10A10 " Fabric Port Name: 20:08:00:05:1e:01:23:e0 Permanent Port Name: 10:00:00:00:c9:29:b3:84 Port Index: 6 Share Area: No Device Shared in Other AD: No Redirect: No The Local Name Server has 1 entry } 1. Separate the triplets: 61 06 00 2. Convert each hexidecimal value to a decimal representation: 61 = Domain ID = 97 06 = Area (port number) = 06 00 = Port (ALPA) = 0 (not used in this instance, but is used in loop, NPIV, and Access Gateway devices) Result: hexidecimal triplet 610600 = decimal triplet 97,06,00 TABLE 21 Decimal to Hex conversion table Decimal 01 02 03 04 05 06 07 08 09 10 Hex 01 02 03 04 05 06 07 08 09 0a Fabric OS Troubleshooting and Diagnostics Guide 109 53-1000853-01

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132

Fabric OS Troubleshooting and Diagnostics Guide
109
53-1000853-01
Appendix
B
Hexidecimal
Hexidecimal, or simply hex, is a numeral system with a base of 16, usually written using unique
symbols 0–9 and A–F, or a–f. Its primary purpose is to represent the binary code that computers
interpret and represent in a format easier for humans to read. It acts as a form of shorthand, in
which one hexidecimal digit stands in place of four binary bits. For example, the decimal numeral
79, whose binary representation is 01001111, is 4F (or 4f) in hexidecimal (4 = 0100, F = 1111).
Hexidecimal numbers can have either an
0x
prefix or an
h
suffix.
0xFFFFFA
is the same address as,
FFFFFA
h
This type of address is called a hex triplet. Fibre Channel uses hexidecimal notation in hex triplets
to specify well-known addresses and port IDs.
Example of conversion from hexidecimal triplet to decimal triplet. hexidecimal triplet: Ox616000
Notice the PID in the nsshow output is in hexidecimal.
Switch:admin> nsshow
{
Type Pid
COS
PortName
NodeName
TTL(sec)
N
610600
;
2,3;10:00:00:00:c9:29:b3:84;20:00:00:00:c9:29:b3:84; na
FC4s: FCP
NodeSymb: [36] "Emulex LP9002 FV3.90A7
DV5-5.10A10 "
Fabric Port Name: 20:08:00:05:1e:01:23:e0
Permanent Port Name: 10:00:00:00:c9:29:b3:84
Port Index: 6
Share Area: No
Device Shared in Other AD: No
Redirect: No
The Local Name Server has 1 entry }
1.
Separate the triplets: 61 06 00
2.
Convert each hexidecimal value to a decimal representation:
61 = Domain ID = 97
06 = Area (port number) = 06
00 = Port (ALPA) = 0 (not used in this instance, but is used in loop, NPIV, and Access Gateway
devices)
Result: hexidecimal triplet 610600 = decimal triplet 97,06,00
TABLE 21
Decimal to Hex conversion table
Decimal
01
02
03
04
05
06
07
08
09
10
Hex
01
02
03
04
05
06
07
08
09
0a