查询端口全部信息。
<tool name> hilink_port -i <device name> -p <port id> [-s]
参数 |
参数说明 |
取值 |
---|---|---|
<device name> |
设备名称。 |
物理设备名,例如:hinic0、hinic1。 |
<port id> |
端口号。 |
例如:0、1。 |
项目 |
描述 |
---|---|
result |
端口全部信息。 |
带“-s”参数时,表示查询端口简单信息,即不包括光模块信息。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | hinicadm3 hilink_port -i hinic0 -p 0 -s gpio_insert = present link_state = link an_state = off alos = 0 rx_los = 0 speed = 25GB fec = rsfec rf_lf = 0x0 pma_fifo_reg = 0x0000000b pma_signal_ok_reg = 0x00000001 pcs_64_66b_reg = 0x00001249 pcs_err_cnt = 0x00000000 pcs_link = link pma_ctrl = on tx_enable = on rx_enable = on |
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 | hinicadm3 hilink_port -i hinic0 -p 0 gpio_insert = present link_state = link an_state = off alos = 0 rx_los = 0 speed = 25GB fec = rsfec rf_lf = 0x0 pma_fifo_reg = 0x0000000a pma_signal_ok_reg = 0x00000001 pcs_64_66b_reg = 0x00001249 pcs_err_cnt = 0x00000000 pcs_link = link pma_ctrl = on tx_enable = on rx_enable = on vendorName = INNOLIGHT port_type = optical port_sub_type = SR cable_length = 0(m) cable_temperature = 35 max_speed = 25Gbps sfp_type = Qsfp rx_chl1_power = 814uW rx_chl2_power = 1088uW rx_chl3_power = 0uW rx_chl4_power = 0uW his_link_machine_state = 0x00000004 his_machine_state_length = 0 his_machine_state_data: cur_link_machine_state = 0x179aacd0 cur_machine_state_length = 0 cur_machine_state_data: ============================================================= port_id lane_id lane_num parameter_cnt 0 4 1 6 -------------------------------------------------------------------------------------------------------------- area |an |fec |speed |used |an_fec |an_speed |an_pause -------------------------------------------------------------------------------------------------------------- DEFAULT on rsfec 25GB used rsfec 25G_BASE_CR/KR ALL_SUPPORT BIOS not set not set not set used TOOL not set not set not set used FINAL off rsfec 25GB used rsfec 25G_BASE_CR/KR ALL_SUPPORT -------------------------------------------------------------------------------------------------------------- area |status |wire_type |default_fec |max_speed |speed_ability -------------------------------------------------------------------------------------------------------------- WIRE present FIBER/AOC RSFEC 25 Gbps 25GE_BASE_R1 -------------------------------------------------------------------------------------------------------------- area |adapt_en |flash_adapt |wire_node |an_en |speed |fec -------------------------------------------------------------------------------------------------------------- ADAPT on not set FIBER_25G not set not set not set -------------------------------------------------------------------------------------------------------------- |