No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by DeviceManager, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
show port general

show port general

Function

The show port general command is used to query ports on the storage system.

Format

show port general [ port_id=? ]

show port general [ physical_type=? | logic_type=? | running_status=? ] *

show port general [ failover_group_id=? ]

Parameters

Parameter

Description

Value

port_id=?

ID of a port. If this parameter is specified, neither physical_type=? nor logic_type=? can be specified.

To obtain the value, run "show port general" without parameters.

logic_type=?

Logical port type.

The value can be "Host_Port", "Expansion_Port", "Management_Port", or "Maintenance_Port", where:

  • "Host_Port": host port.
  • "Expansion_Port": expansion port.
  • "Management_Port": management network port.
  • "Maintenance_Port": maintenance network port.

physical_type=?

Physical port type.

The value can be "FC", "ETH", "SAS", "COM", "FCoE" or "PCIE", where:

  • "FC": Fibre Channel port.
  • "ETH": Ethernet ports (including iSCSI host port and management network ports).
  • "SAS": SAS port.
  • "COM": serial port.
  • "FCoE": FCoE ports.
  • "PCIE": PCIe ports.

failover_group_id=?

ID of the failover group. OceanStor 2200 V3 does not support this parameter.

The value must be an integer from 0 to 8191.

running_status=?

Running status of a port.

The value can be "link_up" or "link_down", where:

  • "link_up": The port link is up.
  • "link_down": The port link is down.

Level

Guest

Usage Guidelines

  • To query all ports, run "show port general".
  • To query a specific port, run "show port general port_id=?".
  • To query ports of a specific type, run "show port general physical_type=?", "show port general logic_type=?", or "show port general physical_type=? logic_type=?".
  • To query Ethernet ports in a specified failover group, run "show port general failover_group_id=?". Fibre Channel ports in a failover group cannot be queried.
NOTE:

If you log in to the storage system through a serial port and find that the status of the queried serial port is "Link Down", ignore the status.]

  • To query details on ports of a specific type, run "show port general physical_type=?", "show port general logic_type=?", "show port general running_status=?", "show port general physical_type=? logic_type=?", "show port general physical_type=? running_status=?", "show port general logic_type=? running_status=?" or "show port general physical_type=? logic_type=? running_status=?".

If you log in to the storage system through a serial port and find that the status of the queried serial port is "Link Down", ignore the status.

port_id is mutually exclusive with logic_type and physical_type; failover_group_id is mutually exclusive with physical_type, logic_type, and port_id.

Example

  • Query the port whose ID is "CTE0.A.IOM1.P1". The ID and output vary depending on a specific product.
    admin:/>show port general port_id=CTE0.A.IOM1.P1 
    ETH port: 
    ---------------  Host Port:---------------- 
      ID                               : CTE0.A.IOM1.P1                
      Health Status                    : Normal                        
      Running Status                   : Link Down                     
      Type                             : Host Port                     
      IPv4 Address                     : --                            
      Subnet Mask                      : --                            
      IPv4 Gateway                     : --                            
      IPv6 Address                     : --                            
      IPv6 Prefix Length               : --                            
      IPv6 Gateway                     :                               
      MAC                              : 48:fd:8e:05:8b:ae             
      Role                             : INI and TGT                
      Mode                             : --                            
      MTU                              : 1500                          
      Working Rate(Mbps)               : --                            
      Bond Name                        :                               
      iSCSI Port                       : 0                             
      iSCSI Name                       :                               
      Error Packets                    : 0                             
      Lost Packets                  : 0                             
      Over Flowed Packets              : 0                             
      Start Time                       : 2016-11-08/21:38:57 UTC+08:00  
      Enabled                          : Yes                           
      Max Speed(Mbps)                  : 10000                         
      Running Type                     : Host                          
      CRC Errors                       : 0                             
      Frame Errors                     : 0                             
      Frame Length Errors              : 0                             
      Total Received Packets           : 0                             
      Total Transmitted Packets        : 0                             
      Total Received Bytes             : 0.000B                        
      Total Transmitted Bytes          : 0.000B                        
      Received Packets Per Second      : 0                             
      Transmitted Packets Per Second : 0                             
      Received Bytes Per Second        : 0.000B                        
      Transmitted Bytes Per Second     : 0.000B  
      Number Of Initiators :  0                    
      Work Mode                        : 25GE_NOFEC 
    FCoE port: 
    ID                  : CTE0.A.IOM1.P1                
      Health Status       : Normal                        
      Running Status      : Link Down                     
      Type                : Host Port                     
      Working Rate(Mbps)  : --                            
      WWN                 : 2009e4a8b61a0893           
      Role                : TGT                           
      SFP Status          : Not Exist                     
      Error Packets       : 0                             
      Lost Packets        : 0                             
      Over Flowed Packets : 0                             
      Start Time          : 2016-11-08/21:38:57 UTC+08:00  
      Enabled             : Yes                           
      Max Speed(Mbps)     : 10000                         
      CRC Errors          : 0                             
      Frame Errors        : 0                             
      Frame Length Errors : 0 
      Number Of Initiators :  0 
  • Query Ethernet ports in the failover group whose ID is 0.
    admin:/>show port general failover_group_id=0 
    ID Health Status Running Status Type IPv4 Address IPv6 Address MAC Role Working Rate(Mbps)  
    ---------- ------------- -------------- --------- ------------ ------------ ----------------- ---- ------------------  
    ENG0.A3.P0 Normal Link Up Host Port -- 80:fb:06:df:d1:71 -- 1000  
    ENG0.A3.P1 Normal Link Down Host Port -- 80:fb:06:df:d1:70 -- --  
    ENG0.A3.P2 Normal Link Down Host Port -- 80:fb:06:df:d1:6f -- --  
    ENG0.A3.P3 Normal Link Down Host Port -- 80:fb:06:df:d1:6e -- --  
    ENG0.B2.P0 Normal Link Down Host Port -- 78:1d:ba:cb:1d:cc -- --  
    ENG0.B2.P1 Normal Link Down Host Port -- 78:1d:ba:cb:1d:cd -- --  
    ENG0.B3.P1 Normal Link Down Host Port -- 20:0b:c7:3e:82:1a -- --  
    ENG0.B3.P2 Normal Link Down Host Port -- 20:0b:c7:3e:82:19 -- --
  • Query the Fibre Channel port whose ID is "CTE0.A4.P0". The ID and output vary depending on a specific product.
    admin:/>show port general port_id=CTE0.A4.P0 
    FC port: 
      ID                         : CTE0.A4.P0                    
      Health Status              : Normal                        
      Running Status             : Link Down                     
      Type                       : Host Port                     
      Working Rate(Mbps)         : --                            
      Configured Speed(Mbps)     : Auto-Adapt                    
      WWN                        : 2400002211335544              
      Role                       : INI and TGT                   
      SFP Status                 : Offline                       
      Working Mode               : --                            
      Configured Mode            : Auto-Adapt                    
      Flogin Delay Times(ms)     : 0                             
      Lost Signals               : 0                             
      Link Errors Codes          : 0                             
      Lost Synchronizations      : 0                             
      Failed Connections         : 0                             
      Start Time                 : 2016-07-05/09:31:43 UTC+08:00  
      Fast Write Supported       : Yes                           
      Fast Write Enable          : No                            
      Fast Write Burst Len(Byte) : 16384                         
      Enabled                    : Yes                           
      Max Speed(Mbps)            : 16000                         
      CRC Errors                 : 4                             
      Frame End Sign Errors      : 24 
      Number Of Initiators                : 2 
      FC MOR State               : Open
  • Query the port whose ID is "CTE0.A.IOM0.P0". The ID and output vary depending on a specific product.
    admin:/>show port general port_id=CTE0.A.IOM0.P0 
    ETH port: 
    ---------------  Host Port:---------------- 
      ID                               : CTE0.A.IOM0.P0                
      Health Status                    : Normal                        
      Running Status                   : Link Up                       
      Type                             : Host Port                     
      IPv4 Address                     : --                            
      Subnet Mask                      : --                            
      IPv4 Gateway                     : --                            
      IPv6 Address                     : --                            
      IPv6 Prefix Length               : --                            
      IPv6 Gateway                     :                               
      MAC                              : 04:f9:38:95:88:d9             
      Role                             : INI and TGT                   
      Mode                             : Duplex                        
      MTU                              : 1500                          
      Working Rate(Mbps)               : 1000                          
      Bond Name                        :                               
      iSCSI Port                       : 0                             
      iSCSI Name                       :                               
      Error Packets                    : 0                             
      Lost Packets                     : 0                             
      Over Flowed Packets              : 0                             
      Start Time                       : 2016-11-08/21:38:56 UTC+08:00  
      Enabled                          : Yes                           
      Max Speed(Mbps)                  : 1000                          
      Running Type                     : Host                          
      CRC Errors                       : 0                             
      Frame Errors                     : 0                             
      Frame Length Errors              : 0                             
      Total Received Packets           : 294431                        
      Total Transmitted Packets        : 994                           
      Total Received Bytes             : 28.134MB                      
      Total Transmitted Bytes          : 83.589KB                      
      Received Packets Per Second      : 8                             
      Transmitted Packets Per Second : 0                             
      Received Bytes Per Second        : 420.000B                        
      Transmitted Bytes Per Second     : 0.000B 
      Work Mode                        : 25GE_NOFEC
  • Query the PCIE port whose ID is "CTE0.R3.IOM0.P0". The ID and output vary depending on a specific product.
    admin:/>show port general port_id=CTE0.R3.IOM0.P0 
    PCIE port: 
    ID                   : CTE0.R3.IOM0.P0               
      Health Status        : Normal                        
      Running Status       : Link Up                       
      PCIE Speed(Mbit/s) : 5000                          
      Current Peer Port Id : 143833714183790592            
      Suggest Peer Port Id : 143833714183790592            
      Lost Signals         : 0                             
      ECRC Error           : 0                             
      Bad Tlp              : 0                             
      Bad Dllp             : 0                             
      Recv Error           : 0                             
      Chip Ecc Error       : 0                             
      Start Time           : 2017-02-15/14:11:37 UTC+08:00  
      Max Speed(Mbps)      : 5000  
      Replay Timer Timeout : 0 
      Rollover             : 0 
      Model                : 4*5Gb PCIe Port

System Response

The following table describes the parameter meanings.

Parameter

Meaning

ID

ID of a port.

Health Status

Health status of a port.

Running Status

Running status of a port.

Type

Port type.

IPv4 Address

IPv4 address of an ETH port.

IPv6 Address

IPv6 address of an ETH port.

MAC

MAC address of an ETH port.

Role

Role of a port in the link.

Working Rate(Mbps)

Working rate of a port.

Enabled

Whether the port is enabled.

Max Speed(Mbps)

Maximum working rate of a port.

WWN

WWN of a port.

Channel Number

Channel number of a port.

Replay Timer Timeout

Count of replay timer timeout.

Rollover

Count of replay counter rollover.

Number Of Initiators

Number of initiators.

Model

PCIe port model.

FC MOR State

Whether the MOR function of a Fiber Channel port is enabled.

Work Mode

Work mode of an Ethernet port.

Flogin Delay Times(ms)

Delay time that the system waits before sending the FLOGIN command.

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138390

Views: 234982

Downloads: 150

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next