Alcatel Carrier Internetworking Solutions 6800 Manuale Utente

Pagina di 614
Port Numbering Conversion Overview
Troubleshooting the Switch System
page 1-36
OmniSwitch Troubleshooting Guide
September 2005
Port Numbering Conversion Overview
The sections below document how to convert port number parameters.
Note. Dshell commands should only be used by Alcatel personnel or under the direction of Alcatel. 
Misuse or failure to follow procedures that use Dshell commands in this guide correctly can cause lengthy 
network down time and/or permanent damage to hardware.
ifindex to gport
To convert from ifindex to global port (gport) number use the findGlobalPortFromIfIndex Dshell 
command as shown below:
-> dshell
Working: [Kernel]->findGlobalPortFromIfIndex 16011
value = 505 = 0x1f9
gport to ifindex
To convert from global port (gport) to ifindex use the findIfIndexFromGlobalPort Dshell command as 
shown below:
-> dshell
Working: [Kernel]->findIfIndexFromGlobalPort 505
value = 16011 = 0x3e8b
Converting from lport
The lport numbering process varies on each platform type (e.g., Falcon/Eagle or Hawk), as well as 
module type (e.g., ENI-C24, GNI-C2, GNI-U12, GNI-U8, GNI-C24, GNI-U24, etc.). To determine the 
lport value use two Dshell commands: dmpValidPorts and dmpAbsPort.
The following subsections describe conversions based on platform type. You need to be careful that both 
commands can be used on either Dshell or Nidebug based on platform type. In addition, input values for 
dmpAbsPort vary depending on platform type.
OmniSwitch 7700/7800/8800 (Falcon/Eagle) Example
The following displays all valid lport values with the dmpValidPorts command from NiDebug. After-
wards, you should do a dump for each slice.
Use the dmpValidPorts command as shown below:
8:0 nidbg> dmpValidPorts
8:0                   valid lports: [ 0 ][ 1 ][ 2 ][ 3 ][ 4 ][ 5 ]
8:0
8:0 valid uports: [ 1 ][ 2 ][ 3 ][ 4 ][ 5 ][ 6 ] 
Find the corresponding lport value from the uport value using dmpAbsPort command. Please note 
that you must use the uport value for this command.
8:0 nidbg> dmpAbsPort 1