vfcstat 命令

用途

显示有关虚拟光纤通道 (VFC) 客户机适配器的信息,例如统计信息,状态和活动。

语法

vfcstat [ -h ] | [-l ]

vfcstat -d vfc_client_adapter [ -f function_name ]

vfcstat -d vfc_client_adapter -e [ -z ]

vfcstat -d vfc_client_adapter [ -s [ -z ]] [ -c no_of_times_to_run [ -i intervel_sec]] [ -F ]

描述

vfcstat 命令报告诸如虚拟 FC 适配器状态,状态, NPort 标识, I/O 队列信息,读/写统计信息,与主机 (VIOS) 的绑定信息,链路错误和路径超时等信息。 将实时访存所需信息并将其显示在输出中。 您可以重置某些详细信息,例如统计信息和错误计数。 您还可以使用 -F 选项在格式化输出中检索读/写统计信息以进行脚本编制。 vfcstat 命令显示指定时间间隔内特定次数的统计信息。 vfcstat 命令仅在虚拟 FC 客户机适配器上工作。

标志

--c 没有运行次数
指定在指定 stats 函数时必须运行 vfcstat 命令的次数。 有效值在 1-86400 范围内。
--d vfc_client_adapter
指定虚拟 FC 客户机适配器的名称。
-e
显示链接和路径超时事件的错误计数。
--f 功能名称
指定用于显示输出的函数。 有关可用于虚拟 FC 客户机适配器的功能的列表,请参阅 示例 2
-F
显示格式化的统计信息输出。
-h
显示使用情况和帮助信息。
--i Intervel_sec
指定多次执行 vfcstat 命令之间的时间间隔。 有效值在 1-86400 秒范围内。 缺省值为 1 秒。
-l
列出所有虚拟 FC 客户机适配器。
-s
显示读/写统计信息。
-z
重置统计信息或错误计数度量。

示例

  1. 要列出所有虚拟 FC 客户机适配器,请输入以下命令:
    # vfcstat -l
    输出可能类似于以下示例:
    fcs0
    fcs1
  2. 要列出可用于特定虚拟 FC 适配器的所有功能,请输入以下命令:
    # vfcstat  -d fcs0
    输出可能类似于以下示例:
    activity
    capabilities
    hostinfo
    link
    nport_id
    status
    tunables
    wwpn
  3. 要显示特定虚拟 FC 适配器的状态,请输入以下命令:
    # vfcstat  -d fcs0 -f status
    输出可能类似于以下示例:
    State                 0x10 (ONLINE)
    Opened                true
    cfg_opn_state         0x0
    prev_cfg_channels     0
    flags                 0x1400 ( UP_AFTER_LPM, SCSI_FLOGIN )
    total_io_dma_size     0x20000000
    total_dma_size_used   0x19900000
    no_chs_reason_code    0x0 ( N/A )
    migrated_count        0
    online_time           61925950 (lbolt)
    UP time               498417 sec ( 5 days 18 hours 26 minutes 57 seconds )
    
    Admin Queue
        active_cmds       0
        spl_active_cmds   0
        pending_cmds      0
        spl_pending_cmds  0
        resp_cmds         0
    
    SCSI Queue #1
        active_cmds       0
        spl_active_cmds   0
        pending_cmds      0
        spl_pending_cmds  0
        resp_cmds         0
    ...
    ...
  4. 要显示特定虚拟 FC 适配器的统计信息,请输入以下命令:
    # vfcstat  -d fcs0 -s
    输出可能类似于以下示例:
    
    Current time                      : May 15 2023, 01:33:13.644
    Time since last reset             : 499015 sec ( 5 days 18 hours 36 minutes 55 seconds )
    
    SCSI Queue #1
        Read reqs                     : 128
        Read bytes                    : 10204
        Write reqs                    : 29
        Write bytes                   : 21034
        No DMA res count              : 2
        No SGE count                  : 2
        h_send_dropped                : 1
        h_send_busy                   : 1
        No cmd res count              : 3
    
    SCSI Queue #2
        Read reqs                     : 99
        Read bytes                    : 17695
        Write reqs                    : 44
        Write bytes                   : 24125
    ...
    ...
    
    NVMe Queue #1
        Read reqs                     : 990
        Read bytes                    : 107695
        Write reqs                    : 84
        Write bytes                   : 234125
        Domain Ceiling exceed count   : 1
        No SGE count                  : 2
        h_send_dropped                : 4
        h_send_busy                   : 1
        No cmd res count              : 3
    
  5. 要在格式化输出中显示特定虚拟 FC 客户机适配器的统计信息,请输入以下命令:
    # vfcstat  -d fcs0 -s -F
    输出可能类似于以下示例:
    Current time=May 15 2023, 01:35:02.284
    Time since last reset=499124 sec ( 5 days 18 hours 38 minutes 44 seconds )
    Queue_Start
    Domain=SCSI	
    Queue number=1
    Read reqs=128
    Read bytes=10204
    Write reqs=29
    Write bytes=21034
    No DMA res count=2
    No SGE count=2
    h_send_dropped =1
    h_send_busy=1
    No cmd res count=3
    Queue_End
    
    Queue_Start
    Domain=SCSI
    Queue number=2
    Read reqs=99
    Read bytes=17695
    Write reqs=44
    Write bytes=24125
    ...
    ...
    ...
    Queue_End
    ...
    ...
    
    Queue_Start
    Domain=NVMeOF
    Queue_number=1
    Read reqs=990
    Read bytes=107695
    Write reqs=84
    Write bytes=234125
    Domain Ceiling exceed count=1
    No SGE count=2
    h_send_dropped=4
    vfchost_resource_closed
    h_send_busy=1
    No cmd res count=3
    Queue_End
  6. 要在 5 次的每 10 秒内显示特定虚拟 FC 客户机适配器的统计信息,请输入以下命令:
    # vfcstat -d fcs0 -s -c 5 -i 10
  7. 要重置特定虚拟 FC 适配器的统计信息功能中的所有字段,请输入以下命令:
    # vfcstat -d fcs0 -s -z
  8. 要显示特定虚拟 FC 适配器的错误计数,请输入以下命令:
    # vfcstat  -d fcs0 -e
    输出可能类似于以下示例:
    Current time                    : Mar 17 2023, 14:28:23.854
    Time since last reset           : 33041 sec ( 9 hours 10 minutes 41 seconds )
    
    Link Errors:
               Total errors: 4
            Last 10 minutes: 1
            Last 60 minutes: 2
              Last 24 hours: 4
    
    Path Timeouts:
                      Domain: Admin
              Total timeouts: 6
             Last 10 minutes: 1
             Last 60 minutes: 2
               Last 24 hours: 6
    
    Path Timeouts:
                      Domain: SCSI
              Total timeouts: 2
             Last 10 minutes: 0
             Last 60 minutes: 1
               Last 24 hours: 2
    
    Path Timeouts:
                      Domain: NVMeOF
              Total timeouts: 5
             Last 10 minutes: 1
             Last 60 minutes: 2
               Last 24 hours: 5

文件

描述
/usr/bin/vfcstat 包含 vfcstat 命令。