show services flows
语法
show services flows <all | brief | extensive | terse> <application-protocol protocol> <count> <destination-port destination-port> <destination-prefix destination-prefix> <interface interface-name> <limit number> <protocol protocol> <service-set service-set> <source-port source-port> <source-prefix source-prefix>
描述
显示流会话表条目。
选项
| none | 显示有关所有流的标准信息。 |
| all | brief | extensive | terse | (选答)显示指定的输出级别。 |
| application-protocol protocol | (选答)显示有关以下应用程序协议之一的信息:
注意:
DCE RPC ALG 的流与 DCE RPC 端口映射 ALG 的流匹配。RPC ALG 的流与 RPC 端口映射 ALG 的流匹配。 |
| count | (选答)显示匹配条目的计数。 |
| destination-port destination-port | (选答)显示指定目标端口的信息。值的范围是从 0 到 65535。 |
| destination-prefix destination-prefix | (选答)显示指定目标前缀的信息。 |
| interface interface-name | (选答)显示有关指定接口的信息。在 M Series 和 T Series 路由器上, |
| limit number | (选答)要显示的最大条目数。 |
| protocol protocol | (选答)显示有关以下 IP 类型之一的信息:
|
| service-set service-set | (选答)显示指定服务集的信息。 |
| source-port source-port | (选答)显示指定源端口的信息。值的范围是从 0 到 65535。 |
| source-prefix source-prefix | (选答)显示指定源前缀的信息。 |
所需权限级别
视图
输出字段
表 1 列出了命令show services flows的输出字段。输出字段按其出现的大致顺序列出。
字段名称 |
字段说明 |
输出级别 |
|---|---|---|
|
接口的名称。 |
所有级别 |
|
服务集的名称。不显示单个空服务集。如果没有服务集具有任何流,则会为每个服务集显示流表标头。 |
所有级别 |
|
会话中的流数。 |
|
|
用于此流的协议。 |
所有级别 |
|
格式 |
所有级别 |
|
流的目标前缀。对于 ICMP 流,不显示端口信息。 |
所有级别 |
|
流的状态:
|
所有级别 |
|
流向:输入 |
所有级别 |
|
流中的帧数。 |
所有级别 |
|
流中的字节数。 |
|
|
流角色。 |
|
|
超时值。 |
|
|
流路:对称或非对称。 |
|
示例输出
- 显示服务流
- 显示服务流全部
- 显示服务流简介
- 显示服务流广泛
- 显示服务流应用程序协议
- 显示服务流计数
- 显示服务流 目标端口
- 显示服务流目标前缀
- 显示服务流接口
- 显示服务流协议
- 显示服务流服务集
- 显示服务流源端口
- 显示服务流源前缀
显示服务流
user@host> show services flows Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 TCP 10.1.1.2:80 -> 10.2.2.2:33656 Forward O 5 ICMP 10.1.1.2 -> 10.2.2.2 Forward I 102 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 102 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 97 ICMP 10.1.1.2 -> 10.2.2.2 Forward O 97
显示服务流全部
user@host> show services flows all Interface: ms-2/0/0, Service set: idp-1 Flow State Dir Frm count TCP 10.1.1.2:32769 -> 192.0.2.2:80 Forward I 353431 TCP 192.0.2.2:80 -> 10.1.1.2:32769 Forward O 353429 TCP 10.1.1.2:32771 -> 192.0.2.2:80 Forward I 353562 TCP 192.0.2.2:80 -> 10.1.1.2:32771 Forward O 353560 TCP 10.1.1.2:32770 -> 192.0.2.2:80 Forward I 353577 TCP 192.0.2.2:80 -> 10.1.1.2:32770 Forward O 353575 TCP 10.1.1.2:32768 -> 192.0.2.2:80 Forward I 353610 TCP 192.0.2.2:80 -> 10.1.1.2:32768 Forward O 353608 TCP 10.1.1.2:32777 -> 192.0.2.2:80 Forward I 353625 TCP 192.0.2.2:80 -> 10.1.1.2:32777 Forward O 353624 TCP 10.1.1.2:32776 -> 192.0.2.2:80 Forward I 353643 TCP 192.0.2.2:80 -> 10.1.1.2:32776 Forward O 353642 TCP 10.1.1.2:32775 -> 192.0.2.2:80 Forward I 353658 TCP 192.0.2.2:80 -> 10.1.1.2:32775 Forward O 353657 TCP 10.1.1.2:32774 -> 192.0.2.2:80 Forward I 353676 TCP 192.0.2.2:80 -> 10.1.1.2:32774 Forward O 353674 TCP 10.1.1.2:32773 -> 192.0.2.2:80 Forward I 353692 TCP 192.0.2.2:80 -> 10.1.1.2:32773 Forward O 353690 TCP 10.1.1.2:32772 -> 192.0.2.2:80 Forward I 353704 TCP 192.0.2.2:80 -> 10.1.1.2:32772 Forward O 353702
显示服务流简介
命令的 show services flows brief 输出与命令的 show services flows 输出相同。有关示例输出,请参阅 显示服务流。
显示服务流广泛
user@host> show services flows extensive Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 Byte count: 346 Flow role: Unknown, Timeout: 0, Flow path: Asymmetric TCP 10.1.1.2:80 -> 10.2.2.2:33656 Forward O 5 Byte count: 334 Flow role: Unknown, Timeout: 0, Flow path: Symmetric ICMP 10.1.1.2 -> 10.2.2.2 Forward I 144 Byte count: 12096 Flow role: Unknown, Timeout: 0, Flow path: Symmetric ICMP 10.2.2.2 -> 10.1.1.2 Forward O 144 Byte count: 12096 Flow role: Unknown, Timeout: 0, Flow path: Symmetric
显示服务流应用程序协议
user@host> show services flows application-protocol dce-rpc Interface: ms-2/0/0, Service set: ss-1 Flow State Dir Frm count TCP 192.168.200.65:1260 -> 192.168.200.69:5315 Forward I 14 TCP 192.168.200.69:5315 -> 198.51.100.16:1031 Forward O 11 TCP 192.168.200.65:1251 -> 192.168.200.69:1026 Forward I 7 TCP 192.168.200.69:1026 -> 198.51.100.16:1029 Forward O 5
显示服务流计数
user@host> show services flows count Interface Service set Flow count ms-2/0/0 IDP 6
显示服务流 目标端口
user@host> show services flows destination-port 80 Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6
显示服务流目标前缀
user@host> show services flows destination-prefix 10.1.1.2 Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 137 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 132
显示服务流接口
user@host> show services flows interface ms-2/0/0 Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 TCP 10.1.1.2:80 -> 10.2.2.2:33656 Forward O 5 ICMP 10.1.1.2 -> 10.2.2.2 Forward I 162 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 162 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 157 ICMP 10.1.1.2 -> 10.2.2.2 Forward O 157
显示服务流协议
user@host> show services flows protocol icmp Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count ICMP 10.1.1.2 -> 10.2.2.2 Forward I 202 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 202 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 197 ICMP 10.1.1.2 -> 10.2.2.2 Forward O 197
显示服务流服务集
user@host> show services flows service-set sample Interface: ms-2/0/0, Service set: sample Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 TCP 10.1.1.2:80 -> 10.2.2.2:33656 Forward O 5 ICMP 10.1.1.2 -> 10.2.2.2 Forward I 220 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 220 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 215 ICMP 10.1.1.2 -> 10.2.2.2 Forward O 215
显示服务流源端口
user@host> show services flows source-port 0 Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 TCP 10.1.1.2:80 -> 10.2.2.2:33656 Forward O 5 ICMP 10.1.1.2 -> 10.2.2.2 Forward I 235 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 235 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 230 ICMP 10.1.1.2 -> 10.2.2.2 Forward O 230
显示服务流源前缀
user@host> show services flows source-prefix 10.2.2.2 Interface: ms-2/0/0, Service set: IDP Flow State Dir Frm count TCP 10.2.2.2:33656 -> 10.1.1.2:80 Forward I 6 TCP 10.1.1.2:80 -> 10.2.2.2:33656 Forward O 5 ICMP 10.1.1.2 -> 10.2.2.2 Forward I 235 ICMP 10.2.2.2 -> 10.1.1.2 Forward O 235 ICMP 10.2.2.2 -> 10.1.1.2 Forward I 230 ICMP 10.1.1.2 -> 10.2.2.2 Forward O 230
发布信息
在 Junos OS 9.5 版中引入的命令。
all 在 Junos OS 11.1 版中添加了选项。
application-protocol 在 Junos OS 11.1 版中添加了选项。