回复 1# liyh2015 还有一个这个命令fcstat fcsn,你看最后几行的流量输入输出情况,这个应该可以,但是之前如果用过,可能流量还在。
fcstat fcs0
FIBRE CHANNEL STATISTICS REPORT: fcs1
Device Type: 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) (adapter/pciex/df1000f114108a0)
Serial Number: 1C33508147
Option ROM Version: 027820B7
ZA: U2D2.02X7
World Wide Node Name: 0x20000120FA2C8769
World Wide Port Name: 0x10000090FA2C8769
FC-4 TYPES:
Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 8 GBIT
Port Speed (running): 8 GBIT
Port FC ID: 0x000001
Port Type: Private Loop
Seconds Since Last Reset: 31600587
Transmit Statistics Receive Statistics
------------------- ------------------
Frames: 510 510
Words: 17664 17664
LIP Count: 1
NOS Count: 0
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 0
Loss of Sync Count: 3
Loss of Signal: 1
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 8
Invalid CRC Count: 0
IP over FC Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
FC SCSI Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0
IP over FC Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0
FC SCSI Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0
--------------------------------------------------------
root@test:/> fcstat fcs1
FIBRE CHANNEL STATISTICS REPORT: fcs1
Device Type: 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03) (adapter/pciex/df1000f114108a0)
Serial Number: 1C335083CE
Option ROM Version: 027820B7
ZA: U2D2.02X7
World Wide Node Name: 0x20000120FA2C8B73
World Wide Port Name: 0x10000090FA2C8B73
FC-4 TYPES:
Supported: 0x0000012000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): 8 GBIT
Port Speed (running): 4 GBIT
Port FC ID: 0x151b00
Port Type: Fabric
Seconds Since Last Reset: 1523838
Transmit Statistics Receive Statistics
------------------- ------------------
Frames: 3740143219 457576059
Words: 877176724224 4804761088
LIP Count: 0
NOS Count: 0
Error Frames: 0
Dumped Frames: 0
Link Failure Count: 0
Loss of Sync Count: 38
Loss of Signal: 0
Primitive Seq Protocol Error Count: 0
Invalid Tx Word Count: 5
Invalid CRC Count: 0
IP over FC Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
FC SCSI Adapter Driver Information
No DMA Resource Count: 0
No Adapter Elements Count: 0
No Command Resource Count: 0
IP over FC Traffic Statistics
Input Requests: 0
Output Requests: 0
Control Requests: 0
Input Bytes: 0
Output Bytes: 0
FC SCSI Traffic Statistics
Input Requests: 18129
Output Requests: 228764341
Control Requests: 8202
Input Bytes: 3827449
Output Bytes: 59967763273078